Forums
How to set centre in custom map to specific location? - Printable Version

+- Forums (https://bdn.bdb.ai)
+-- Forum: BDB Knowledge Base (https://bdn.bdb.ai/forumdisplay.php?fid=13)
+--- Forum: BDB Dashboards Designer (https://bdn.bdb.ai/forumdisplay.php?fid=43)
+---- Forum: BDB Designer Q & A (https://bdn.bdb.ai/forumdisplay.php?fid=16)
+---- Thread: How to set centre in custom map to specific location? (/showthread.php?tid=566)



How to set centre in custom map to specific location? - shreekantgosavi - 12-23-2022

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.