creating a new area in editor? 0.5 opacity!

This commit is contained in:
Laura Klünder 2018-12-11 00:10:05 +01:00
parent 1a4d18ae37
commit 8d46bd2483

View file

@ -1043,7 +1043,10 @@ editor = {
} else if (form.is('[data-new]')) {
// create new geometry
var mapitem_type = form.attr('data-new');
var options = editor._get_mapitem_type_style(mapitem_type);
options = editor._get_mapitem_type_style(mapitem_type);
if (mapitem_type === 'area') {
options.fillOpacity = 0.5;
}
form.addClass('creation-lock');
var geomtype = form.attr('data-geomtype');
if (geomtype === 'polygon') {