Trying to determine if the page has loaded across all browsers is
nontrivial, but luckily has been solved by several other people
already.
We solve this outside of mapstraction by wrapping the creation of the
mxn object inside YUI''s load detection code. I''m sure
there''s an
equivalent in jQuery, etc
good luck.
On Mon, Sep 14, 2009 at 23:06, jokie36688 Tom <joram5911 at hotmail.com>
wrote:> Hello
>
> I am new to Mapstraction so bear with me. I am trying to use Mapstraction
> V2, I need to call particular function when the map has loaded. I have
tried
>
> this.map.addEventListener(''load'', this.onMapReady, this)
>
> unfortunately this does not seem to do the trick.
>
> How would one go about achieving this, is there a place where i can access
> V2 examples? The sandbox only seems to contain two examples and none deal
> with events.
>
> Thank you.
>
> ________________________________
> Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.
> _______________________________________________
> Mapstraction mailing list
> Mapstraction at lists.mapstraction.com
> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
>
>