Skip to content

Commit

Permalink
Document iconSize property
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Mar 3, 2017
1 parent 7176402 commit cbc908e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -12,7 +12,7 @@ var line = L.polyline(coords);

// override defaults
var line = L.polyline(coords, {
distanceMarkers: { showAll: 11, offset: 1600, cssClass: 'some-other-class' }
distanceMarkers: { showAll: 11, offset: 1600, cssClass: 'some-other-class', iconSize: [16, 16] }
});

// show/hide markers on mouseover
Expand All @@ -31,6 +31,7 @@ map.addLayer(line);
* **showAll**: the zoom level at which all distance markers will be shown -- zooming out once from this level will remove approximately half of the markers (default: 12)
* **lazy**: postpone adding the markers until Polyline.addDistanceMarkers is explicitly called (default: false)
* **cssClass**: CSS class to set on marker icons
* **iconSize**: size of the marker icon in pixels; type: [L.Point](http://leafletjs.com/reference.html#point) or array (default: `[12, 12]`); set to `null` to allow sizing via CSS class (see example on `icon-size` branch)

## Requirements

Expand Down

0 comments on commit cbc908e

Please sign in to comment.