-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #71 from webberig/maplibre
Migrate to MapLibre GL JS
- Loading branch information
Showing
7 changed files
with
39 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,8 @@ | |
|
||
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="https://api.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.css" /> | ||
<script src="https://api.mapbox.com/mapbox-gl-js/v0.30.0/mapbox-gl.js"></script> | ||
<script src="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.js"></script> | ||
<link href="https://unpkg.com/maplibre-gl@1.14.0-rc.1/dist/maplibre-gl.css" rel="stylesheet" /> | ||
|
||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
|
@@ -23,14 +23,14 @@ | |
<script src="https://mapzen.com/js/mapzen.min.js"></script> | ||
--> | ||
|
||
<div class="viewers map active" id="map-mbgljs"></div> | ||
<div class="viewers map active" id="map-mlgljs"></div> | ||
<div class="viewers map" id="map-leaflet"></div> | ||
<div class="viewers map" id="map-ol"></div> | ||
<!-- <div class="viewers map" id="map-tangram"></div> --> | ||
|
||
<div class="viewers map-switchers"><!-- | ||
--><div class="active map-switch" id="map-switch-mbgljs" onclick="javascript:switchMap('mbgljs')"> | ||
<span>MB GL JS</span> | ||
--><div class="active map-switch" id="map-switch-mlgljs" onclick="javascript:switchMap('mlgljs')"> | ||
<span>MapLibre GL JS</span> | ||
</div><!-- | ||
--><div class="map-switch" id="map-switch-leaflet" onclick="javascript:switchMap('leaflet')"> | ||
<span>Leaflet</span> | ||
|