Center the map on position on first display

This commit is contained in:
Lucas Verney 2019-01-22 11:58:31 +01:00
parent 98f13a3bbb
commit 276297dcc0

View File

@ -479,6 +479,11 @@ export default {
});
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: {
accuracy: Number,