Rename onOnce to once (see #678)
This commit is contained in:
@@ -29,7 +29,7 @@ var geolocation = new ol.Geolocation({
|
||||
tracking: true
|
||||
});
|
||||
geolocation.bindTo('projection', view);
|
||||
geolocation.onOnce('position_changed', function() {
|
||||
geolocation.once('position_changed', function() {
|
||||
view.setCenter(geolocation.getPosition());
|
||||
view.setResolution(2.388657133911758);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user