mirror of
https://github.com/geohacker/bmtc.git
synced 2025-12-08 18:23:31 +00:00
Merge pull request #4 from prtksxna/markers
Make markers large enough to click
This commit is contained in:
commit
b856a738c9
10
js/app.js
10
js/app.js
@ -18,7 +18,15 @@
|
||||
var busstopsSearch = [];
|
||||
var busstopsLayer = L.geoJson(busstops, {
|
||||
pointToLayer: function(feature, latlng) {
|
||||
return L.circleMarker(latlng, geojsonMarkerOptions);
|
||||
return L.circleMarker(latlng, {
|
||||
radius: 5,
|
||||
fillColor: "#fff",
|
||||
color: "#267fca",
|
||||
weight: 3,
|
||||
opacity: 1,
|
||||
strokeWidth: 3,
|
||||
fillOpacity: 0.8
|
||||
});
|
||||
},
|
||||
onEachFeature: function (feature, layer) {
|
||||
if (feature.properties && feature.properties.name) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user