Hi,
I am using the open street maps tile source to display my map. I have an aerial image that I would like to display at a given lat/long.
Knowing the location of the top left corner and bottom right corner, is it possible to display the image at the correct location and correct scale?
Hi Valerie,
I have since started using an open source map control for my application now, but I can see that your suggestion would most probably have worked.
Thanks for your help.
Hello,
Do you have any other questions on this matter?
Sincerely,ValerieDeveloper Support Engineer Infragisticswww.infragistics.com/support
You can use the WindowRectChanged event to determine when the map has been zoomed. In this event you can affect the image. One method might be to bind the Width and Height of the image to properties of the Map Element (for example the Value) then in the WindowRectChanged event you can change this property thus changing the size of the image.
Sincerely,
Valerie
Developer Support Engineer
Infragistics
www.infragistics.com/support
Thanks Valerie. I now have an image being displayed on the map, but it stays the same size regardless of zoom level.
Is there a way to get the image to scale with the zoom level, so when I zoom in the image gets larger?
At the moment it just stays the same size as what I specify for the image height and width.
The following help topic shows how to add an image to a map:
http://help.infragistics.com/Help/NetAdvantage/DV/2011.1/CLR4.0/html/xamWebMap_Add_Image_Using_Map_Elements.html
The following help article shows how to use the MapProjection to convert from latitude / longitude to the map coordinates:
http://help.infragistics.com/Help/NetAdvantage/DV/2011.1/CLR4.0/html/xamWebMap_Add_Symbol_Element.html