Skip to content

Commit

Permalink
Fixes loading of stops layer
Browse files Browse the repository at this point in the history
Now Layer with Public transport stops didn't load if each stop didn't
have stopUrl. Error was seen only if you open developer console.
  • Loading branch information
buma committed Apr 10, 2014
1 parent 52177c9 commit d958897
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -67,7 +67,7 @@ otp.layers.StopsLayer =
stop.lon = stop.lon || stop.stopLon;

// temporary TriMet specific code
if(stop.stopUrl.indexOf("http://trimet.org") === 0) {
if(stop.stopUrl && stop.stopUrl.indexOf("http://trimet.org") === 0) {
stop.titleLink = 'http://www.trimet.org/go/cgi-bin/cstops.pl?action=entry&resptype=U&lang=en&noCat=Landmark&Loc=' + stop.id.id;
}
//console.log(stop);
Expand Down

0 comments on commit d958897

Please sign in to comment.