Change the selection drag box colors
This commit is contained in:
@@ -8,6 +8,7 @@ goog.require('ol.layer.Tile');
|
|||||||
goog.require('ol.layer.Vector');
|
goog.require('ol.layer.Vector');
|
||||||
goog.require('ol.source.OSM');
|
goog.require('ol.source.OSM');
|
||||||
goog.require('ol.source.Vector');
|
goog.require('ol.source.Vector');
|
||||||
|
goog.require('ol.style.Fill');
|
||||||
goog.require('ol.style.Stroke');
|
goog.require('ol.style.Stroke');
|
||||||
goog.require('ol.style.Style');
|
goog.require('ol.style.Style');
|
||||||
|
|
||||||
@@ -45,8 +46,11 @@ var selectedFeatures = select.getFeatures();
|
|||||||
var dragBox = new ol.interaction.DragBox({
|
var dragBox = new ol.interaction.DragBox({
|
||||||
condition: ol.events.condition.shiftKeyOnly,
|
condition: ol.events.condition.shiftKeyOnly,
|
||||||
style: new ol.style.Style({
|
style: new ol.style.Style({
|
||||||
|
fill: new ol.style.Fill({
|
||||||
|
color: [255, 255, 255, 0.4]
|
||||||
|
}),
|
||||||
stroke: new ol.style.Stroke({
|
stroke: new ol.style.Stroke({
|
||||||
color: [0, 0, 255, 1]
|
color: [100, 150, 0, 1]
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user