Closed asaunier closed 8 years ago
It seems that the WFSPermalink actually performs a zoom on single point feature: https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/WFSPermalink.js#L407
but then when the FeaturesGrid is then displayed at https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/FeaturesGrid.js#L853 the zoomlevel is incorrectly changed (to the max zoomlevel apparently). Perhaps because of the map resizing?
A solution might be to delay the zooming in plugin WFSPermalink?
It seems that the WFSPermalink actually performs a zoom on single point feature: https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/WFSPermalink.js#L407
but then when the FeaturesGrid is then displayed at https://github.com/camptocamp/cgxp/blob/master/core/src/script/CGXP/plugins/FeaturesGrid.js#L853 the zoomlevel is incorrectly changed (to the max zoomlevel apparently). Perhaps because of the map resizing?
A solution might be to delay the zooming in plugin WFSPermalink?