Center the map on position on first display
This commit is contained in:
parent
98f13a3bbb
commit
276297dcc0
@ -479,6 +479,11 @@ export default {
|
|||||||
});
|
});
|
||||||
this.map.getTargetElement().style.cursor = hit ? 'pointer' : '';
|
this.map.getTargetElement().style.cursor = hit ? 'pointer' : '';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Force the map to be centered on the current position if there is any
|
||||||
|
if (this.olPosition) {
|
||||||
|
this.recenterMap();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
accuracy: Number,
|
accuracy: Number,
|
||||||
|
Loading…
Reference in New Issue
Block a user