I would like to change the position of a popup when I double click it. So if
it is in the 'tr' position it would move to the 'br' position, so on and so
forth. The current Popup.js code stops the 'double click' event propagation
as such:

ondblclick: function (evt) {
    OpenLayers.Event.stop(evt, true);
},


I would like to do something like:

ondblclick: function (evt) {
    myPopup.calculateRelativePosition = function () {return "bl";};
    map.removePopup(myPopup);
    map.addPopup(myPopup);
},


How do I go about overriding the ondblclick function inside my code?




--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Override-default-behavior-of-double-clicking-inside-an-OpenLayers-Popup-tp5092195.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
us...@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to