Skip to content

Commit 449a29c

Browse files
committed
Spaces > tabs
1 parent bb0f679 commit 449a29c

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

docs/demo-labels.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,20 @@
2323
rendererFactory: L.canvas.tile,
2424
attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, &copy; <a href="https://www.mapbox.com/about/maps/">MapBox</a>',
2525
onEachFeature: (function () {
26-
var seen = {};
27-
return function (feature, featureLayer, vtLayer, tileCoords) {
28-
var id = feature.id;
29-
if (!seen[id]) {
30-
if(vtLayer.name === 'place_label' && feature.properties.localrank > 60) {
31-
var latlng = this.vtGeometryToLatLng(feature.geometry[0], vtLayer, tileCoords)
32-
marker = new L.CircleMarker(latlng, {stroke: false, fill: false});
33-
marker.bindTooltip(feature.properties.name, {permanent: true}).openTooltip();
34-
this.addUserLayer(marker, tileCoords);
35-
}
36-
seen[id] = true;
37-
}
38-
}
39-
}()),
26+
var seen = {};
27+
return function (feature, featureLayer, vtLayer, tileCoords) {
28+
var id = feature.id;
29+
if (!seen[id]) {
30+
if (vtLayer.name === 'place_label' && feature.properties.localrank > 60) {
31+
var latlng = this.vtGeometryToLatLng(feature.geometry[0], vtLayer, tileCoords)
32+
marker = new L.CircleMarker(latlng, {stroke: false, fill: false});
33+
marker.bindTooltip(feature.properties.name, {permanent: true}).openTooltip();
34+
this.addUserLayer(marker, tileCoords);
35+
}
36+
seen[id] = true;
37+
}
38+
}
39+
}()),
4040
vectorTileLayerStyles: {
4141

4242
water: {

0 commit comments

Comments
 (0)