How to place an image on radmap?

2 posts, 0 answers
  1. Jimmy
    Jimmy avatar
    24 posts
    Member since:
    Nov 2006

    Posted 14 Mar 2012 Link to this post

    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?


  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Mar 2012 Link to this post

    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 >>
  3. DevCraft banner
Back to Top