-
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* detect relative URL pmtiles correctly [#152] * put in a placeholder URL to let URL() parse relative URLs without http prefix. * js 3.1.2; update changelog * fix examples
- Loading branch information
Showing
17 changed files
with
30 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="pixelmatch.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
html { | ||
|
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 |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/maplibre-gl.css" crossorigin="anonymous"> | ||
<script src="https://unpkg.com/[email protected]/dist/maplibre-gl.js" crossorigin="anonymous"></script> | ||
<script src="https://unpkg.com/@maplibre/[email protected]/leaflet-maplibre-gl.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<style> | ||
#parent { | ||
display:flex; | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
|
||
<link href="https://fonts.googleapis.com/css2?family=Inter:[email protected]&family=Work+Sans:[email protected]&family=Petrona:[email protected]&family=Raleway:[email protected]" rel="stylesheet"> | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
#map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/dist/pmtiles.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"/> | ||
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | ||
<script src="https://unpkg.com/[email protected]/leaflet-hash.js"></script> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
body, #map { | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script src="https://unpkg.com/[email protected].1/dist/protomaps-leaflet.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].2/dist/protomaps-leaflet.min.js"></script> | ||
<!-- <script src="../dist/protomaps-leaflet.js"></script> --> | ||
<style> | ||
#map { | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "protomaps-leaflet", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"files": [ | ||
"dist", | ||
"src" | ||
|
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