camptocamp / cgxp

22 stars 22 forks source link

pointRecenterZoom not taken into account in plugin WFSPermalink #1022

Closed asaunier closed 8 years ago

asaunier commented 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?