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.
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 :