Leaflet map changes in Rails App - 01/05/2018 21:01 EDT
$10-30 AUD
Berlangsung
Dibuat hampir 6 tahun yang lalu
$10-30 AUD
Dibayar ketika dikirim
I have a leaflet map which is embedded in a rails app using haml for views. The map functions, but I would like the map to dynamically zoom and scale to the markers on load instead of a pre-defined spot as it currently does. The haml view is attached.
Hi,
As I understand you want to set zoom so that map shows all the markers set on that.
I think we can make some formula that calculates the center of all markers and zoom.