Hello,
This whole thread is getting a bit confusing, I think.
Yes, I have tried using include ....
But, if have defined in the global.xml file a <plugin name="Gmap" [etc.]</plugin>, then all of the googlemaps parameters in my plugin are static and cannot be modified from the pano.xml file where I have the include.
What do I do in the various pano.xml files if I want to change the lat, lng, or zoom for the googlemap?
The only method I can see is to use an action ... and I don't see how I can create the googlemaps radar, zoomcontrol etc. via an action.
Gaahh!! Am I dumb!?! Or what? No, do not answer that....
Just now a 1000W light bulb lit up in my mind and I realized what to do. Klaus, either you are very subtle in your programming or I am completely clueless at times.
So, the answer is: Yes, create a default googlmaps plugin (with no spots) in the global.xml file.
In each of my pano.xml files I only need to write an action such as this:
<action name="fill_map">
plugin[Gmap].addspot(test1, 45.394369, -121.69954, 94.4, true,);
plugin[Gmap].addspot(test2, 45.39768, -121.704531, 81.4, false, action(load_location, test2), showtext(Spot 2));
plugin[Gmap].pantospot(test1);
plugin[Gmap].setzoom(12);
plugin[Gmap].updatespots();
</action>
Then I call this action as part of my show googlemap button plugin. Very simple and seems to work efficiently.
This took me longer to get working because I originally had plugin[Gmap].resetspots(); as the first line in the action. This unexpectedly deleted the spots created by the action itself. It seems that this clean-up is done automatically when switching from one location to another?
Now, if only ... double-clicking on the googlemap would zoom in as with a standard Google Map.
Thank you for not revoking my license
Joe