File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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');
You can’t perform that action at this time.
0 commit comments