+
+
+jQuery(document).on('ready', function(){
+
+ if ( !$('#details-page').length ){ return; }
+
+
+ map = new L.map('map', {
+ // center: [nominatim_map_init.lat, nominatim_map_init.lon],
+ // zoom: nominatim_map_init.zoom,
+ attributionControl: false,
+ scrollWheelZoom: false,
+ touchZoom: false,
+ });
+
+ L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
+ // moved to footer
+ // attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
+ }).addTo(map);
+
+ var layerGroup = new L.layerGroup().addTo(map);
+
+
+ var outline = omnivore.wkt.parse(nominatim_result.outlinestring);
+ map.addLayer(outline);
+
+ var circle = L.circleMarker([nominatim_result.lat,nominatim_result.lon], { radius: 10, weight: 2, fillColor: '#ff7800', color: 'blue', opacity: 0.75});
+ map.addLayer(circle);
+
+ map.fitBounds(outline.getBounds());
+
+});
+