我正在使用
的开放层约定var osm_default = new TileLayer({
source: new OSM()
});
但是我该如何处理
var dragBoxInteraction = new DragBox({
condition: ol.events.condition.shiftKeyOnly,
其他一切都通过
处理import GeoJSON from 'ol/format/GeoJSON.js';
import Feature from 'ol/Feature.js';
import Style from 'ol/style/Style';
import Stroke from 'ol/style/Stroke.js';
import {defaults} from 'ol/interaction/defaults';
import {transform} from 'ol/proj.js';
import TileLayer from 'ol/layer/Tile.js';
// the following doesn't work. A SWAG
import {shiftKeyOnly} from 'ol/events/condition';
我很接近。
import {shiftKeyOnly} from 'ol/events/condition.js';