Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
text: new olStyleText({
text: '\uf0b2',
font: '900 18px "Font Awesome 5 Free"',
fill: new olStyleFill({
color: '#7a7a7a'
})
})
})
});
this.interactions_.push(this.translate_);
this.initializeInteractions_();
this.modifyToolActivate = new ngeoMiscToolActivate(this.modify_, 'active');
this.rotateToolActivate = new ngeoMiscToolActivate(this.rotate_, 'active');
this.translateToolActivate = new ngeoMiscToolActivate(this.translate_, 'active');
// (1.3) Add menus to map
this.map.addOverlay(this.menu_);
this.map.addOverlay(this.menuVertex_);
// (2) Watchers and event listeners
this.scope_.$watch(
() => this.createActive,
(newVal, oldVal) => {
if (newVal) {
this.gmfSnapping_.ensureSnapInteractionsOnTop();
}
}
);
style: new olStyleStyle({
text: new olStyleText({
text: '\uf0b2',
font: '900 18px "Font Awesome 5 Free"',
fill: new olStyleFill({
color: '#7a7a7a'
})
})
})
});
this.interactions_.push(this.translate_);
this.initializeInteractions_();
this.modifyToolActivate = new ngeoMiscToolActivate(this.modify_, 'active');
this.rotateToolActivate = new ngeoMiscToolActivate(this.rotate_, 'active');
this.translateToolActivate = new ngeoMiscToolActivate(this.translate_, 'active');
// (1.3) Add menus to map
this.map.addOverlay(this.menu_);
this.map.addOverlay(this.menuVertex_);
// (2) Watchers and event listeners
this.scope_.$watch(
() => this.createActive,
(newVal, oldVal) => {
if (newVal) {
this.gmfSnapping_.ensureSnapInteractionsOnTop();
}
}
);
})
],
view: new olView({
center: [-7910687, 6178318],
zoom: 17
})
});
ngeoFeatureOverlayMgr.init(this.map);
/**
* @type {boolean}
*/
this.googleStreetViewActive = true;
const googleStreetViewToolActivate = new ngeoMiscToolActivate(
this,
'googleStreetViewActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
googleStreetViewToolActivate,
true
);
/**
* @type {boolean}
*/
this.dummyActive = false;
const dummyToolActivate = new ngeoMiscToolActivate(
this,
wmsLayers: [{
name: 'information',
queryable: true
}],
wfsFeatureNS: MAPSERVER_WFS_FEATURE_NS,
wfsUrl: MAPSERVER_PROXY,
wfsLayers: [{
name: 'information',
queryable: true
}]
}));
const queryToolActivate = new ngeoMiscToolActivate(this, 'queryActive');
ngeoToolActivateMgr.registerTool('mapTools', queryToolActivate);
const dummyToolActivate = new ngeoMiscToolActivate(this, 'dummyActive');
ngeoToolActivateMgr.registerTool('mapTools', dummyToolActivate, true);
}
queryable: true
}]
}));
ngeoDataSources.collection.push(new ngeoDatasourceOGC({
id: 2,
name: 'information',
visible: true,
wmsUrl: MAPSERVER_PROXY,
ogcLayers: [{
name: 'information',
queryable: true
}]
}));
const queryToolActivate = new ngeoMiscToolActivate(this, 'queryActive');
ngeoToolActivateMgr.registerTool('mapTools', queryToolActivate, true);
const dummyToolActivate = new ngeoMiscToolActivate(this, 'dummyActive');
ngeoToolActivateMgr.registerTool('mapTools', dummyToolActivate);
}
const createPointToolActivate = new ngeoMiscToolActivate(
this,
'createPointActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
createPointToolActivate,
false
);
/**
* @type {boolean}
*/
this.createLineStringActive = false;
const createLineStringToolActivate = new ngeoMiscToolActivate(
this,
'createLineStringActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
createLineStringToolActivate,
false
);
/**
* @type {boolean}
*/
this.createPolygonActive = false;
const createPolygonToolActivate = new ngeoMiscToolActivate(
this,
/**
* @type {boolean}
*/
this.mapSelectActive = true;
/**
* @type {number?}
* @private
*/
this.longPressTimeout_ = null;
/**
* @type {import("ngeo/misc/ToolActivate.js").default}
*/
this.mapSelectToolActivate = new ngeoMiscToolActivate(this, 'mapSelectActive');
/**
* @type {angular.IScope}
* @private
*/
this.scope_ = $scope;
/**
* @type {angular.ITimeoutService}
* @private
*/
this.timeout_ = $timeout;
/**
* @type {import("ngeo/misc/FeatureHelper.js").FeatureHelper}
* @private
name: 'information',
visible: true,
wmsUrl: MAPSERVER_PROXY,
wmsLayers: [{
name: 'information',
queryable: true
}],
wfsFeatureNS: MAPSERVER_WFS_FEATURE_NS,
wfsUrl: MAPSERVER_PROXY,
wfsLayers: [{
name: 'information',
queryable: true
}]
}));
const queryToolActivate = new ngeoMiscToolActivate(this, 'queryActive');
ngeoToolActivateMgr.registerTool('mapTools', queryToolActivate);
const dummyToolActivate = new ngeoMiscToolActivate(this, 'dummyActive');
ngeoToolActivateMgr.registerTool('mapTools', dummyToolActivate, true);
}
const createLineStringToolActivate = new ngeoMiscToolActivate(
this,
'createLineStringActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
createLineStringToolActivate,
false
);
/**
* @type {boolean}
*/
this.createPolygonActive = false;
const createPolygonToolActivate = new ngeoMiscToolActivate(
this,
'createPolygonActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
createPolygonToolActivate,
false
);
/**
* @type {boolean}
*/
this.dummyActive = true;
const dummyToolActivate = new ngeoMiscToolActivate(
this,
const googleStreetViewToolActivate = new ngeoMiscToolActivate(
this,
'googleStreetViewActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
googleStreetViewToolActivate,
true
);
/**
* @type {boolean}
*/
this.dummyActive = false;
const dummyToolActivate = new ngeoMiscToolActivate(
this,
'dummyActive'
);
ngeoToolActivateMgr.registerTool(
'mapTools',
dummyToolActivate,
false
);
}