From aad6f3cd70be8371e57c55708f420167e5b08adc Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Thu, 14 May 2015 16:41:18 +0100 Subject: [PATCH] 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 --- code/search.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/search.js b/code/search.js index 1e16e3d5..ca446fb6 100644 --- a/code/search.js +++ b/code/search.js @@ -292,6 +292,9 @@ addHook('search', function(query) { opacity: 0.7, weight: 2, fill: false, + pointToLayer: function(featureData,latLng) { + return createGenericMarker(latLng,'red'); + } }); }