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.