amMap support forum

You are not logged in.

Announcement

FORUM CLOSED! This forum is closed. We moved to a new place at Zendesk. Update your bookmarks.

Flash amMap: Help


  • Index
  •  » Help
  •  » Google Maps in text boxes

#1 2008-05-24 03:45:09

rlanctot
New member

Google Maps in text boxes

I'm trying to build an interactive location finder for our charity's chapters using Ammap (see http://www.bicycles-for-humanity.org/am … index.html). [Click on NA then click on Kelowna]

What I'd like to be able to do is put either a link to a Google map of the point or the Google map _itself_ in the white text box that pops up. I've been reading Google's page on their Flash API which, it looks to me, will let me encapsulate the map code inside a compiled .SWF. I think I read on this board that it's possible to hook into the text box using a movie instance, but I'm not sure it will work. I tried putting the Google-generated <iframe> statement in the description's CDATA field first, but that didn't work. Anyone have any ideas on how to make this work? Ideally, I'd like to be able to modify Google's code they have on this page (http://code.google.com/apis/maps/docume … asics.html) so that it accepts input from outside of the lat and long. Any ideas?

Offline

 

#2 2008-05-28 00:45:30

marcelionis
Administrator

Re: Google Maps in text boxes

<iframe> will definetely not work, as flash supports a very limited number of html tags. If you could compile swf which displays google maps, then you could simply load this swf as a separate movie (using <movie> obect) or even load it inside the text box, using <img> tag, for example:

<img src="googlemap.swf" width="200" height="300">

Yuol will probable need to pass some variables in order your googlemap.swf knows to which place to zoom. You can pass variables simply by adding them to a file name: googlemap.swf?lat=90&long=23&zoom=3

Offline

 
  • Index
  •  » Help
  •  » Google Maps in text boxes

© amMap & amCharts | Forum engine: PunBB