Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
options now described correctly
  • Loading branch information
mithron committed Jul 31, 2014
1 parent c759356 commit e292b83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e292b83

Please sign in to comment.