B4J Question [ABMaterial] ABMGoogleMap_Ready Event continuous firing

Discussion in 'B4J Questions' started by Mashiane, May 31, 2018.

  1. Mashiane

    Mashiane Expert Licensed User

    Hi there

    GIF


    What makes the _ready event fire numerous times on a page. I have defined a map on a page, I need to load markers as soon as the page is loaded so I thought of using the map_ready event. Thing is, the ready event fires a couple of times continuously and never seems to stop. I dont have a timer on my app either?

    Anyone experienced this? Or perhaps what is the best place to load markers when a page shows, ConnectPage?

    Update: (see attached gif above)

    1. when you resize your webpage, map_ready event fires continuously until you stop resizing.
    2. when you load markers on connectpage, map_ready event fires

    Can someone please advise?

    Ta!
     
    Last edited: May 31, 2018
    joulongleu likes this.
  2. alwaysbusy

    alwaysbusy Expert Licensed User

    Maybe adding markers in ready causes a loop effect:

    Ready, add marker, ready adding marker, add marker again, ready adding second marker, again adding marker, etc
     
    joulongleu likes this.
  3. Mashiane

    Mashiane Expert Licensed User

    Ok, thanks for the response. This is my scenario, I want when my page loads and finishes to then load markers from a db to display on a map? How can I do this?
     
    joulongleu likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice