Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User tomgiam's Avatar
    Join Date
    Jan 2013
    Posts
    31
    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 ZieL's Avatar
    Join Date
    Mar 2012
    Posts
    55
    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 tomgiam's Avatar
    Join Date
    Jan 2013
    Posts
    31
    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 Python
    Replies: 6
    Last Post: 2009-12-17, 05:51
  2. [moved] Widget works on emulator but not works on Real machine
    By alicenan88 in forum Symbian Web Runtime
    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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved