Created
February 25, 2014 14:14
-
-
Save danilat/9209543 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Parche para el tranvía, que la latitud y longitud está al revés... | |
if(url == 'http://www.zaragoza.es/trafico/estado/transporte/tranviawgs84.json'){ | |
var lat = feature.geometry.coordinates[1]; | |
var lon = feature.geometry.coordinates[0]; | |
}else{ | |
var lat = feature.geometry.coordinates[0]; | |
var lon = feature.geometry.coordinates[1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment