Eric Mckenna
2009-Jul-22 17:30 UTC
[Mapstraction] How do I make Marker popups respect map borders?
I''m using mapstraction with cloudmade on a drupal site. My markers display correctly on the map and have popups. The last hurdle I have is to force the popups to respect the borders of the map and only "popup" on viewable map space. Is there some option for this I''m missing? Here''s a screen capture of what I''m referring too: http://skitch.com/emackn/b2wg4/marker-popup-outside-map Thanks. -- Eric Mckenna Software Engineer Phase2 Technology emckenna @ phase2technology dot com www.phase2technology.com Web solutions that fit your business.
Andrew Turner
2009-Jul-23 19:37 UTC
[Mapstraction] How do I make Marker popups respect map borders?
Eric Mckenna wrote:> I''m using mapstraction with cloudmade on a drupal site. My markers display correctly on the map and have popups. The last hurdle I have is to force the popups to respect the borders of the map and only "popup" on viewable map space. Is there some option for this I''m missing? > >I think this perhaps a problem with CloudMade''s API. Are you seeing the same problem with other providers?> Here''s a screen capture of what I''m referring too: > http://skitch.com/emackn/b2wg4/marker-popup-outside-map > > Thanks. >-- Andrew Turner m: 248.982.3609 e: andrew at highearthorbit.com t: @ajturner b: http://highearthorbit.com w: http://geocommons.com Introduction to Neogeography - http://oreilly.com/catalog/neogeography
Adam DuVander
2009-Jul-23 19:41 UTC
[Mapstraction] How do I make Marker popups respect map borders?
Agreed--I think it''s Cloudmade related. I''ve forwarded this on to Vladimir from Cloudmade, who sometimes posts to this list. Hopefully he can weigh in about it. --Adam --- Adam DuVander I like maps: http://mapscripting.com I like simple: http://adamduvander.com On Jul 23, 2009, at 12:37 PM, Andrew Turner wrote:> Eric Mckenna wrote: >> I''m using mapstraction with cloudmade on a drupal site. My markers >> display correctly on the map and have popups. The last hurdle I >> have is to force the popups to respect the borders of the map and >> only "popup" on viewable map space. Is there some option for this >> I''m missing? >> >> > I think this perhaps a problem with CloudMade''s API. Are you seeing > the same problem with other providers? > >> Here''s a screen capture of what I''m referring too: >> http://skitch.com/emackn/b2wg4/marker-popup-outside-map >> >> Thanks. >> > > > -- > Andrew Turner > m: 248.982.3609 e: andrew at highearthorbit.com t: @ajturner > b: http://highearthorbit.com w: http://geocommons.com > Introduction to Neogeography - http://oreilly.com/catalog/neogeography > > _______________________________________________ > Mapstraction mailing list > Mapstraction at lists.mapstraction.com > http://lists.mapstraction.com/listinfo.cgi/mapstraction-mapstraction.com
Eric Mckenna
2009-Jul-24 14:04 UTC
[Mapstraction] How do I make Marker popups respect map borders?
I tried a few of the others and OpenLayers was the only other one to have this problem, which makes sense since cloudmade uses OpenLayers. I think this example, http://openlayers.org/dev/examples/markers.html, could help me, but I don''t see anything that specifies how the popups appear, seems like the popups/markers account for the map boundary by default. ----- Original Message ----- From: "Andrew Turner" <ajturner at highearthorbit.com> To: "Eric Mckenna" <emckenna at phase2technology.com> Cc: mapstraction at lists.mapstraction.com Sent: Thursday, July 23, 2009 3:37:15 PM GMT -05:00 US/Canada Eastern Subject: Re: [Mapstraction] How do I make Marker popups respect map borders? Eric Mckenna wrote:> I''m using mapstraction with cloudmade on a drupal site. My markers display correctly on the map and have popups. The last hurdle I have is to force the popups to respect the borders of the map and only "popup" on viewable map space. Is there some option for this I''m missing? > >I think this perhaps a problem with CloudMade''s API. Are you seeing the same problem with other providers?> Here''s a screen capture of what I''m referring too: > http://skitch.com/emackn/b2wg4/marker-popup-outside-map > > Thanks. >-- Andrew Turner m: 248.982.3609 e: andrew at highearthorbit.com t: @ajturner b: http://highearthorbit.com w: http://geocommons.com Introduction to Neogeography - http://oreilly.com/catalog/neogeography -- Eric Mckenna Software Engineer Phase2 Technology direct: 703.548.6050,110 emckenna at phase2technology.com www.phase2technology.com Web solutions that fit your business.
Eric Mckenna
2009-Jul-24 18:53 UTC
[Mapstraction] How do I make Marker popups respect map borders?
I found soemthing works for me. By setting popup.panMapIfOutOfView in the Marker.prototype.toOpenLayers method of mapstraction.js, 4235a4236> popup.panMapIfOutOfView = true;it at least pans the map for the popup now. Is there a better way to set this attribute outside of mapstraction.js? ----- Original Message ----- From: "Andrew Turner" <ajturner at highearthorbit.com> To: "Eric Mckenna" <emckenna at phase2technology.com> Cc: mapstraction at lists.mapstraction.com Sent: Thursday, July 23, 2009 3:37:15 PM GMT -05:00 US/Canada Eastern Subject: Re: [Mapstraction] How do I make Marker popups respect map borders? Eric Mckenna wrote:> I''m using mapstraction with cloudmade on a drupal site. My markers display correctly on the map and have popups. The last hurdle I have is to force the popups to respect the borders of the map and only "popup" on viewable map space. Is there some option for this I''m missing? > >I think this perhaps a problem with CloudMade''s API. Are you seeing the same problem with other providers?> Here''s a screen capture of what I''m referring too: > http://skitch.com/emackn/b2wg4/marker-popup-outside-map > > Thanks. >-- Andrew Turner m: 248.982.3609 e: andrew at highearthorbit.com t: @ajturner b: http://highearthorbit.com w: http://geocommons.com Introduction to Neogeography - http://oreilly.com/catalog/neogeography -- Eric Mckenna Software Engineer Phase2 Technology direct: 703.548.6050,110 emckenna at phase2technology.com www.phase2technology.com Web solutions that fit your business.