Skip to content

Click events not working outside the projection extent #12353

@allyoucanmap

Description

@allyoucanmap

Description

The click events are not working outside the projection maximum extent. There are checks introduced in this PR #3410 and the reason seems related to some errors not currently reproducible.
Another aspect to note is that two events implemented inside the OpenLayers Map.jsx have different behaviour:

  • click - prevent to request features outside the projection maximum extent
  • mouse move - allow to request features outside the projection maximum extent

Another problem is also in updateMapInfoState that currently has a check to prevent to trigger the CHANGE_MAP_VIEW event if the center is outside of the projection maximum extent

How to reproduce

  • import the following map (polar.zip)
  • click on one of the states

Expected Result

The identify panel opens with a result

Current Result

Nothing happen

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

Metadata

Metadata

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions