Skip to content

Commit 4de7599

Browse files
committed
Disable leaflet-search require AppKey from MapQuest
1 parent 096548e commit 4de7599

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

admin/admin_photo.tpl

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,6 @@
6262
<legend>{'EDIT_MAP'|@translate}</legend>
6363
{'EDIT_UPDATE_LOCATION_DESC'|@translate}
6464
<div id="map"></div>
65-
<div id="info">
66-
<small>Search values: OpenStreetMap Data offer by MapQuest Open Platform
67-
<a href="http://open.mapquestapi.com/nominatim/">open.mapquestapi.com</a></small>
68-
</div>
6965
</fieldset>
7066

7167
<p>
@@ -94,7 +90,9 @@
9490

9591
map.on('click', onMapClick);
9692

93+
/* Disable search require AppKey from mapquest */
9794
/* BEGIN leaflet-search */
95+
/*
9896
var jsonpurl = 'https://open.mapquestapi.com/nominatim/v1/search.php?q={s}'+
9997
'&format=json&osm_type=N&limit=100&addressdetails=0',
10098
jsonpName = 'json_callback';
@@ -128,6 +126,7 @@
128126
};
129127

130128
map.addControl( new L.Control.Search(searchOpts) );
129+
*/
131130
/* END leaflet-search */
132131

133132
function place_to_latlon()

leaflet/qleaflet.jquery.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@
9797

9898
this.map.on('click', onMapClick, this);
9999

100+
/* Disable search require AppKey from mapquest */
100101
/* BEGIN leaflet-search */
102+
/*
101103
var jsonpurl = 'https://open.mapquestapi.com/nominatim/v1/search.php?q={s}'+
102104
'&format=json&osm_type=N&limit=100&addressdetails=0',
103105
jsonpName = 'json_callback';
@@ -131,6 +133,7 @@
131133
};
132134
133135
window.L.control.search(searchOpts).addTo(this.map);
136+
*/
134137
/* END leaflet-search */
135138

136139
},

0 commit comments

Comments
 (0)