Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using opentripplanner for an app development. I want to customize the webapp. It has many different maplayers (its using openlayers). I want to change some mapslayers, but i couldn't find in which java-script file they are creating map and maplayers.

share|improve this question
up vote 1 down vote accepted

The entry point for adding map layers is in the Controller. On line 56, the map controller is created: = new otp.core.Map(;

Calling, will give you the OpenLayers.Map object. You're on your own from here, as we haven't really built api support for adding new layers to the map.

This answer was found here and modified a little bit.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.