Skip to content

Commit c6bda94

Browse files
authored
Merge pull request #13 from gmclelland/patch-1
Use secure https version instead of http
2 parents cdbd2fd + eb0c1e7 commit c6bda94

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

MarkupLeafletMap.module

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
*
1818
* Add this somewhere before your closing </head> tag:
1919
*
20-
* <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
21-
* <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
20+
* <link rel="stylesheet" href="https://unpkg.com/leaflet@0.7.3/dist/leaflet.css" />
21+
* <script src="https://unpkg.com/leaflet@0.7.3/dist/leaflet.js"></script>
2222
*
2323
* In the location where you want to output your map, do the following in your template file:
2424
*
@@ -106,10 +106,10 @@ class MarkupLeafletMap extends WireData implements Module {
106106
$class = $this->classname();
107107
$assetPath = $this->config->urls->$class;
108108

109-
$this->config->styles->add('http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css');
109+
$this->config->styles->add('https://unpkg.com/leaflet@0.7.3/dist/leaflet.css');
110110
$this->config->styles->add($assetPath . "assets/leaflet-markercluster/MarkerCluster.css");
111111
$this->config->styles->add($assetPath . "assets/leaflet-markercluster/MarkerCluster.Default.css");
112-
$this->config->scripts->add('http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js');
112+
$this->config->scripts->add('https://unpkg.com/leaflet@0.7.3/dist/leaflet.js');
113113
$this->config->scripts->add($assetPath . 'assets/leaflet-markercluster/leaflet.markercluster.js');
114114
$this->config->scripts->add($assetPath . 'assets/leaflet-providers/leaflet-providers.js');
115115
$this->config->scripts->add($assetPath . 'MarkupLeafletMap.js');

0 commit comments

Comments
 (0)