Add popup in label debug page
This commit is contained in:
parent
d7b721877c
commit
b685d22eee
@ -34,7 +34,7 @@
|
|||||||
L.polygon([[41.20, 9.41], [41.20, 9.39], [41.21, 9.40]]).addTo(map).bindLabel('Polygon label following mouse', {followMouse: true});
|
L.polygon([[41.20, 9.41], [41.20, 9.39], [41.21, 9.40]]).addTo(map).bindLabel('Polygon label following mouse', {followMouse: true});
|
||||||
L.polygon([[41.18, 9.42], [41.17, 9.40], [41.19, 9.38]]).addTo(map).bindLabel('Permanent polygon label', {static: true});
|
L.polygon([[41.18, 9.42], [41.17, 9.40], [41.19, 9.38]]).addTo(map).bindLabel('Permanent polygon label', {static: true});
|
||||||
L.marker([41.20, 9.4307]).addTo(map).bindLabel('label on the left', {direction: 'left'});
|
L.marker([41.20, 9.4307]).addTo(map).bindLabel('label on the left', {direction: 'left'});
|
||||||
L.marker([41.206, 9.44]).addTo(map).bindLabel('permanent label', {static: true});
|
L.marker([41.206, 9.44]).addTo(map).bindLabel('click me, I have a popup', {static: true, clickable: true}).bindPopup('See?');
|
||||||
L.circleMarker([41.206, 9.48], {color: "Chocolate", radius: 12}).bindLabel( "Hello Left World", {direction: 'left'}).addTo(map);
|
L.circleMarker([41.206, 9.48], {color: "Chocolate", radius: 12}).bindLabel( "Hello Left World", {direction: 'left'}).addTo(map);
|
||||||
var icon = L.divIcon({
|
var icon = L.divIcon({
|
||||||
className: 'my-div-icon',
|
className: 'my-div-icon',
|
||||||
|
@ -9,7 +9,6 @@ L.Map.mergeOptions({
|
|||||||
L.Popup = L.PopupBase.extend({
|
L.Popup = L.PopupBase.extend({
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
pane: 'popupPane',
|
|
||||||
|
|
||||||
minWidth: 50,
|
minWidth: 50,
|
||||||
maxWidth: 300,
|
maxWidth: 300,
|
||||||
|
@ -9,6 +9,8 @@ L.Map.mergeOptions({
|
|||||||
L.PopupBase = L.Layer.extend({
|
L.PopupBase = L.Layer.extend({
|
||||||
|
|
||||||
options: {
|
options: {
|
||||||
|
pane: 'popupPane',
|
||||||
|
|
||||||
minWidth: 50,
|
minWidth: 50,
|
||||||
maxWidth: 300,
|
maxWidth: 300,
|
||||||
// maxHeight: <Number>,
|
// maxHeight: <Number>,
|
||||||
|
Loading…
Reference in New Issue
Block a user