Skip to content

Commit 66f4a1f

Browse files
committed
popupicon color
1 parent 38bf7a9 commit 66f4a1f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

_includes/plugins-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

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

2121
// L.FunctionButtons

leaflet.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ An icon that looks like a popup panel, but significantly smaller. Title should b
3030
| Option | Type | Default | Description
3131
|---|---|---|---
3232
| `width` | Number | `150` | Maximum icon width.
33+
| `color` | String | `'white'` | Background CSS color.
3334
| `selectable` | Boolean | `false` | If set, text on the icon can be selected, but marker cannot be clicked or dragged.
3435

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

0 commit comments

Comments
 (0)