This is a migrated thread and some comments may be shown as answers.

How to place an image on radmap?

1 Answer 164 Views
Map
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jimmy
Top achievements
Rank 1
Jimmy asked on 14 Mar 2012, 03:10 PM
I have a image, I wish to place it  on radmap (The effect  which just like this url:
http://maps.google.com/maps/mapplets?moduleurl=http://code.google.com/apis/maps/documentation/mapplets/examples/groundoverlay-simple.xml
and the details on 
https://developers.google.com/maps/documentation/mapplets/overlays?hl=eng 
Ground Overlays

Polygons are useful overlays to represent arbitrarily-sized areas, but they cannot display images. If you have an image that you wish to place on a map, you can use a GGroundOverlay object. The constructor for a GGroundOverlay takes a URL of an image and the GLatLngBounds of the image as parameters.

The following example places an antique map of Newark, NJ on the map as an overlay:

var map = new GMap2(); 
map
.setCenter(new GLatLng(40.740, -74.18), 12);
// ground overlay

var boundaries = new GLatLngBounds(new GLatLng(40.716216,-74.213393), new GLatLng(40.765641,-74.139235));
var oldmap = new GGroundOverlay("http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg", boundaries);
map
.addOverlay(oldmap);

),

How can I do?


1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 19 Mar 2012, 08:36 AM
Hello Jimmy,

The RadMap control allows showing of several map providers one over another. I would like to recommend you to take a look into the following samples:
http://demos.telerik.com/Silverlight/#Map/MultipleTileLayers
http://demos.telerik.com/Silverlight/#Map/UriImageProvider

Also you may find our documentation topic helpful for achieving this:
http://www.telerik.com/help/silverlight/radmap-features-uriimageprovider.html

Greetings,
Andrey Murzov
the Telerik team

Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Map
Asked by
Jimmy
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or