Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After using ol_PerspectiveMap, my click events failed #1006

Open
FED-Noob opened this issue Nov 2, 2023 · 1 comment
Open

After using ol_PerspectiveMap, my click events failed #1006

FED-Noob opened this issue Nov 2, 2023 · 1 comment
Labels

Comments

@FED-Noob
Copy link

FED-Noob commented Nov 2, 2023

`initMap = () => {
let map = new ol_PerspectiveMap({
// let map = new Map({
target: "enteringDataMap",
layers: [baseMap[0].layer],
view: this.view,
controls: new controlDefaults({ attribution: false, zoom: false }).extend(
[new Attribution({ collapsible: true }), new ScaleLine()]
),
interactions: new defaults({
dragbox: false,
doubleClickZoom: false,
draganddrop: true,
}),
});

const selectClick = new Select({
  condition: click,
  style: new Style({
    // 形状
    image: new Circle({
      radius: 5,
      fill: new Fill({
        color: "#fff",
      }),
      stroke: new Stroke({
        color: "#000",
        width: 1,
      }),
    }),
  }),
});
map.addInteraction(selectClick);
selectClick.on("select", (e) => {
  console.log(e.selected[0].values_, "e.target");
});`

My click event is not working

@Viglino
Copy link
Owner

Viglino commented Nov 21, 2023

PerspectiveMap is experimental and not working properly...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants