Hello,
It is possible to load a map type localy (after downloaded the map) ?
For example, to use the OpenStreetMap, we write this code :
<ig:XamGeographicMap x:Name="GeoMap">
<ig:XamGeographicMap.BackgroundContent>
<ig:OpenStreetMapImagery />
ig:XamGeographicMap.BackgroundContent>
ig:XamGeographicMap>
It is possible to load a local map instead of ?
Thanks in advance !
Hi Ezekief,
If you are talking about loading the map images from your local machine rather than going out to a web service then yes you can. This involves creating your own MapImagery class and overriding a method called GetTileLayers. You can see an example of this in our documentation here:http://help.infragistics.com/doc/WPF/2016.1/CLR4.0/?page=xamGeographicMap_Creating_Custom_Geographic_Imagery_from_Map_Quest.html
Basically you override that method and then add a URI that points to where the image for a specific tile is located. Afterwards we'll try to load that image. I have attached a basic sample.
Let me know if you have any questions.
Thanks to your answer !
I understand how perform it now, but do you know where I can found maps to use localy ?
I search on OSM but if I understand correctly, we need a server, and I would like just a PNG tile, if it exist
Thanks in advance
Unfortunately I'm not sure about the answer for how to get maps locally. Not sure if OSM provides those. If they did the number of images would probably be staggering and probably take up a huge chunk disk space. Maybe you can use the OSM service and then store the images after the fact for later use with the custom imagery class? Not sure if OSM would be ok with that.