This would appear to be a kml "feature" than a Gmaps v3 "problem".

from: 
http://code.google.com/apis/kml/documentation/kmlreference.html#description

"Targets are ignored when included in HTML written directly into the
KML; all such links are opened as if the target is set to _blank. Any
specified targets are ignored.

HTML that is contained in an iFrame, however, or dynamically generated
with JavaScript or DHTML, will use target="_self" as the default.
Other targets can be specified and are supported."

Except I cannot seem to get js to document.write() anything at all.

So I tried moving out of the <description> tag and tried loading the
target = _self from a data variable:

        <Data name="tgt">
        <value>_self</value>
        </Data>

in order to output it into the style "template" declaration at the top
of the file.

Inspecting the DOM shows that google is seemingly creating
target=_blank attributes for all links.

There are other work-arounds, using jQuery as suggested here :

http://stackoverflow.com/questions/1184921/how-to-override-target-blank-in-kml-popups-in-embedded-google-map

(the last one seems seductive but does not work for me)

I'm sure one of those jQuery solutions will work but in all its a bit
of a shame that this could turn out to be a web-usability killer.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.

Reply via email to