Hi Jukka,
in MapStore you have to:
1) Enable the proj4js script tag in your template. For example inside the composer.html you have just to uncomment the line below:
<!--script type="text/javascript" src="script/proj4js.js"></script-->
2) Add the EPSG:3857 proj4js definition to the mapstore configuration file (the default one is inside the mapStoreConfig.js file
):
"proj4jsDefs": {
"EPSG:3857": "+title= Google Mercator EPSG:3857 +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"
},
3) Use directly the EPSG:3857 in the map projection definition (inside the configuration file):
"map": {
"projection": "EPSG:3857",
This should be all, if you need to use the EPSG:3857 for your map.
Best Regards,
Tobia Di Pisa