devNoiseConsulting/myGeoBeerMap

Add move to and zoom for the search

devNoiseConsulting opened this issue · 1 comments

Take the results from a search and determine the center point of the results.
Have the map move to this location.
Try to figure out of the zoom level needs to be adjusted to see all the results.

Calculated the bounding box for both of these features and passed it to the fitBounds method on the map. This will have the map shift to the area in question with a zoom level that will display the map markers or near me radius.