diff --git a/README.md b/README.md index 143b56e..2dd6f06 100644 --- a/README.md +++ b/README.md @@ -9,13 +9,13 @@ A control for LeafletJS which scrolls the map through the list of locations and ## Parameters -> var llist = L.control.locationlist( locationsList : [ {title: 'Poland', latlng: [52.03, 19.27], zoom: 6}, +> var llist = L.control.locationlist({ locationsList : [ {title: 'Poland', latlng: [52.03, 19.27], zoom: 6}, {title: 'Other', latlng: [50.04, 14.28], zoom: 6}, {title: 'Other2', latlng: [50.04, 19.27], zoom: 12}], nextText : '->', nextTitle : 'Next', prevText : '<-', - prevTitle : 'Previous'); + prevTitle : 'Previous'}); ###locationsList The array of objects containing locations in format { title: "", latlng: [,], zoom: } .The control will rotate over these locations on click. It assumes that the first location is by default selected, so Next location will be 1st and Prev location will be last in array. Than it scrolls in array, changing current location.