I figured I would start the new year off on the wrong foot ...
I have encountered a strange error with the two latest krpano releases. This was not a problem with earlier versions.
In my pano I have a button to show/hide a small googleMap populated with spots showing the locations of other panos. When I first show the map everything works as expected. If I then hide the map and reopen it a second time, I get these errors for each spot that I add to the map:
ERROR: googlemaps plugin - spot[the_spot] - style "[object kinterface_settergetter]" not found!
...
ERROR: download of "[object Kinterface_settergetter]" failed
I have been unable to find the cause of the error; I certainly don't use a "style" in the map.
I create the map spots using a simple action:
<action name="fill_map">
plugin[Gmap].addspot(the_spot, 45.668634474, -122.029076088, 75, true, action(load_location,location_XML,the_spot), showtext(The Spot));
if( plugin[Gmap].zoom == 1, plugin[Gmap].setzoom(12) );
plugin[Gmap].pantospot(the_spot);
</action>
The onclick action loads a new pano at the spot location and cleans up the pano window. This action works correctly even when the error occurs. Other than being annoying, this error doesn't appear to cause any adverse effects.
Where this "[object kinterface_settergetter]" is coming from?
My addspot() syntax seems correct. Even when I eliminate all of the optional parameters, I still get the error. The only way I found to avoid the error is to not use addspot(), which isn't useful.
Something about addspot() is causing this error. So far I have been unable to figure out what.
Does anyone know of a solution to avoid this error?
Thanks,
Joe