Need to be more specific about the coordinate format now.

This commit is contained in:
Andreas Hocevar
2014-05-15 20:56:09 +02:00
parent b348a4f8f9
commit 687abda9fb

View File

@@ -36,7 +36,8 @@ map.addOverlay(marker);
// LineString to store the different geolocation positions. This LineString
// is time aware.
// The Z dimension is actually used to store the rotation (heading).
var positions = new ol.geom.LineString([], 'XYZM');
var positions = new ol.geom.LineString([],
/** @type {ol.geom.GeometryLayout} */ ('XYZM'));
// Geolocation Control
var geolocation = new ol.Geolocation(/** @type {olx.GeolocationOptions} */ ({