I am developing an app using opentripplanner. It creates an openlayer map in map.js. I want to access this map in index.html so i can set it's center. Kindly help me out.
Tell me more
×
Geographic Information Systems Stack Exchange is a question and answer site for
cartographers, geographers and GIS professionals. It's 100% free, no registration required.
|
i dont think opentripplanner uses openlayers so i have checked it and it uses leaflet so you have to use following method for centering your map.(you can put it anywhere after your map.js is loaded)
i hope it helps you... |
|||
|
|
|
In index.html :
In myscript.js
|
|||
|
|
