pigeon-maps icon indicating copy to clipboard operation
pigeon-maps copied to clipboard

A feature to automatically fit the map's bounds to center and display all markers

Open aorumbayev opened this issue 5 years ago • 1 comments

First of all, great implementation, just removed a redundant google maps component and this pigeon is blazing fast !

I was wondering if there is an ability to automatically fit all the markers and center the map such that user could see all markers on a map with appropriate zoom level ?

aorumbayev avatar Jun 15 '19 17:06 aorumbayev

Hey, see this issue for a sample solution: https://github.com/mariusandra/pigeon-maps/issues/23

Ideally this code could be brought onto the pigeon maps website as a button to click to give it more visibility than in a closed issue.

Anybody up for the task?

Since this implementation requires importing a few external libraries, it will not be part of pigeon-maps itself. An even better approach would be to extract the relevant code into one independent utility function...

mariusandra avatar Jun 16 '19 17:06 mariusandra