File tree 4 files changed +8
-8
lines changed
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ Add the control to a map instance:
49
49
50
50
``` javascript
51
51
var map = L .map (' map' ).setView ([0 , 0 ], 2 );
52
- L .tileLayer (' http ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
53
- attribution: ' © <a href="http ://osm.org/copyright">OpenStreetMap</a> contributors'
52
+ L .tileLayer (' https ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
53
+ attribution: ' © <a href="https ://osm.org/copyright">OpenStreetMap</a> contributors'
54
54
}).addTo (map);
55
55
L .Control .geocoder ().addTo (map);
56
56
```
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import L from 'leaflet';
2
2
import 'leaflet-control-geocoder' ;
3
3
4
4
var map = L . map ( 'map' ) . setView ( [ 0 , 0 ] , 2 ) ;
5
- L . tileLayer ( 'http ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
6
- attribution : '© <a href="http ://osm.org/copyright">OpenStreetMap</a> contributors'
5
+ L . tileLayer ( 'https ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
6
+ attribution : '© <a href="https ://osm.org/copyright">OpenStreetMap</a> contributors'
7
7
} ) . addTo ( map ) ;
8
8
9
9
L . Control . geocoder ( {
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ import L from 'leaflet';
2
2
import 'leaflet-control-geocoder' ;
3
3
4
4
var map = L . map ( 'map' ) . setView ( [ 0 , 0 ] , 2 ) ;
5
- L . tileLayer ( 'http ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
6
- attribution : '© <a href="http ://osm.org/copyright">OpenStreetMap</a> contributors'
5
+ L . tileLayer ( 'https ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
6
+ attribution : '© <a href="https ://osm.org/copyright">OpenStreetMap</a> contributors'
7
7
} ) . addTo ( map ) ;
8
8
9
9
L . Control . geocoder ( {
Original file line number Diff line number Diff line change 49
49
} ) . addTo ( map ) ;
50
50
var marker ;
51
51
52
- L . tileLayer ( 'http ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
53
- attribution : '© <a href="http ://osm.org/copyright">OpenStreetMap</a> contributors'
52
+ L . tileLayer ( 'https ://{s}.tile.osm.org/{z}/{x}/{y}.png' , {
53
+ attribution : '© <a href="https ://osm.org/copyright">OpenStreetMap</a> contributors'
54
54
} ) . addTo ( map ) ;
55
55
56
56
map . on ( 'click' , function ( e ) {
You can’t perform that action at this time.
0 commit comments