Mapfishapp addon made to display vector data from OSM (got from the Overpass API) into a vector layer.
Original work from @pmauduit (https://github.com/pmauduit/osm2geor). Minor changes from @fvanderbiest to make it work with geOrchestra 14.12 and later.
Edit the GEOR_custom.js
file to add the required configuration for this addon:
ADDONS: [...,
{
"id": "osm2geor_0",
"name": "Osm2Geor",
"options": {},
"title": {
"fr": "OSM vers geOrchestra",
"en": "OSM to geOrchestra",
"es": "OSM a geOrchestra",
"de": "OSM zu geOrchestra"
},
"description": {
"fr": "Cet addon permet de charger une nouvelle couche de données en provenance de la base OpenStreetMap",
"en": "This addon allows you to load OSM data as a new layer in your map",
"es": "Esta herramienta le permite mostrar datos OSM en su mapa",
"de": "Dieses Add-on ermöglicht es die OSM-Daten in Ihrer Karte anzuzeigen"
}
}], ...
With the options
property, you can customize a bit more the way this addon works, eg:
"options": {
"API_URL": "..."
"formatOptions": {
"checkTags": true,
...
},
"queries": [{
"name": {
"en": "Amenities",
"es": "Comodidades",
"fr": "Equipements",
"de": "Ausstattung"
},
"query": "node[\"amenity\"]{{BBOX}};way[\"amenity\"]{{BBOX}};"
}, {
"name": {
"en": "Roads",
"es": "Carreteras",
"fr": "Routes",
"de": "Strassen"
},
"query": "way[\"highway\"]{{BBOX}};"
}],
"styles": [{
"name": {
"en": "Yellow",
"es": "Amarillo",
"fr": "Jaune",
"de": "Gelb"
},
"style": "{\"strokeColor\": \"#ffff00\", \"fillColor\": \"#ffff00\"}"
}, {
"name": {
"en": "Red",
"es": "Rojo",
"fr": "Rouge",
"de": "Rot"
},
"style": "{\"strokeColor\": \"#ff0000\", \"fillColor\": \"#ff0000\"}"
}]
},
API_URL
defaults to "http://overpass-api.de/api/interpreter"formatOptions
relates to the OpenLayers OSM format, see it's source for detailed options.styles
is to provide default styles for OSM features. Please refer to OpenLayers/Feature/Vector.js for a list of all possible properties.queries
lists some OSM OverPass API queries. See the Overpass API language guide for more information.