Using Deep Zoom for map source

6 posts, 0 answers
  1. Nick McAlonan
    Nick McAlonan avatar
    3 posts
    Member since:
    Jul 2012

    Posted 09 Mar 2010 Link to this post

    We have a requirement to display a large image on a map image where we display XAML objects over the map

    I can see its simple to add the objects but having trouble figuring the image to use, I was wondering whether its posible to link the Telerik Map control to Silverlight Deep Zoom to create a zoomable image?
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 12 Mar 2010 Link to this post

    Hi Nick,

    You can add the MultiScaleImage object to the information layer the same way as any other FrameworkElement.

    <map:RadMap Name="radMap">
     <maps:InformationLayer Name="informationLayer">
      <MultiScaleImage Height="200" Width="200" maps:MapLayer.Location="37.684397,-95.06924"
     </maps:InformationLayer>
    </map:RadMap>

    But it seems you should use the ZoomChanged event of the map to recalculate its size and viewport parameters.
    We would appreciate if you describe your scenario in more details and give us a screenshot of desirable result.

    Best wishes,
    Andrey Murzov
    the Telerik team


    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
  4. Nick McAlonan
    Nick McAlonan avatar
    3 posts
    Member since:
    Jul 2012

    Posted 16 Mar 2010 Link to this post

    Our basic requirement is to display a custom map image, using GIS points for the data, but we dont want to display "the World" as such but just a section as we know the max/min bounds of our maps.

    I tried creating a Custom map source where I use a custom deepzoom source for the backround, which I have working.

    But when I overide the max/min latitude and longitudes to be the bounds of my map, it makes to differance, the control seems to want to use world coords to plot.

    Is it posible to only display a section map and not the "world" and still use GIS points to plot items?
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 18 Mar 2010 Link to this post

    Hi Nick,

    Unfortunately, currently there is no easy way to limit region displayed on the map.
    In theory, it is posible to display a section map only using a custom tile provider, because you can return "null" from the GetTile method for regions your source doesn't cover.
    But this process has an important restriction - the tiles you provide should cover a part of map that is a part of the world's map grid. For example first zoom level contains four tiles. Second divides each quadrant to four parts, etc. So, the source you use should cover a region according to this grid.
    Also you should calculate the geographic location of each tile in the GetTile method in order to determine the correct tile to return.

    Regards,
    Andrey Murzov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Oded Zadok
    Oded Zadok avatar
    7 posts
    Member since:
    Mar 2010

    Posted 24 Oct 2010 Link to this post

    Hi,

    I need to display a very large image (raster image) via RadMap control.
    Is there a sample for implementation of MapProviderBase that use Deep Zoom? 


  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Oct 2010 Link to this post

    Hello Oded Zadok,

    I am afraid we do not have this kind of example on hand.

    Kind regards,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner