Leaflet map changes in Rails App - 01/05/2018 21:01 EDT

Đang Thực Hiện Đã đăng vào 5 năm trước Thanh toán khi bàn giao
Đang Thực Hiện Thanh toán khi bàn giao

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.

JavaScript Ruby on Rails

ID dự án: #16855523

Về dự án

2 đề xuất Dự án từ xa 5 năm trước đang mở

2 freelancer chào giá trung bình$30 cho công việc này

gogabidzi1

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.

$30 AUD trong 1 ngày
(13 Nhận xét)
4.3