Is there a way to control the content that appears in a GMap popup info window?

Thanks,
-mike

Comments

mndonx’s picture

I've been struggling with this as well. I know you can control it to some extent using the Views module (as demonstrated in Zacker's Gmap Drupal Mashup Machine.

However, I need a way to include flash inside the info popup windows -- or even a tiny quicktime player. I've _seen_ it done, but usually it isn't a map in Drupal using Views.... Any ideas?

fangius’s picture

I've been playing with contemplate/Views to create an RSS feed to 'power' a GoogleMap view of my nodes. The data for the InfoWindow is in the teaser of the post, you can edit the output through theming (with contemplate or create an override .tpl). You can use views to filter the fields that go in the teaser. Further styling can be done with CSS.

I'm just wondering what is the purpose of the field "legend" in the GoogleMap module? I can't see it used in the output of the xml file (it does get saved in the database table)

I have no idea how to incorporate flash/vid, a couple of months ago I looked into it but didn't find an easy way. Should be a nice addition getting it to work (ex. panoramic view .wmv/.avi->flashvideo)

For a jaw dropper on using video/flash, visit Google’s Summer of Green...

mndonx’s picture

I think Googlemap and Gmap are different modules. Not sure what the differences are right now, but I've been using the Gmap one. Just to clarify -- there could be some confusion.

fangius’s picture

I tested both and I am still not sure whichone to use (depends on your requirements). GoogleMap needs some rework in the javascript code, it still uses v1 of the Google api (v2 of the API has differences in coding) but produces an RSS feed that can be themed using views (see my posting here). Googlemap uses the Gmap module api.
Good luck with your project.