Skip to content

Instantly share code, notes, and snippets.

@danilat
Created February 25, 2014 14:14
Show Gist options
  • Save danilat/9209543 to your computer and use it in GitHub Desktop.
Save danilat/9209543 to your computer and use it in GitHub Desktop.
// 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