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


Messages In This Thread
How to set centre in custom map to specific location? - by shreekantgosavi - 12-23-2022, 11:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)