Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom levels are not the same on ngeo and cgxp #960

Closed
gnerred opened this issue Mar 30, 2016 · 3 comments
Closed

Zoom levels are not the same on ngeo and cgxp #960

gnerred opened this issue Mar 30, 2016 · 3 comments
Assignees
Milestone

Comments

@sbrunner sbrunner added this to the 2.0 milestone Mar 30, 2016
@tsauerwein
Copy link

By default the map resolutions or zoom-levels are calculated from the projection. If your application uses different resolutions, you can set your custom resolutions in mapViewConfig:

        mapViewConfig: {
          center: [632464, 185457],
          minZoom: 3,
          zoom: 3,
          resolutions: [...]
        }

https://github.com/camptocamp/ngeo/blob/f466ce8/contribs/gmf/apps/mobile/js/controller.js#L43-L47

See the OpenLayers 3 documentation for more information: http://openlayers.org/en/master/apidoc/ol.View.html

@sbrunner
Copy link
Member

In c2cgeoportal words, we speak about the <package>/static-ngeo/js/mobile.js file,
I will add some documentation about it :-)

@ybolognini
Copy link
Member

Some documentation to be added before close, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants