map.locate leaflet code example Example: leaflet circle get bounds var center = L.latLng(40,-3); var bounds = center.toBounds(500);