Category "leaflet"

leaflet poligon draw and kml load

new leaflet user here. basically I need to achieve 2 things: 1.draw a poligon (with my mouse) on a lealet map and be able to edit it 2. import/export kml data

Zoom to fit all markers in Mapbox or Leaflet

How do I set view to see all markers on map in Mapbox or Leaflet? Like Google Maps API does with bounds? E.g: var latlngbounds = new google.maps.LatLngBounds(