Hi,
Looks like you almost got it right but there is no clear example out
there. The trick is to specify the "id" of the target Placemark in the
link not it's name.
Note whitespace not allowed in the id tag so something like
"PlacemarkB Id" is not valid.
Taken from the KML Reference:
The href can be a fragment URL (that is, a URL with a # sign followed
by a KML identifier). When the user clicks a link that includes a
fragment URL, by default the browser flies to the Feature whose ID
matches the fragment. If the Feature has a LookAt or Camera element,
the Feature is viewed from the specified viewpoint.
The behavior can be further specified by appending one of the
following three strings to the fragment URL:
* ;flyto (default) - fly to the Feature
* ;balloon - open the Feature's balloon but do not fly to the
Feature
* ;balloonFlyto - open the Feature's balloon and fly to the
Feature
Example:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="
http://www.opengis.net/kml/2.2">
<Document>
<Placemark id="p1">
<name>1</name>
<description>
<![CDATA[
<a href="#p2;balloonFlyto">Fly to end</a>
]]>
</description>
<Point>
<coordinates>-122.536226,37.86047,0</coordinates>
</Point>
</Placemark>
<Placemark id="p2">
<name>2</name>
<description>
<![CDATA[
<a href="#p1;balloonFlyto"> Back to start</a>
]]>
</description>
<Point>
<coordinates>-122.536923,37.859855,0</coordinates>
</Point>
</Placemark>
</Document>
</kml>