Skip to content

Commit 9577555

Browse files
authored
Refactor comments and update tile layer URL
1 parent f7858e5 commit 9577555

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

index.html

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,9 @@
130130
zoomControl: true
131131
});
132132

133-
// 2. Monochrome-ish basemap (Carto light_all, OSM data)
134-
// This is a widely used neutral/grey tile set.
133+
// 2. Light grey basemap (Carto light_all on OSM data)
135134
L.tileLayer(
136-
'https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png',
135+
'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png',
137136
{
138137
maxZoom: 20,
139138
attribution: '© OpenStreetMap contributors © CARTO'
@@ -189,24 +188,23 @@
189188
// main visible marker
190189
var marker = L.circleMarker(latlng, {
191190
radius: 6,
192-
color: '#ffffff', // stroke color
191+
color: '#ffffff',
193192
weight: 2,
194-
fillColor: '#1d4ed8', // fill color
193+
fillColor: '#1d4ed8',
195194
fillOpacity: 0.8
196195
});
197196

198197
// attach popup
199198
marker.bindPopup(buildPopupHTML(props));
200199

201-
// buffer circle ~50m
200+
// 50m radius circle
202201
var circle = L.circle(latlng, {
203202
radius: 50,
204203
color: '#1d4ed8',
205204
weight: 1,
206205
fillColor: '#1d4ed8',
207206
fillOpacity: 0.15
208207
});
209-
210208
circle.addTo(map);
211209

212210
// collect for fitBounds
@@ -233,5 +231,6 @@
233231
})();
234232
</script>
235233

234+
236235
</body>
237236
</html>

0 commit comments

Comments
 (0)