5 #include "projection.h"
12 class WMSMap
: public Map
17 WMSMap(const QString
&fileName
, const QString
&name
, const WMS::Setup
&setup
,
18 int tileSize
, QObject
*parent
= 0);
20 QString
name() const {return _name
;}
23 RectC
llBounds(const Projection
&) {return _wms
->bbox();}
25 int zoom() const {return _zoom
;}
26 void setZoom(int zoom
);
27 int zoomFit(const QSize
&size
, const RectC
&rect
);
31 QPointF
ll2xy(const Coordinates
&c
);
32 Coordinates
xy2ll(const QPointF
&p
);
34 void draw(QPainter
*painter
, const QRectF
&rect
, Flags flags
);
36 void load(const Projection
&in
, const Projection
&out
, qreal deviceRatio
,
40 bool isReady() const {return _wms
->isReady();}
41 bool isValid() const {return _wms
->isValid();}
42 QString
errorString() const {return _wms
->errorString();}
48 QString
tileUrl() const;
49 double sd2res(double scaleDenominator
) const;
51 void updateTransform();
52 qreal
tileSize() const;
57 TileLoader
*_tileLoader
;
60 QVector
<double> _zooms
;