summaryrefslogtreecommitdiff
path: root/loleaflet/README
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-12 18:06:49 +0300
committerMihai Varga <mihai.varga@collabora.com>2015-08-12 18:06:49 +0300
commitcd83b92370423c0cd9ca7886d428c646b1383002 (patch)
tree913ff3a035a12ac4b84e8b31b31a70464dd5c9fe /loleaflet/README
parent3e0a3d9ed6bd612e56ab38d8189f63ed2fe35af7 (diff)
loleaflet: rename 'searchnotfound' event to 'search'
Also added 'originalPhrase' and 'count' members to the event
Diffstat (limited to 'loleaflet/README')
-rw-r--r--loleaflet/README4
1 files changed, 3 insertions, 1 deletions
diff --git a/loleaflet/README b/loleaflet/README
index 2b1c2f8a9..f201d0c14 100644
--- a/loleaflet/README
+++ b/loleaflet/README
@@ -58,7 +58,9 @@ Search:
- API:
map.search(text, [backward])
- events:
- map.on('searchnotfound', function)
+ map.on('search', function (e) {}) (currently only fired when no search result is found) where:
+ + e.originalPhrase = the phrase that has been searched for
+ + e.count = number of results
Zoom:
- API: