camptocamp / ngeo

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

'Zoom to' button does not zoom enough #2265

Closed gnerred closed 7 years ago

gnerred commented 7 years ago

Version 2.1.1

To test : 1°/ Go to https://preprod.cartoriviera.ch/v2/mobile/ 2°/ Zoom out to see all communes 3°/ Go to theme "Infrastructures" 4°/ Click on the zoomto button of layer "Hydrantes (EP)" -> the application does not zoom enough, blue circles are not visible, you have to zoom manually to see them

sbrunner commented 7 years ago

Do you try to change your resolutions? https://github.com/camptocamp/cartoriviera_geomapfish/blob/v2/cartoriviera/static-ngeo/js/mobile.js#L35

gnerred commented 7 years ago

Why do I have to change my resolutions... ?

sbrunner commented 7 years ago

Sorry, I miss understand, It's a relay issue... :-)

gnerred commented 7 years ago

Version 2.1.2.dev1

This problem is solved on mobile app on desktop, but not on mobile device. If I do the steps of my first message on my S6, the map zooms in until scale "200 m" is written, but the layer is not show. What is strange is that when scale "200 m" is written on a desktop browser, the layer is shown ! So for a same zoom level, a layer is shown on desktop but not on mobile device... Reopen ?