geolocation: function () {
var self = this;
self.geo = new ol.Geolocation({
trackingOptions: {
enableHighAccuracy: true
},
projection: self.Map.olMap.getView().getProjection()
});
},
I have this code but if i want to get current position, i get "undefined" message.Why?
geo.getPosition() //return undefined