Relation of map scale to markers

2 posts, 0 answers
  1. Nathan
    Nathan avatar
    19 posts
    Member since:
    Jan 2017

    Posted 11 Jul 2017 Link to this post

    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. 

  2. Angel Petrov
    Angel Petrov avatar
    1154 posts

    Posted 13 Jul 2017 Link to this post


    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.

    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.
Back to Top