Skip to content

Commit

Permalink
Charge styles options to measurecontrol to keep the old style
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Dec 22, 2021
1 parent 416e2a2 commit f44f3bc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mapentity/static/mapentity/mapentity.map.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,17 @@ $(window).on('entity:map', function (e, data) {
}

map.addControl(new L.Control.FullScreen());
map.addControl(new L.Control.MeasureControl());
map.addControl(new L.Control.MeasureControl({
position: 'topleft',
handler: {
shapeOptions: {
color: '#f06eaa'
},
icon: new L.DivIcon({
iconSize: new L.Point(8, 8),
}),
}
}));
});


Expand Down

0 comments on commit f44f3bc

Please sign in to comment.