mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 10:27:57 +00:00
Merge branch 'fix-map-on-details-page' of https://github.com/mtmail/Nominatim into mtmail-fix-map-on-details-page
This commit is contained in:
@@ -17,7 +17,7 @@ function parse_and_normalize_geojson_string(raw_string){
|
||||
return parsed_geojson;
|
||||
}
|
||||
|
||||
jQuery(document).on('ready', function(){
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
if ( !$('#search-page,#reverse-page').length ){ return; }
|
||||
|
||||
@@ -265,7 +265,7 @@ jQuery(document).on('ready', function(){
|
||||
});
|
||||
|
||||
|
||||
jQuery(document).on('ready', function(){
|
||||
jQuery(document).ready(function(){
|
||||
|
||||
if ( !$('#details-page').length ){ return; }
|
||||
|
||||
@@ -284,9 +284,6 @@ jQuery(document).on('ready', function(){
|
||||
attribution: (nominatim_map_init.tile_attribution || null ) //'© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
|
||||
}).addTo(map);
|
||||
|
||||
var osm2 = new L.TileLayer(nominatim_map_init.tile_url, {minZoom: 0, maxZoom: 13, attribution: (nominatim_map_init.tile_attribution || null )});
|
||||
var miniMap = new L.Control.MiniMap(osm2, {toggleDisplay: true}).addTo(map);
|
||||
|
||||
var layerGroup = new L.layerGroup().addTo(map);
|
||||
|
||||
var circle = L.circleMarker([nominatim_result.lat,nominatim_result.lon], { radius: 10, weight: 2, fillColor: '#ff7800', color: 'blue', opacity: 0.75});
|
||||
@@ -309,6 +306,8 @@ jQuery(document).on('ready', function(){
|
||||
map.setView([nominatim_result.lat,nominatim_result.lon],10);
|
||||
}
|
||||
|
||||
var osm2 = new L.TileLayer(nominatim_map_init.tile_url, {minZoom: 0, maxZoom: 13, attribution: (nominatim_map_init.tile_attribution || null )});
|
||||
var miniMap = new L.Control.MiniMap(osm2, {toggleDisplay: true}).addTo(map);
|
||||
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user