Skip to content

Commit

Permalink
Add retinaIcon and retinaIconCls menu item options. Tabs to spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aratcliffe committed Dec 20, 2016
1 parent 73c99ba commit 745e33a
Show file tree
Hide file tree
Showing 3 changed files with 541 additions and 529 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ L.marker(ll, {
| --- | --- | --- | ---
| text | String | `undefined` | The label to use for the menu item (required).
| icon | String | `undefined` | Url for a 16x16px icon to display to the left of the label.
| retinaIcon | String | `undefined` | Url for a retina-sized version (32x32px) icon to display to the left of the label.
| iconCls | String | `undefined` | A CSS class which sets the background image for the icon (exclusive of the `icon` option).
| retinaIconCls | String | `undefined` | A CSS class which sets the background image for a retina version of the icon (exclusive of the `retinaIcon` option).
| callback | Function | `undefined` | A callback function to be invoked when the menu item is clicked. The callback is passed an object with properties identifying the location the menu was opened at: `latlng`, `layerPoint` and `containerPoint`.
| context | Object | The map | The scope the callback will be executed in.
| disabled | Bool | `false` | If `true` the menu item will initially be in a disabled state and will not respond to click events.
Expand Down
Loading

0 comments on commit 745e33a

Please sign in to comment.