Hi, Try to transform all features using below code and then add features to vector layer. Initialize and add all layers while map loading and then perform transformation operation on every feature.
geometry.transform(4326,3857); feature.setGeometry(geometry); vectorlayer.add(feature); Regards, Prashant Kirpan On Wed, Aug 24, 2016 at 4:19 PM, Giuseppe Falcone < falcone.giuse...@gmail.com> wrote: > Hi all, > > I have a problem with vector layer reprojection. > I have implemented a map viewer where is possible to change reference > system. > > If I load vector layer after that I have changed SR, this is correctly > loaded. If i load vector layer and then I change SR, the raster layers are > reprojected correctly, but the vector layer disappear. > Any idea? > > Thanks a lot. > > Giuseppe > > > > > _______________________________________________ > Users mailing list > us...@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/openlayers-users >
_______________________________________________ Users mailing list us...@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/openlayers-users