Don't bind to ol.View projection property
This commit is contained in:
1 parent
0a963d4615
commit
0d6cc22bf0
4 files changed
+9
-7
No files matched your search
@@ -42,9 +42,10 @@ ol.GeolocationProperty = {
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* var geolocation = new ol.Geolocation();
|
||||
* // take the projection to use from the map's view
|
||||
* geolocation.bindTo('projection', map.getView());
|
||||
* var geolocation = new ol.Geolocation({
|
||||
* // take the projection to use from the map's view
|
||||
* projection: view.getprojection()
|
||||
* });
|
||||
* // listen to changes in position
|
||||
* geolocation.on('change', function(evt) {
|
||||
* window.console.log(geolocation.getPosition());
|
||||
|
||||
Reference in new issue
Block a user