camptocamp / ngeo

Library combining OpenLayers and AngularJS
https://camptocamp.github.io/ngeo/master/examples
MIT License
135 stars 87 forks source link

Default view #2381

Closed rbovard closed 7 years ago

rbovard commented 7 years ago

I'm not sure if it's global or specific to my project, but by default the map_x, map_y, map_zoom values are not set on loading with:

mapViewConfig: {
  center: [507000, 137850],
  zoom: 2,
  resolutions: [50, 20, 10, 5, 2.5, 2, 1, 0.5, 0.25, 0.1, 0.05, 0.02]
}

And if I try to pan, the values are set to NaN and 0.

Is there something else to do?

ger-benjamin commented 7 years ago

I can reproduce it on the demo; It's not specific to your project.

ger-benjamin commented 7 years ago

Closed with #2415