5 #include "projection.h"
11 class WMTSMap
: public Map
16 WMTSMap(const QString
&name
, const WMTS::Setup
&setup
, QObject
*parent
= 0);
18 const QString
&name() const {return _name
;}
20 QRectF
bounds() const;
22 int zoom() const {return _zoom
;}
23 void setZoom(int zoom
);
24 int zoomFit(const QSize
&size
, const RectC
&rect
);
28 QPointF
ll2xy(const Coordinates
&c
)
29 {return static_cast<const WMTSMap
&>(*this).ll2xy(c
);}
30 Coordinates
xy2ll(const QPointF
&p
)
31 {return static_cast<const WMTSMap
&>(*this).xy2ll(p
);}
33 void draw(QPainter
*painter
, const QRectF
&rect
, bool block
);
37 bool isValid() const {return _valid
;}
38 QString
errorString() const {return _errorString
;}
42 double sd2res(double scaleDenominator
) const;
43 QString
tilesDir() const;
44 void updateTransform();
46 QPointF
ll2xy(const Coordinates
&c
) const;
47 Coordinates
xy2ll(const QPointF
&p
) const;
51 TileLoader
*_tileLoader
;
53 QList
<WMTS::Zoom
> _zooms
;
54 Projection _projection
;