add callback to create point features for search results - the default leaflet icon won't work (and would be the wrong colour anyway)

fix #998
This commit is contained in:
Jon Atkins 2015-05-14 16:41:18 +01:00
parent 5b5c6d5947
commit aad6f3cd70

View File

@ -292,6 +292,9 @@ addHook('search', function(query) {
opacity: 0.7,
weight: 2,
fill: false,
pointToLayer: function(featureData,latLng) {
return createGenericMarker(latLng,'red');
}
});
}