Take the 2-minute tour ×
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 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
add comment

1 Answer

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:

this.map = new otp.core.Map(this.config.map);

Calling this.map.getMap(), 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
add comment

Your Answer

 
discard

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.