Closed Toilal closed 7 years ago
@Toilal I see. could you may submit a PR that fixes this problem with an according test case?
Also, you could maybe try setting it through the ol-center
property:
<openlayers ol-center="vm.center">
...
</openlayers>
and center
could be something like this:
vm.center = {
autodiscover: false, // some browsers are making problems
lat: 5886269.5,
lon: 1272520,
zoom: 10,
projection: 'EPSG:3857',
bounds: []
};
Please re-open the issue if it persists.
Defining
center
property indefaults
attribute seems to have no effectAfter some debuging, i've found that setDefaults(scope) method doesn't read the
center
property ofuserDefaults
object to merge the directive defaults with user defaults.