RadMap zoomlevel granularity

13 posts, 1 answers
  1. James
    James avatar
    30 posts
    Member since:
    Aug 2008

    Posted 01 Dec 2010 Link to this post

    Is there any chance that we can get the zoomlevel changed to a double so that I can more precisely size my map? Or is there another way to achieve this? E.G. the difference between zoom level 7 and 8 on one of the supplied US state shapefiles is quite a lot. I'd like to be able to zoom in at, say 7.3 or 7.4.
  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 06 Dec 2010 Link to this post

    Hello James,

    At present, the map control supports a zoom level of integer type only.
    Most of the map providers do not allow getting tiles for fractional zoom levels. So, the RadMap supports integer zoom levels irrespective of type of map provider you use (bing, open street or empty provider).
    I hope this information helps.

    Regards,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  3. James
    James avatar
    30 posts
    Member since:
    Aug 2008

    Posted 06 Dec 2010 Link to this post

    Can I do a transform on the MapLayer to make it just a bit larger?
  4. James
    James avatar
    30 posts
    Member since:
    Aug 2008

    Posted 06 Dec 2010 Link to this post

    I'm using a ScaleTransform - it works. Not perfect, but not bad.

    ScaleTransform scaleMap;
    scaleMap = new ScaleTransform(1.2, 1.2);
    RadMap1.RenderTransform = scaleMap;
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 09 Dec 2010 Link to this post

    Hi James,

    I should note that applying of the transformation to the map object (or to the layer) isn't a good idia. It will brake all calcualtions which use screen coordinates (mouse click, for example). It also could affect panning and zooming and provide wrong position for the items over the map.

    Regards,
    Andrey Murzov
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for WPF
  6. Steven
    Steven avatar
    4 posts
    Member since:
    Oct 2010

    Posted 29 Mar 2011 Link to this post

    It's not the integer for us that is the problem, it's the granularity of the integer, specifically with the Bing Map Provider.If there were 32,000 integer levels then things would be A-OK.

    I don't know the range in meters for the zoom on the Bing Map Provider but it either zooms in too much or out too much and there's no middle ground.

    Are there any other ways we can affect the granularity of the zoom for the Bing Map Provider?
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 01 Apr 2011 Link to this post

    Hi Steven,

    Unfortunately there is no way  to change granularity of the zoom. Microsoft Bing imagery services don't support something else. 

    Kind regards,
    Andrey Murzov
    the Telerik team
  8. Peter
    Peter avatar
    64 posts
    Member since:
    Oct 2016

    Posted 24 Oct 2018 in reply to Andrey Link to this post

    Hi Andrey,

    I understand that map sources such as Bing, Google etc work on the basis of a fixed number of zoom levels, using a tile matrix which quadruples the number of tiles required for each zoom level. It would be desirable if the map control could accept non-integer zoom levels, in which case the control could request tiles at the most appropriate integer zoom levels and scale the image shown in the radmap control (possibly by using a wpf scale transform).

    Do you think this might work?

    Pete

     

  9. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    657 posts

    Posted 29 Oct 2018 Link to this post

    Hello Peter,

    I am afraid that performing a scale transform on the image would produce unexpected results with some of the RadMap functionality. You can refer to one of the answers below for some more information on the matter: https://www.telerik.com/forums/radmap-zoomlevel-granularity#TTUUDyPJXU2NaNC6n1ezBg. Keeping this in mind, I would not recommend such an approach.

    That said, if you can show us some mapping software which supports this functionality, we will be glad to review it and potentially add in a new feature request in our feedback portal.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  10. Peter
    Peter avatar
    64 posts
    Member since:
    Oct 2016

    Posted 05 Nov 2018 in reply to Vladimir Stoyanov Link to this post

    Hi Vladimir,

    We were previously using an open-source component SharpMap (which has a winforms map control) for rendering maps. We switched to RadMapbecause we use Telerik controls elsewhere and we wanted a native WPF map control. RadMap is much better in many ways (mainly visual) but SharpMap was able to render an image to fit the viewport i.e. you could tell it to render a geographic area and it would fit the rendered image in the viewport i.e. depending on the relative aspect ratio it would exactly fit the geographic region in the viewport. When I get time I'll try and create  sample app to show this.

    Thanks,

    Pete

  11. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    657 posts

    Posted 06 Nov 2018 Link to this post

    Hello Peter,

    Feel free to take your time with preparing the sample. When you have done so, you can open a new feature request in our feedback portal with the sample attached and we will review it.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
  12. Peter
    Peter avatar
    64 posts
    Member since:
    Oct 2016

    Posted 08 Nov 2018 in reply to Vladimir Stoyanov Link to this post

    Hi Vladimir,

    This feature request sounds very much like what we need: https://feedback.telerik.com/Project/143/Feedback/Details/113322-map-support-of-the-smooth-zooming

    I've added my comments there and attached the sample app. Let me know if I should have created a new feature request.

    Thanks,
    Pete

  13. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    657 posts

    Posted 08 Nov 2018 Link to this post

    Hello Peter,

    Indeed I have missed the referenced feature request while searching. You do not have to create a new one. I raised the internal priority of the referenced item accordingly.

    Thank you for taking the time to create a sample project. We will review it and take it into account when the feature request is planned.

    Regards,
    Vladimir Stoyanov
    Progress Telerik
    Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Back to Top