×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jan 2013
    Posts
    31

    poiclick event works randomly

    I need to click the poi icon several times and I get a poiclick event after a random number of retries. The code is:

    Code:
    window.map = new nokia.mh5.components.Map({
                infoBubble: {
                    content: ["title"],
                    listeners: {
                        click: function () {
                            //window.SelectedPlaceID = poi.data.tag.toString();
                            //$("#map_marker_popup" ).popup( "open" );
                        }
                    }
                },
                //tracking: false,
                listeners: {
                    poiclick: function (e) {
                        var poi = e.data[0];
                        SelectedPlaceID = poi.data.tag.toString();
                        $("#map_marker_popup" ).popup( "open" );
                    },
                    ready: function () {
                        guide_obj.map_control.showPois(guide_obj.places.placesList,true);
                          initSearch();
                    }
                }
            });
    Any ideas?
    I'm using JQuery Mobile, and I don't know if that is causing it or not.

    Thanks
    Tom

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2012
    Posts
    65

    Re: poiclick event works randomly

    Hi,

    it's probably caused by JQuery Mobile because we haven't experienced such kind of issues. I'd recommend you to create a simple test with MH5 only showing a map with some pois and test if the clicks work fine.


    Leo

  3. #3
    Registered User
    Join Date
    Jan 2013
    Posts
    31

    Re: poiclick event works randomly

    I think it was caused by my code which was using poi = map.createPoi and then storing the pois into an array (poisarray) and then using map.pois = poisarray.
    It's working now that I don't assign map.pois

    Thanks
    Tom

Similar Threads

  1. My script is randomly dieing
    By madm1k3 in forum Symbian
    Replies: 6
    Last Post: 2009-12-17, 05:51
  2. Replies: 1
    Last Post: 2009-11-04, 21:38
  3. Whether KeyRepeated works for FIRE event?
    By dhiraj.deka in forum Mobile Java General
    Replies: 4
    Last Post: 2009-10-16, 11:41
  4. S60 3rd Edition FP2 SDK dies randomly
    By N1000000 in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2008-04-04, 14:28
  5. randomly sending sms
    By sou83bang in forum General Messaging
    Replies: 5
    Last Post: 2007-09-26, 07:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×