Skip to content

Commit

Permalink
fix(gis): remove hash for cluster AQ and change center
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Aug 14, 2023
1 parent 39bac42 commit 8443016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/gis/cluster-air-quality.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,8 @@
const map = new maplibregl.Map({
container: "map",
style: `https://api.jawg.io/gis/maps/${mapId}/versions/latest/style?access-token=${accessToken}`,
zoom: 5,
hash: true,
center: [2.35, 47.45],
zoom: 2,
center: [8.8, 10.9],
}).addControl(new maplibregl.NavigationControl(), "top-right");
// This plugin is used for right to left languages
maplibregl.setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js");
Expand Down
6 changes: 3 additions & 3 deletions examples/gis/polygon-styling.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
height: 100%;
width: 100%;
display: flex;
align-items: center;
pointer-events: none;
}

#legend svg {
height: 300px;
margin-left: 12px;
margin-top: 12px;
pointer-events: all;
}

Expand All @@ -55,7 +55,7 @@
<div id="map-container">
<div id="map"></div>
<div id="legend">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 65 235">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 25 65 235">
<style>
text {
fill: #444;
Expand Down Expand Up @@ -101,7 +101,7 @@
container: "map",
style: `https://api.jawg.io/gis/maps/${mapId}/versions/latest/style?access-token=${accessToken}`,
zoom: 5,
center: [2.35, 47.45],
center: [2.35, 47],
}).addControl(new maplibregl.NavigationControl(), "top-right");
// This plugin is used for right to left languages
maplibregl.setRTLTextPlugin("https://unpkg.com/@mapbox/mapbox-gl-rtl-text@0.2.3/mapbox-gl-rtl-text.min.js");
Expand Down

0 comments on commit 8443016

Please sign in to comment.