0
私は働く機能を選択しています。
もう1つは、選択したフィーチャーにフィーチャー・プロパティーを表示することです。
私はhttp://openlayers.org/en/latest/examples/select-features.html
で例のうち、勤務新しいHTML要素またはポップアップ
ではない、その特定の機能に地図上の任意のヘルプやアイデアを取得したいと思い、より
OpenLayersはマップ上の機能プロパティを表示します。インタラクションの選択
roomsLayerEventMouserOver(layer) {
if(this.select){
this.map.removeInteraction(this.select);
}
this.select = new ol.interaction.Select({
condition: ol.events.condition.pointerMove,
layers: [
layer
],
style: this.getStyle('pink', 'red'),
});
this.map.addInteraction(this.select);
this.select.on('select', (e) => {
let features = e.target.getFeatures();
features.forEach((feature) => {
console.log(feature.getProperties().name);
// THIS IS PROBABLY THE PLACE I NEED SOMETHING
});
});
}