Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Allow pan or zoom the map when the mouse is in popup active area.

  • Loading branch information...
commit 77727548c9e066397d52d7315efa8b33408d0976 1 parent 413ca11
Xavier Mamano authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 examples/feature-popups-plus.js
8 examples/feature-popups-plus.js
View
@@ -3,7 +3,10 @@
// ** advanced use **
var framedCloudScrollable = OpenLayers.Class(OpenLayers.Popup.FramedCloud, {
- displayClass: "olScrollable olPopup"
+ displayClass: "olScrollable olPopup",
+ registerEvents:function() {
+ this.events = new OpenLayers.Events(this);
+ }
});
var singleEventListeners = {
"beforepopupdisplayed": function(e) {
@@ -25,7 +28,8 @@ var fpControl = new OpenLayers.Control.FeaturePopups({
// ** Don't use close box on popups
mode: OpenLayers.Control.FeaturePopups.DEFAULT &
~OpenLayers.Control.FeaturePopups.CLOSE_BOX,
- // ** Allow to zoom with the scroll wheel when the mouse is in the single popup active area (see `framedCloudScrollable`)
+ // ** Allow pan or zoom the map and to zoom with the scroll wheel when the
+ // mouse is in popup active area (see `framedCloudScrollable`)
// ** Alert instead of popup on `poisLayer` (see `singleEventListeners`)
popupSingleOptions: {
popupClass: framedCloudScrollable,
Please sign in to comment.
Something went wrong with that request. Please try again.