Skip to content

Commit 87d970e

Browse files
author
Nathan
committed
update readme with readonly method/option information
1 parent 137025f commit 87d970e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@ var plottedPolyline = L.Polyline.Plotter([
3030
plottedPolyline.getLatLngs();
3131
```
3232

33+
### Read only plot
34+
35+
default: `false`
36+
37+
With the plotter, you can create a plot with the options when initializing:
38+
39+
```javascript
40+
var plottedPolyline = L.Polyline.Plotter([
41+
[51.53662, -0.09218]
42+
],{
43+
weight: 5,
44+
readOnly: true
45+
}).addTo(map);
46+
```
47+
48+
or you can set it after the fact:
49+
50+
```javascript
51+
plottedPolyline.setReadOnly(true);
52+
```
53+
3354
## Licence
3455

3556
Copyright (c) 2013 Nathan Mahdavi

0 commit comments

Comments
 (0)