Custom Map Provider

Esther

Good evening,
I´m trying to build my own map provider. I have my tiles for an specific country.
How could I project my tiles to their proper coordinates?
Provider is working but with wrong coordinates. Below is my code.
Thank you very much,
Esther

''' <summary>
''' Gets value which indicates whether labels are supported by the map provider.
''' </summary>
Public Overrides ReadOnly Property IsLabelSupported() As Boolean
Get
Return False
End Get
End Property

''' <summary>
''' Returns the SpatialReference for the map provider.
''' </summary>
Public Overrides ReadOnly Property SpatialReference() As ISpatialReference
Get
Return New MercatorProjection()

Andrey

Currently the custom map provider for the map control should keep the following restrictions:
- Each tile should have a pixel size as 256 x 256
- Tiles should cover a world map with a grid of the following ranges of geographical coordinates:
-85 to 85 latitude,
-180 to 180 longitude.
- Tiles should cover a world map according to deep zoom concept
The width and height of whole map in tiles is calculated as 2 ^ zoom level. For example the zoom level 1 should contain 4 tiles. Zoom level 2 should contain 16 etc.
I.e. each tile has the fixed geographical location according to its zoom level and x-y position.For example when the zoom level is 1 (tileLevel is 9) and tilePositionX is 0 and tilePositionY is 0 then the real geographic location of the tile is 85, -180 (lat, lon).

Of course the custom map provider can provide some region only, but the geographic location of tiles should correspond to the rules above.

We are planning to support a custom provider which uses tiles for certain geographic region only, but this feature will be implemented in future releases.

Regards,
Andrey Murzov
the Telerik team

Browse the videos here>> to help you get started with RadControls for WPF

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.