initial commit

This commit is contained in:
Norbert Renner 2014-01-27 18:34:48 +01:00
parent 37980ff82b
commit 4cc16bccd0
17 changed files with 789 additions and 0 deletions

17
js/plugin/Search.js Normal file
View file

@ -0,0 +1,17 @@
BR.Search = L.Control.Search.extend({
options: {
//url: 'http://nominatim.openstreetmap.org/search?format=json&q={s}',
url: 'http://open.mapquestapi.com/nominatim/v1/search.php?format=json&q={s}',
jsonpParam: 'json_callback',
propertyName: 'display_name',
propertyLoc: ['lat','lon'],
markerLocation: false,
autoType: false,
autoCollapse: true,
minLength: 2,
zoom: 12
},
// patch: interferes with draw plugin (adds all layers twice to map?)
_onLayerAddRemove: function() {}
});