Forums

Full Version: How to set centre in custom map to specific location?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Use below javascript to achieve this functionality.
var map = L.map('map').setView([51.505, -0.09], 13);
In this way you can set latitude and longitude and zoom level of required location.