Skip to content

Commit 31b0629

Browse files
dtrucssubmarcos
authored andcommitted
Charge styles options to measurecontrol to keep the old style
1 parent cbd5ea2 commit 31b0629

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

mapentity/static/mapentity/mapentity.map.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,17 @@ $(window).on('entity:map', function (e, data) {
135135
}
136136

137137
map.addControl(new L.Control.FullScreen());
138-
map.addControl(new L.Control.MeasureControl());
138+
map.addControl(new L.Control.MeasureControl({
139+
position: 'topleft',
140+
handler: {
141+
shapeOptions: {
142+
color: '#f06eaa'
143+
},
144+
icon: new L.DivIcon({
145+
iconSize: new L.Point(8, 8),
146+
}),
147+
}
148+
}));
139149
});
140150

141151

0 commit comments

Comments
 (0)