Any reason why there''s no closeBubble function in Mapstraction? It''s supported by at least Yahoo (closeSmartWindow) and Google (closeInfoWindow). A related issue, but not as clear-cut: a bubble closed event. I know Google supports this, but I haven''t investigated further. --Adam
I can see no reason why either of these aren''t implemented. All I can assume is they haven''t been required until now :) Cheers, Rob 2009/1/31 Adam DuVander <mapstraction at duvander.com>> Any reason why there''s no closeBubble function in Mapstraction? It''s > supported by at least Yahoo (closeSmartWindow) and Google (closeInfoWindow). > > A related issue, but not as clear-cut: a bubble closed event. I know Google > supports this, but I haven''t investigated further. > > --Adam > _______________________________________________ > 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/20090131/05fd3705/attachment.htm>
I have implemented closeBubble for Google and Yahoo!. Microsoft is also implemented, but it doesn''t work because Mapstraction uses an outdated method of adding Virtual Earth markers. MultiMap and MapQuest look fairly trivial to add, based on searching for examples. I am unable to test. My code is below. I welcome comments on a better way to submit patches. --Adam /** * closeBubble closes the infoBubble */ Marker.prototype.closeBubble = function() { if(this.mapstraction.loaded[this.api] === false) { var my_marker = this; this.mapstraction.onload[this.api].push( function() { my_marker.closeBubble(); } ); return; } if( this.api) { switch (this.api) { case ''yahoo'': var ypin = this.proprietary_marker; ypin.closeSmartWindow(); break; case ''google'': case ''openstreetmap'': var gpin = this.proprietary_marker; gpin.closeInfoWindow(); break; case ''microsoft'': // The following works with v6.2, but need to first update way Mapstraction adds MS markers var pin = this.proprietary_marker; this.map.HideInfoBox(); break; case ''multimap'': //closeInfoBox? break; case ''mapquest'': // ??? break; } } else { if(this.debug) { } } }; --- Adam DuVander I like simple: http://adamduvander.com On Jan 31, 2009, at 6:24 AM, Rob wrote:> I can see no reason why either of these aren''t implemented. > > All I can assume is they haven''t been required until now :) > > Cheers, > > Rob > > 2009/1/31 Adam DuVander <mapstraction at duvander.com> > Any reason why there''s no closeBubble function in Mapstraction? It''s > supported by at least Yahoo (closeSmartWindow) and Google > (closeInfoWindow). > > A related issue, but not as clear-cut: a bubble closed event. I know > Google supports this, but I haven''t investigated further. > > --Adam > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >
great - obviously patches will be better against the new architecture. I''ve gone ahead and added it to the current repository. On Wed, Feb 11, 2009 at 7:55 PM, Adam DuVander <mapstraction at duvander.com> wrote:> I have implemented closeBubble for Google and Yahoo!. Microsoft is also > implemented, but it doesn''t work because Mapstraction uses an outdated > method of adding Virtual Earth markers. > > MultiMap and MapQuest look fairly trivial to add, based on searching for > examples. I am unable to test. > > My code is below. I welcome comments on a better way to submit patches. > > --Adam > > > /** > * closeBubble closes the infoBubble > */ > Marker.prototype.closeBubble = function() { > if(this.mapstraction.loaded[this.api] === false) { > var my_marker = this; > this.mapstraction.onload[this.api].push( function() { > my_marker.closeBubble(); > } ); > return; > } > > if( this.api) { > switch (this.api) { > case ''yahoo'': > var ypin = this.proprietary_marker; > ypin.closeSmartWindow(); > break; > case ''google'': > case ''openstreetmap'': > var gpin = this.proprietary_marker; > gpin.closeInfoWindow(); > break; > case ''microsoft'': > // The following works with v6.2, but need to first update > way Mapstraction adds MS markers > var pin = this.proprietary_marker; > this.map.HideInfoBox(); > break; > case ''multimap'': > //closeInfoBox? > break; > case ''mapquest'': > // ??? > break; > } > } else { > if(this.debug) { > > } > } > }; > > > > --- > Adam DuVander > I like simple: http://adamduvander.com > > > On Jan 31, 2009, at 6:24 AM, Rob wrote: > >> I can see no reason why either of these aren''t implemented. >> >> All I can assume is they haven''t been required until now :) >> >> Cheers, >> >> Rob >> >> 2009/1/31 Adam DuVander <mapstraction at duvander.com> >> Any reason why there''s no closeBubble function in Mapstraction? It''s >> supported by at least Yahoo (closeSmartWindow) and Google (closeInfoWindow). >> >> A related issue, but not as clear-cut: a bubble closed event. I know >> Google supports this, but I haven''t investigated further. >> >> --Adam >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >-- Andrew Turner mobile: 248.982.3609 andrew at fortiusone.com http://highearthorbit.com http://geocommons.com Helping build the Geospatial Web Introduction to Neogeography - http://oreilly.com/catalog/neogeography
Is there a roadmap for when the new architecture becomes "official?" Has there been outreach/interest from providers in taking part in their portion? I''m thinking MS here specifically, since I recently noticed how old Mapstraction''s implementation is for MS. --Ad --- Adam DuVander I like simple: http://adamduvander.com On Feb 12, 2009, at 5:36 PM, Andrew Turner wrote:> great - obviously patches will be better against the new architecture. > I''ve gone ahead and added it to the current repository. > > On Wed, Feb 11, 2009 at 7:55 PM, Adam DuVander > <mapstraction at duvander.com> wrote: >> I have implemented closeBubble for Google and Yahoo!. Microsoft is >> also >> implemented, but it doesn''t work because Mapstraction uses an >> outdated >> method of adding Virtual Earth markers. >> >> MultiMap and MapQuest look fairly trivial to add, based on >> searching for >> examples. I am unable to test. >> >> My code is below. I welcome comments on a better way to submit >> patches. >> >> --Adam >> >> >> /** >> * closeBubble closes the infoBubble >> */ >> Marker.prototype.closeBubble = function() { >> if(this.mapstraction.loaded[this.api] === false) { >> var my_marker = this; >> this.mapstraction.onload[this.api].push( function() { >> my_marker.closeBubble(); >> } ); >> return; >> } >> >> if( this.api) { >> switch (this.api) { >> case ''yahoo'': >> var ypin = this.proprietary_marker; >> ypin.closeSmartWindow(); >> break; >> case ''google'': >> case ''openstreetmap'': >> var gpin = this.proprietary_marker; >> gpin.closeInfoWindow(); >> break; >> case ''microsoft'': >> // The following works with v6.2, but need to first >> update >> way Mapstraction adds MS markers >> var pin = this.proprietary_marker; >> this.map.HideInfoBox(); >> break; >> case ''multimap'': >> //closeInfoBox? >> break; >> case ''mapquest'': >> // ??? >> break; >> } >> } else { >> if(this.debug) { >> >> } >> } >> }; >> >> >> >> --- >> Adam DuVander >> I like simple: http://adamduvander.com >> >> >> On Jan 31, 2009, at 6:24 AM, Rob wrote: >> >>> I can see no reason why either of these aren''t implemented. >>> >>> All I can assume is they haven''t been required until now :) >>> >>> Cheers, >>> >>> Rob >>> >>> 2009/1/31 Adam DuVander <mapstraction at duvander.com> >>> Any reason why there''s no closeBubble function in Mapstraction? It''s >>> supported by at least Yahoo (closeSmartWindow) and Google >>> (closeInfoWindow). >>> >>> A related issue, but not as clear-cut: a bubble closed event. I know >>> Google supports this, but I haven''t investigated further. >>> >>> --Adam >>> _______________________________________________ >>> Mapstraction mailing list >>> Mapstraction at lists.mapstraction.com >>> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >>> >> >> _______________________________________________ >> Mapstraction mailing list >> Mapstraction at lists.mapstraction.com >> http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com >> > > > > -- > Andrew Turner > mobile: 248.982.3609 > andrew at fortiusone.com > http://highearthorbit.com > > http://geocommons.com Helping build the Geospatial Web > Introduction to Neogeography - http://oreilly.com/catalog/neogeography