Merge pull request #4 from prtksxna/markers

Make markers large enough to click
This commit is contained in:
Sajjad Anwar 2014-02-19 20:42:07 +05:30
commit b856a738c9

View File

@ -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) {