I have custom imagery data being hosted on a local mapserver that covers a very small geographic region. I am using a custom MapTileSource to render the map and I am getting behavior that I don't understand due to my misunderstanding of a few items.
Under what circumstances should I be changing the values for WorldRect? Obviously my extent/bounds is not the entire world.
The "minimap" shows an image of the whole world, is there a way to make it zoom in so that my view box isn't so tiny?
The call to the MapTileSource constructor for the MapQuest example has 134217728? Where does this value come from, should I be changing it for my small geographic region?
How can I have it zoom in by default on my specific region and does this affect the URLs I generate in GetTileLayers? For example, I haven't a clue which Z,X,Y coordinates are needed to view my region from a world perspective.
Thanks,
Kris
I'm assuming its height and width in pixels? And I assume its the entire world?
Not quite sure how to figure out what the height and width are for the "deep zoom" image. I mean, its getting served up in tiles that are 256x256 or 512x512 (whichever I want).
What if my imagery is small, like a county or a city? Do I set it to that or still to what it would be for the entire world?
I see that all of the values are powers of 2. Does this affect my zoom level. Must the height and width always be powers of 2? My "deep zoom" images of smaller areas are definitely not powers of 2 when it comes to height and width.
Perhaps an assumption is being made about how maps work that I don't realize and therefore I am asking silly questions? Documentation found at the link could use better clarification.
Hello Kristopher,
Thank you for your reply. I have been looking into your question and 134217728 is set value for the ImageHeight and ImageWidth properties of the MapTileSource. These two properties are used for setting the width and the height of the Deep Zoom image in this scenario. The last two values in the MapTileSource constructor are used for setting the TileHeight and TileWidth properties of the MapTileSource. They define the height and the width of the tiles in the Deep Zoom image.
For more information on this matter you could look into the into the following link from our online documentation:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/InfragisticsWPF4.DataVisualization.v14.1~Infragistics.Controls.Maps.MapTileSource_members.html
Let me know, if you need any further assistance on this matter.
That is very helpful in understanding several aspects. Thank you.
I'm still confused with respect to the constructor a custom MapTileSource. Why does the example pass in a value of 134217728 and how do I know if I need to change it? If I do need to change it, what value do I put there?
Hi Kristopher,
Thank you for your post. I have been looking into your question and I can suggest you look into the following link from our online documentation which explains how to navigate/zoom the map content:
http://help.infragistics.com/Help/Doc/WPF/2014.1/CLR4.0/html/xamGeographicMap_Navigating_Map_Content_Using_Code.html