触发Google地图KML地标上的点击事件

joc*_*ull 7 javascript google-maps kml google-maps-api-3

我有一个加载在动态外部KML中的地图,其地标定义如下:

<Placemark id="MapZoneID_23443">
    <name>Name Here</name>
    <description>Text Here</description>
    <styleUrl>#ff8080ff</styleUrl>
    <Polygon>
        <outerBoundaryIs>
            <LinearRing>
                <coordinates>
                    ....
                </coordinates>
            </LinearRing>
        </outerBoundaryIs>
    </Polygon>
</Placemark>
Run Code Online (Sandbox Code Playgroud)

我想做的是有一个链接/下拉/任何可以点击或选择的基本上触发点击$('#MapZoneID_23443')...但我无法弄清楚如何触发该点击或甚至可能.地图可能非常复杂,所以我宁愿不必使用JS gmaps标记预加载所有内容.谢谢!

Cha*_*rth 2

目前还不可能。

在错误跟踪器上为该问题加注星标,以对其进行投票并跟踪其进度:https://code.google.com/p/gmaps-api-issues/issues/detail ?id=3006