Don't bind to ol.View projection property

This commit is contained in:
Frederic Junod
2014-08-07 12:59:15 +02:00
parent 0a963d4615
commit 0d6cc22bf0
4 changed files with 9 additions and 7 deletions

View File

@@ -30,8 +30,9 @@ var map = new ol.Map({
view: view
});
var geolocation = new ol.Geolocation();
geolocation.bindTo('projection', view);
var geolocation = new ol.Geolocation({
projection: view.getProjection()
});
var track = new ol.dom.Input(document.getElementById('track'));
track.bindTo('checked', geolocation, 'tracking');