I'm using OpenLayers 3 to display my KML layer on the map. My KML contains two placemarks, one contains a linestring of waypoints and the second one is a point, like this:
<kml xmlns="http://www.opengis.net/kml/2.2"
xmlns:gx="http://www.google.com/kml/ext/2.2"
xmlns:xal="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"
xmlns:atom="http://www.w3.org/2005/Atom">
<Folder>
<Placemark>
<name>Asset 5</name>
<description>
Path
</description>
<Style>
<LineStyle>
<color>41FA7800</color>
<width>2.5</width>
</LineStyle>
</Style>
<LineString>
<extrude>0</extrude>
<tessellate>1</tessellate>
<altitudeMode>relativeToGround</altitudeMode>
<coordinates>
... lots of coordinates ...
</coordinates>
</LineString>
</Placemark>
<Placemark>
<name>Current location</name>
<description>Current location </description>
<Point> <coordinates>50.1384717,11.2500542</coordinates> </Point>
</Placemark>
</Folder>
</kml>
I would like to center the map at the position of the second Point placemark.
How can I do this?