Skip to content

Commit

Permalink
fix https url
Browse files Browse the repository at this point in the history
  • Loading branch information
domlysz committed Jul 7, 2020
1 parent 489173d commit 919d14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/opp.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function OPP(providers, theme) {

//Create main map
self.map = L.map('map',{zoomControl:false, center:[46.2, 2.35], zoom:5});
self.basemap = L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
self.basemap = L.tileLayer('https://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
}).addTo(self.map);
self.tocLayers = L.control.layers(null, null, {position:'topright'});
Expand All @@ -204,7 +204,7 @@ function OPP(providers, theme) {
//add search control
self.map.addControl( new L.Control.Search({
position : 'topleft',
url: 'http://nominatim.openstreetmap.org/search?format=json&q={s}',
url: 'https://nominatim.openstreetmap.org/search?format=json&q={s}',
jsonpParam: 'json_callback',
propertyName: 'display_name',
propertyLoc: ['lat','lon'],
Expand Down

0 comments on commit 919d14e

Please sign in to comment.