WordPress.org

Support

Support » Plugins and Hacks » [Resolved] kml & zoom

[Resolved] kml & zoom

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author webaware
    Participant

    @webaware

    G’day green_w,

    Either you just fixed it, or you had something delaying the load problem because it appears to zoom just fine now. The zoom happens after the page load has completed (document “ready”) so something holding that up will prevent or delay the zoom.

    cheers,
    Ross

    Hi,

    You’re right in part, I just realized it does work in firefox 24.0 and IE10 but I does not work in Chrome..

    Any idea why that would be?

    Walter

    The weirdest thing – I just refreshed the page in chrome a few times, moved around between the pages, first time I go to the page it fails to zoom correctly, go back, go back in, then it does zoom correctly.

    Seems to be a timing issue of some sort, what would cause that?

    Walter

    Plugin Author webaware
    Participant

    @webaware

    G’day Walter,

    That page has over 130 requests to various servers, totally 1MB. 38 of those requests are for JavaScript, which blocks the DOMContentLoaded event and is probably where your problem lies.

    My guess would be Add This, which loads its script from another domain — that means another DNS resolution request by the browser, plus I imagine that the Add This server is having to serve lots of requests for that script — but it’s just a guess.

    Basically, if you can isolate whatever is taking a while to resolve / load and make sure that’s resolved / loaded on another page then you should be OK because your (visitor’s) system and browser will cache both the DNS request and the slow loading resource.

    cheers,
    Ross

    Plugin Author webaware
    Participant

    @webaware

    Actually, looking a bit deeper, that zoom happens once the map triggers a “tilesloaded” event. I’ll check whether that’s the most appropriate event to trigger on, maybe there’s a better one. If I can find something, there’ll be a new version by the end of the weekend.

    cheers,
    Ross

    Hi Ross,

    As a test I disabled the addthis plugin and it still doesn’t zoom as expected, I thought I let you know..

    And thanks for the effort!

    Walter

    Plugin Author webaware
    Participant

    @webaware

    G’day Walter,

    Please update to version 1.7.0 and let me know if this fixes it.

    cheers,
    Ross

    Hi Ross,

    That did the trick alright, thanks!

    Walter

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] kml & zoom’ is closed to new replies.