OpenLayers OpenLayers

Ticket #272 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

Prevent Selection of Map Tiles

Reported by: euzuro Assigned to:
Priority: major Milestone: 2.2 Release
Component: general Version: 2.2
Keywords: Cc:
State:

Description

Reported to dev list by Sean Gillies:

... [user can] accidentally select the WMS tiles from my base layer by clicking around the viewport. This was a bit disconcerting to him, not only because it causes a graying out of the map. You can see this behavior with the map on http://openlayers.org.

I've been able to solve this by setting -moz-user-select: none on the tile and control img elements. Is this a good solution? Any possible side-effects involving other aspects of OpenLayers?

Attachments

selecttiles.patch (0.8 kB) - added by crschmidt on 10/09/06 16:22:32.

Change History

10/01/06 18:44:05 changed by anonymous

Thanks for the tip, it seems to work great (on firefox at least). I use it same like this;

<div id="map" style="moz-user-select: none"></div>

10/02/06 12:04:09 changed by sderle

  • priority changed from minor to major.

10/05/06 10:05:16 changed by euzuro

  • status changed from new to closed.
  • resolution set to duplicate.

moved this into the #193 ticket as they will get done together. closing as duplicate to simplify things.

10/09/06 16:22:00 changed by crschmidt

  • status changed from closed to reopened.
  • resolution deleted.

10/09/06 16:22:32 changed by crschmidt

  • attachment selecttiles.patch added.

10/09/06 16:23:16 changed by crschmidt

  • keywords set to +review.

10/09/06 16:31:01 changed by crschmidt

  • keywords deleted.

Bug in patch.

10/09/06 20:25:04 changed by crschmidt

  • status changed from reopened to closed.
  • resolution set to fixed.

r1705 closes this.