L.tileLayer(get_config_value('Map_Tile_URL'), {
// moved to footer
- attribution: (get_config_value('Map_Tile_Attribution') || null ) //'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+ attribution: (get_config_value('Map_Tile_Attribution') || null ) //'© <a href="https://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
var layerGroup = new L.layerGroup().addTo(map);
if (geojson) {
var geojson_layer = L.geoJson(
- // http://leafletjs.com/reference-1.0.3.html#path-option
+ // https://leafletjs.com/reference-1.0.3.html#path-option
parse_and_normalize_geojson_string(geojson),
{
style: function(feature) {
osmid: search_params.get('osmid'),
keywords: search_params.get('keywords'),
addressdetails: 1,
- linkedplaces: 1,
- childplaces: 1,
- group_childplaces: 1,
+ hierarchy: 1,
+ group_hierarchy: 1,
polygon_geojson: 1,
format: 'json'
};
update_data_date();
- init_map_on_detail_page(aFeature.lat, aFeature.lon, aFeature.geometry);
+ var lat = aFeature.centroid.coordinates[1];
+ var lon = aFeature.centroid.coordinates[0];
+ init_map_on_detail_page(lat, lon, aFeature.geometry);
});
});
\ No newline at end of file