1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    69
    Vote Rating
    0
    paweluz is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha User
    Join Date
    May 2010
    Posts
    69
    Vote Rating
    0
    paweluz is on a distinguished road

      0  

    Default


    My ExtJS code looks like that:

    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
                }]
            });
    Hope that helps....

Similar Threads

  1. Replies: 0
    Last Post: 15 Sep 2010, 8:22 AM
  2. OpenLayers map into a tabpanel
    By jimmy06200 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 15 Oct 2009, 2:04 AM
  3. Openlayers Map and ExtJs grid
    By organic in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 16 Jun 2009, 6:27 AM
  4. Ext.grid.GridPanel with OpenLayers
    By arno974 in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 12 Feb 2009, 5:39 AM

Tags for this Thread