How to connect ZOOM osm layer and other shape file layers (vectorLayer)

Mar 25, 2015 at 2:26 PM
Hi.

I have an app thats works with online map (OSM layer) and offline shapefile layers.
The problem comes when i try to switch between them.

I have a level of zoom on OSM layer and when I load the shp layer i want to load with the same level of zoom. I read both map.Zoom variables and they are really different when i load OSM layer and shapefile.

Any ideas?? I try also with scale property but it is different too.

Thanks.
Coordinator
Apr 1, 2015 at 10:51 AM
You need to reproject your shapefiles to the coordinate system of your OSM tiles.