12 Answers, 1 is accepted
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
ScaleTransform scaleMap;
scaleMap = new ScaleTransform(1.2, 1.2);
RadMap1.RenderTransform = scaleMap;
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
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?
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
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
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
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
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
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
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