Skip to content

Commit

Permalink
Update pmtiles experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
prushfor authored and prushfor committed Aug 29, 2024
1 parent c5d0a14 commit 8f06960
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion vector-tiles/pmtiles/dark.mapml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<mapml- xmlns="http://www.w3.org/1999/xhtml">
<map-head>
<map-title>pmtiles</map-title>
<map-title>pmtiles - dark theme</map-title>
<map-link rel="stylesheet" type="application/pmtiles+stylesheet" href="darkTheme.js"></map-link>
<map-link rel="license" title="© OpenStreetMap contributors CC BY-SA" href="https://www.openstreetmap.org/copyright"></map-link>
<map-link rel="self style" title="Dark theme" href="dark.mapml"></map-link>
<map-link rel="style" title="Light theme" href="light.mapml"></map-link>
<map-meta name="extent" content="top-left-easting=-11625919, top-left-northing=5565456, bottom-right-easting=-11479160, bottom-right-northing=5494446"></map-meta>
</map-head>
<map-body>
<map-extent units="OSMTILE" checked="checked" hidden="hidden">
Expand Down
4 changes: 2 additions & 2 deletions vector-tiles/pmtiles/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<body>

<mapml-viewer projection="OSMTILE" zoom="12" lat="44.436108753775116" lon="-103.75024795532228" controls controlslist="geolocation">
<layer- data-testid="osm-layer" label="OpenStreetMap">
<layer- label="OpenStreetMap">
<map-link rel="license" title="© OpenStreetMap contributors CC BY-SA" href="https://www.openstreetmap.org/copyright"></map-link>
<map-extent units="OSMTILE" checked="checked">
<map-input name="z" type="zoom" value="18" min="0" max="18"></map-input>
Expand All @@ -83,7 +83,7 @@
<map-link rel="tile" tref="https://tile.openstreetmap.org/{z}/{x}/{y}.png"></map-link>
</map-extent>
</layer->
<layer- label="pmtiles" src="light.mapml"></layer->
<layer- src="dark.mapml"></layer->
<layer- checked>
<map-title>Protomaps' {z}/{x}/{y}.mvt API - light theme</map-title>
<map-link rel="stylesheet" type="application/pmtiles+stylesheet" href="lightTheme.js"></map-link>
Expand Down
3 changes: 2 additions & 1 deletion vector-tiles/pmtiles/light.mapml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<mapml- xmlns="http://www.w3.org/1999/xhtml">
<map-head>
<map-title>pmtiles</map-title>
<map-title>pmtiles - light theme</map-title>
<map-link rel="stylesheet" type="application/pmtiles+stylesheet" href="lightTheme.js"></map-link>
<map-link rel="license" title="© OpenStreetMap contributors CC BY-SA" href="https://www.openstreetmap.org/copyright"></map-link>
<map-link rel="style" title="Dark theme" href="dark.mapml"></map-link>
<map-link rel="self style" title="Light theme" href="light.mapml"></map-link>
<map-meta name="extent" content="top-left-easting=-11625919, top-left-northing=5565456, bottom-right-easting=-11479160, bottom-right-northing=5494446"></map-meta>
</map-head>
<map-body>
<map-extent units="OSMTILE" checked="checked" hidden="hidden">
Expand Down

0 comments on commit 8f06960

Please sign in to comment.