RT# 81730 - added code to fix possible cross origin request error
[freeside.git] / httemplate / misc / openmap.html
index 7cbe3db..88f64c1 100644 (file)
@@ -18,7 +18,7 @@
 
   <script>
 
-    var url = 'http://nominatim.openstreetmap.org/search?format=json&limit=1&q=<%$loc%>';
+    var url = 'xmlhttp-openstreetmap.html?loc=<%$loc%>';
     $.getJSON(url,function(data){
       var latlong = [data[0].lat, data[0].lon];
       var mymap = L.map('mapid').setView(latlong, 15);