Hi,
I had a problem getting my problem through yesterday. I have now recreated the problem in a demo project, based on one of your demos.
The comment.doc file describes what is wrong, so you can continue reading there. The short wersion is:
We try to show a set of map layers in UTM zone 32N, EUREF89 projection. We have access to some very good aerial imagery as background map. This material is in UTM zone 32 projection as well, and everything is good.
I try to map Google map in as an alternative layer, as not everybody is subscribing to the expensive imagery mentioned above. Google Map is in Mercator projection, and I have a problem with getting it to show correctly together with our other data. The map seems to scale incorrectly, but have the correct center point. When selecting the Google map I get another zoom level, although I would have loved to keep my original zoom level.
I am drawing a scale bar at the bottom of the map, and it seems to be the wrong size when I show it on the Google map.
Can you have a look at my sample and tell me if what I am trying to accomplish can be done in a sane way, or if I have to do it in another way altogether. Do you have a sample that does what I try, so that I can get inspiration from that?
Best regards,
Keld Laursen
<edit: Attachment removed>
Problem with mixing Google Map with UTM projection
Hi Keld,
Thanks for your code, I modified the tile mode to GoogleMapsTileMode.MultiTile and it looks work well for Google Map.
If I missed any other incorrect you mentioned, please let me know.
Regards,
Don
Hello Don.
It looks like what I were after. We went with the SingleTile version as it worked faster and didn’t introduce flicker (AFAICR - I didn’t do that specific part of the code).
I have removed the example code as it contains private codes for accessing some map data. It could be worked into a better sample with some free map providers, but is it worth it.
Thanks for your help.
Regards,
Keld
Hello Don.
It looks like what I were after. We went with the SingleTile version as it worked faster and didn’t introduce flicker (AFAICR - I didn’t do that specific part of the code).
I have removed the example code as it contains private codes for accessing some map data. It could be worked into a better sample with some free map providers, but is it worth it.
Thanks for your help.
Regards,
Keld
Hi Keld,
Sorry I haven’t noticed the private code in your sample yesterday, or-else I will help you remove that.
Next time if you want to upload some file contains private code, you can upload that to a ticket or upload to your FTP in our server(you can contact your sales for that).
Any question please let us know.
Regards,
Don