How to center the map to a KML placemark with OpenLayers 3?

المشرف العام

Administrator
طاقم الإدارة
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:

Asset 5 Path 41FA7800 2.5 0 1 relativeToGround ... lots of coordinates ... Current location Current location 50.1384717,11.2500542 I would like to center the map at the position of the second Point placemark.

How can I do this?



أكثر...
 
أعلى