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

Relation of map scale to markers

1 Answer 74 Views
Map
This is a migrated thread and some comments may be shown as answers.
Nathan
Top achievements
Rank 1
Nathan asked on 11 Jul 2017, 05:31 PM

Hi guys I need help trying to figure out how to relate scale to marker locations.

Here is an example of what is required. 

From a center point place a distinct marker defining the center marker. Allow a search radius in miles from that center point. A good example is "You are Here" and within a 50 mile radius there are x number of markers. As the radius becomes larger the default zoom scale zoom: 10 for instance.

It would be ideal if there were a way to auto adjust the scale to display zoom scale based on markers that are not visible under the current scale. 

So if a user had previously entered in a 50 mile radius search and then they performed a 150 mile radius search the map's zoom scale would auto adjust so that the markers at 150 miles all show on the map. The user of course would then have the ability to zoom in or zoom out accordingly but the max zoom allowed would cover all markers in the 150 mile radius. In other words I would not want the user to be able to zoom out and see the entire US or World if the search radius didn't encompass the entire US in miles. 

Any help you could provide would be greatly appreciated. 

1 Answer, 1 is accepted

Sort by
0
Angel Petrov
Telerik team
answered on 13 Jul 2017, 11:26 AM
Hello,

I am sorry to say but the current implementation of the map does not support such functionality. That said I suggest logging a feature request in our feedback portal. That way we will examine the requirement and if possible implement it for a future release.

Regards,
Angel Petrov
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Map
Asked by
Nathan
Top achievements
Rank 1
Answers by
Angel Petrov
Telerik team
Share this question
or