Skip to content

Commit

Permalink
popupicon color
Browse files Browse the repository at this point in the history
  • Loading branch information
Zverik committed Dec 20, 2013
1 parent 38bf7a9 commit 66f4a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/plugins-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

// L.PopupIcon
var mappi = createMap('mappi');
mappi.addLayer(L.marker([11, 22], { clickable: false, icon: L.popupIcon("No, you don't have to click me", { selectable: true }) }));
mappi.addLayer(L.marker([11, 22], { clickable: false, icon: L.popupIcon("No, you don't have to click me", { selectable: true, color: 'yellow' }) }));
mappi.addLayer(L.marker([-20, 100], { icon: L.popupIcon("(but I'm ok with that)") }).bindPopup('Popup on a popup. Oh, the irony.'));

// L.FunctionButtons
Expand Down
1 change: 1 addition & 0 deletions leaflet.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ An icon that looks like a popup panel, but significantly smaller. Title should b
| Option | Type | Default | Description
|---|---|---|---
| `width` | Number | `150` | Maximum icon width.
| `color` | String | `'white'` | Background CSS color.
| `selectable` | Boolean | `false` | If set, text on the icon can be selected, but marker cannot be clicked or dragged.

[Download](https://raw.github.com/MapBBCode/mapbbcode/master/src/controls/PopupIcon.js)
Expand Down

0 comments on commit 66f4a1f

Please sign in to comment.