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

RadMap zoomlevel granularity

12 Answers 109 Views
Map
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 01 Dec 2010, 11:50 PM
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.

12 Answers, 1 is accepted

Sort by
0
Accepted
Andrey
Telerik team
answered on 06 Dec 2010, 03:46 PM
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
0
James
Top achievements
Rank 1
answered on 06 Dec 2010, 04:12 PM
Can I do a transform on the MapLayer to make it just a bit larger?
0
James
Top achievements
Rank 1
answered on 06 Dec 2010, 04:21 PM
I'm using a ScaleTransform - it works. Not perfect, but not bad.

ScaleTransform scaleMap;
scaleMap = new ScaleTransform(1.2, 1.2);
RadMap1.RenderTransform = scaleMap;
0
Andrey
Telerik team
answered on 09 Dec 2010, 08:28 AM
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
0
Steven
Top achievements
Rank 1
answered on 29 Mar 2011, 02:33 PM
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?
0
Andrey
Telerik team
answered on 01 Apr 2011, 09:51 AM
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
0
Peter
Top achievements
Rank 1
Veteran
answered on 24 Oct 2018, 02:42 PM

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

 

0
Vladimir Stoyanov
Telerik team
answered on 29 Oct 2018, 02:06 PM
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.
0
Peter
Top achievements
Rank 1
Veteran
answered on 05 Nov 2018, 04:04 PM

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

0
Vladimir Stoyanov
Telerik team
answered on 06 Nov 2018, 04:11 PM
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.
0
Peter
Top achievements
Rank 1
Veteran
answered on 08 Nov 2018, 10:10 AM

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

0
Vladimir Stoyanov
Telerik team
answered on 08 Nov 2018, 05:42 PM
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.
Tags
Map
Asked by
James
Top achievements
Rank 1
Answers by
Andrey
Telerik team
James
Top achievements
Rank 1
Steven
Top achievements
Rank 1
Peter
Top achievements
Rank 1
Veteran
Vladimir Stoyanov
Telerik team
Share this question
or