Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set centre in custom map to specific location?
#1
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)