On Jan 22, 4:22 am, Zanardi <[email protected]> wrote:
> (with this icon earth don't run)
> http://loc.dynalias.org/Test/earthtest/prova.html
> (with this icon earth run) http://loc.dynalias.org/Test/earthtest/provaOK.html
I just ran into essentially the same problem. No markers in the earth
view, and JS exception: "Error calling method on NPObject!"
The earth plugin appears to want ampersands ("&") in the icon image
URI encoded as "&" as XML (e.g. KML) requires. Unfortunately just
making that change in the URI you use for the Icon.image will fix the
earth icon images but break the image URI for all the other 2D maps. I
am not seeing any issue with "?" chars.
(example, based on yours: http://www.attackpoint.org/misc/earthtest1.jsp)
Unless I'm missing something, it seems like a bug in the
G_SATELLITE_3D_MAP earth-plugin wrapper code, which should be doing
this encoding for you automagically.
The problem affects maps API v2.160+, so one workaround for you would
be to load the 2.159 version explicitly.
(example: http://www.attackpoint.org/misc/earthtest2.jsp) Or maybe you
could change your dynamic image so that it has only one encoded param
(no ampersands). Obviously there are drawbacks to both of these
approaches.
-Ken
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.