×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    10

    Adding infobubble on shape click, performance with many markers/shapes

    Hey, I got a couple of questions.

    First up, I need to add a info bubble when a shape is clicked. I noticed that a click on a shape does not register as a map click, but does register as a canvas click. I could probably make a shape click handler out of that, but I thought, there must be a more logical way. All suggestions are welcome!

    Secondly, the same project requires a lot of shapes and poi's. I noticed the performance of the maps api did not really deteriorate (at least, not with 600+ shapes and poi's). The only performance problem i noticed was when loading in the shapes. That made the map unresponsive for a while. But back to my question, should I make a function that removes poi's and shapes from the dom and adds them again when they are in view, or does the mh5 framework handle this properly already?

    Thanks in advance!

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

    Re: Adding infobubble on shape click, performance with many markers/shapes

    Hi,

    1) try to use "shapeclick" listener.

    2) POis and shapes are not dom elements. They are drawn on the canvas.



    Br,
    Leo
    Last edited by ZieL; 2013-01-11 at 14:10.

  3. #3
    Registered User
    Join Date
    Dec 2012
    Posts
    10

    Re: Adding infobubble on shape click, performance with many markers/shapes

    A shapeclick event listener makes a lot more sense. It is not listed in the api reference though (http://developer.here.net/search-res...ria=shapeclick). Thanks for the help!

Similar Threads

  1. InfoBubble
    By vramkumar in forum [Archived] MH5: Nokia Maps Framework for mobile HTML5
    Replies: 2
    Last Post: 2012-11-11, 12:03
  2. Infobubble for every POI on the map
    By fabianpimminger in forum [Archived] MH5: Nokia Maps Framework for mobile HTML5
    Replies: 5
    Last Post: 2012-07-11, 21:01
  3. InfoBubble & Windows Phone bugs
    By clickslidecto in forum [Archived] Maps API for Javascript
    Replies: 5
    Last Post: 2012-03-05, 11:31
  4. Dynamically adding a mouse click event to button movieclip
    By ranco in forum [Archived] Flash Lite on Nokia Devices
    Replies: 7
    Last Post: 2010-01-05, 21:52
  5. Detecting shapes
    By gmkumar2005 in forum Symbian
    Replies: 1
    Last Post: 2009-03-10, 12:06

Posting Permissions

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