-
29 Oct 2010 12:25 AM #1
ExtJS and OpenLayers - problem with events
ExtJS and OpenLayers - problem with events
Hi
In my project I have been ExtJS library and also for displaying map OpenLayers (OL) library. I am not sure that anyone is familiar with that library. I would just like to share what I have noticed with working on my project.
I am going to post this topic also on OL forum.
My goal was to add clicking possibility on the map. Task pretty simple. I have just used the exactly this same code from this example page:
http://openlayers.org/dev/examples/click.html
Unfortunately it did not work how I wanted. In my application I when I did right click on the map the left click was not longer working correctly. I was actually not able to do left click any more. Also in the IE double click was causing starting the single click listener. In the pure OL application it does not happens like that. I develop my application on the localhost, but here is example of page that has this same error:
http://geoportal.jrc.it/index.cfm/pageid/341
See what left click does, that do right and then try doing one more time left click - it does not work.
Maybe someone has noticed something in his application? I am prettie sure that using both ExtJS and OL are causing this problem... I do not have any other ideas on that...
Any help would be appreciated...
Regards,
Poul
-
29 Oct 2010 1:07 AM #2
My ExtJS code looks like that:
Hope that helps....Code:var myviewport = new Ext.Viewport({ layout: 'border', items: [{ region: 'center', title: 'My title' id: 'myMap', xtype: 'gx_mappanel', // geoExt panel for displaying map layers: '', map: map }] });
Similar Threads
-
Problems with OpenLayers.Control.WMSGetFeatureInfo and OpenLayers.Layer.Vector
By Hige in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 15 Sep 2010, 8:22 AM -
OpenLayers map into a tabpanel
By jimmy06200 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 15 Oct 2009, 2:04 AM -
Openlayers Map and ExtJs grid
By organic in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 16 Jun 2009, 6:27 AM -
Ext.grid.GridPanel with OpenLayers
By arno974 in forum Ext 2.x: Help & DiscussionReplies: 0Last Post: 12 Feb 2009, 5:39 AM


Reply With Quote