locked
Bing Maps Map Control v8 CustomOverlay Not Showing After Network Latency RRS feed

  • Question

  • I am seeing HTML Overlay Pushpins fail to display with slow connections. 

    When the connection is slow, map tiles and street labels are delayed.

    The tiles and street labels eventually load and display, but the CustomOverlay and pushpins do not. 

    Tile downloads not completing is a historical problem that's gotten better.  

    However, the fix is not working for the new CustomOverlay. 

    Is there some way to ensure CustomOverlays always display over a slow connection?




    Saturday, August 5, 2017 12:29 AM

Answers

  • Haven't seen or heard of this before. Will try and reproduce this. Can't think of any reason for this to occur as a custom overlay simply takes any html you have an inserts it into the map dom. Nothing special from the maps side of things.

    one thing to try, add liteMode: true to the map options when loading. This should help speed things up a bit as the labels will be loaded on the tiles rather than as vector data, this half the number of network connections.


    [Blog] [twitter] [LinkedIn]

    Saturday, August 5, 2017 8:17 PM
  • We haven't been able to reproduce this yet. Can you try the experimental branch to see if it still occurs there. Also try putting the map into liteMode to see if that helps.

    [Blog] [twitter] [LinkedIn]

    Sunday, August 6, 2017 5:24 PM

All replies

  • Haven't seen or heard of this before. Will try and reproduce this. Can't think of any reason for this to occur as a custom overlay simply takes any html you have an inserts it into the map dom. Nothing special from the maps side of things.

    one thing to try, add liteMode: true to the map options when loading. This should help speed things up a bit as the labels will be loaded on the tiles rather than as vector data, this half the number of network connections.


    [Blog] [twitter] [LinkedIn]

    Saturday, August 5, 2017 8:17 PM
  • I tested more. 

    After watching the map slowly load and complete:

    CustomOverlay items do not appear.

    The CustomOverlay is instantiated and inserted into layers:

    o_rt_map_bing.has_map().layers
    n {0: BingPushpinLayer, revision: 1, changed: n, length: 1}

    However, with onAdd, onLoad, onRemove logged, onAdd fires but onLoad never fires.  Wiggling the map doesn't fire onLoad either.  The result is the viewchanged handler isn't added and items are not rendered. 

    CustomOverlay.onLoad is not firing over a slow connection. 

    Perhaps a fix is possible. 

    Do you know of any workaround? 


    Sunday, August 6, 2017 12:00 AM
  • We haven't been able to reproduce this yet. Can you try the experimental branch to see if it still occurs there. Also try putting the map into liteMode to see if that helps.

    [Blog] [twitter] [LinkedIn]

    Sunday, August 6, 2017 5:24 PM