Adam DuVander
2010-Feb-17 22:38 UTC
[Mapstraction] Can the load event ever fire automatically?
Hi All, I''m going through the events in Mapstraction V2. It''s great to have these hooks available. It will make V2 so much more robust than V1. I''ve noticed one issue: I''m unable to get the load event to fire unless I call it manually. I''ve tried a couple providers and it''s the same issue. I think that there''s no way to attach a load event except after we have a Mapstraction object. And at that time, the load event has already fired. Am I wrong? --Adam --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com
Derek Fowler
2010-Feb-18 09:48 UTC
[Mapstraction] Can the load event ever fire automatically?
Ha, good point. I guess the options would be a "static" load event you could attach to or being able to defer loading by the constructor. Not sure what''s best here, maybe need to look at other providers. What are you using it for? Derek On Feb 17, 2010 10:38 PM, "Adam DuVander" <mapstraction at duvander.com> wrote: Hi All, I''m going through the events in Mapstraction V2. It''s great to have these hooks available. It will make V2 so much more robust than V1. I''ve noticed one issue: I''m unable to get the load event to fire unless I call it manually. I''ve tried a couple providers and it''s the same issue. I think that there''s no way to attach a load event except after we have a Mapstraction object. And at that time, the load event has already fired. Am I wrong? --Adam --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com _______________________________________________ Mapstraction mailing list Mapstraction at lists.mapstraction.com http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20100218/90c5ab4e/attachment.htm>
Adam DuVander
2010-Feb-19 02:30 UTC
[Mapstraction] Can the load event ever fire automatically?
I was only using the load event to show it as an example in my book. I think I''ll leave it out. :) --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com On Feb 18, 2010, at 1:48 AM, Derek Fowler wrote:> Ha, good point. I guess the options would be a "static" load event you could attach to or being able to defer loading by the constructor. > > Not sure what''s best here, maybe need to look at other providers. What are you using it for? > > Derek > > >> On Feb 17, 2010 10:38 PM, "Adam DuVander" <mapstraction at duvander.com> wrote: >> >> Hi All, >> >> I''m going through the events in Mapstraction V2. It''s great to have these hooks available. It will make V2 so much more robust than V1. I''ve noticed one issue: >> I''m unable to get the load event to fire unless I call it manually. I''ve tried a couple providers and it''s the same issue. I think that there''s no way to attach a load event except after we have a Mapstraction object. And at that time, the load event has already fired. >> >> Am I wrong? >> >> --Adam >> --- >> Adam DuVander >> I like maps: http://mapscripting.com >> I like simple: http://adamduvander.com >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >