Hello,
I am attempting to write an action to create a Google Map. Because I plan on using a number of Google Maps in my xml files, it seemed worthwhile to have one action to create the maps,
So far I have written an action that will successfully create the Google Map plugin itself but have been unable to figure out how to add subnodes such as radar and zoomcontrol. I have tried any number of variations without success.
Is this even close to the correct subnode syntax?
<action name="make_map">
addplugin(Gmap);
set(plugin[Gmap].url,%SWFPATH%/plugins/googlemaps.swf);
set(plugin[Gmap].width,350);
set(plugin[Gmap].height,350);
[...]
set(plugin[Gmap].subnode[zoomcontrol].visible, true);
set(plugin[Gmap].subnode[zoomcontrol].anchor, topleft);
</action>
Display More
Obviously, I am missing something very basic and important. What is the correct syntax for adding and defining subnode properties in an action?
For spot subnodes should I create them as the other map subnodes or should I use the addspot() function?
I have at least been able to write an action using addspot() to add map spots.
Once I get this map action working, what is the best way to execute it? As part of onstart?
I've searched the web site, release notes, and forum, but have not found any clues as to the correct subnode action syntax. I hope I have not missed something obvious....
Any help getting me properly oriented will be much appreciated!
Köszönöm,
Joe