<p></p>
<p><b>@1ec5</b> approved this pull request.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2536944194">app/assets/javascripts/dashboard.js</a>:</p>
<pre style='color:#555'>> $(function () {
const defaultHomeZoom = 12;
let map;
if ($("#map").length) {
- map = L.map("map", {
+ map = new maplibregl.Map({
+ container: "map",
+ style: {
+ version: 8,
+ name: "OSM Raster",
+ sources: {
+ osm: {
+ type: "raster",
+ tiles: [
+ "https://tile.openstreetmap.org/{z}/{x}/{y}.png"
+ ],
+ tileSize: 256,
+ maxzoom: 19,
+ attribution: "© OpenStreetMap contributors"
</pre>
<p dir="auto">Do we need to set this property if <code class="notranslate">attributionControl</code> is going to be <code class="notranslate">false</code> anyways?</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2536947900">app/assets/javascripts/dashboard.js</a>:</p>
<pre style='color:#555'>> $(function () {
const defaultHomeZoom = 12;
let map;
if ($("#map").length) {
- map = L.map("map", {
+ map = new maplibregl.Map({
+ container: "map",
+ style: {
+ version: 8,
+ name: "OSM Raster",
</pre>
<p dir="auto">This property is <a href="https://maplibre.org/maplibre-style-spec/root/#name" rel="nofollow">optional</a>. If anything surfaces it to the user somehow, we’d need to make it localizable, but I think it would be easier to omit it.</p>
<hr>
<p>In <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#discussion_r2536966983">app/assets/stylesheets/maplibre-gl-all.scss</a>:</p>
<pre style='color:#555'>> +
+ &:hover, &:focus {
+ background-color: black !important;
+ }
+
+ &:first-child {
+ border-start-start-radius: 4px;
+ }
+
+ &:last-child {
+ border-end-start-radius: 4px;
+ }
+}
+
+.maplibregl-user-location-accuracy-circle {
+ background-color: $green !important;
</pre>
<p dir="auto">This is a nice touch. It’s inconsistent with the accuracy circle’s appearance on the homepage, but I suspect most users won’t notice the inconsistency. (For that matter, I had forgotten we even had a geolocation control on this map.)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/6504#pullrequestreview-3476280514">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLL7XA5C7Y37PJBF7SD35LPFTAVCNFSM6AAAAACLKBT5BCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTINZWGI4DANJRGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLOHLONZOUNLOMA52OD35LPFTA5CNFSM6AAAAACLKBT5BCWGG33NNVSW45C7OR4XAZNRKB2WY3CSMVYXKZLTORJGK5TJMV32UY3PNVWWK3TUL5UWJTWPGPKME.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/6504/review/3476280514</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/6504#pullrequestreview-3476280514",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/6504#pullrequestreview-3476280514",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>