vu-geoplaza / mapseries

Online database for Dutch map series,
https://geoplaza.vu.nl/mapseries
0 stars 0 forks source link

Switch to RD #25

Open peer35 opened 4 years ago

peer35 commented 4 years ago

More appropiate and BRT probably performs better than OSM.

Difficulty is we need proj4.

peer35 commented 4 years ago

from gpz_viewer

import {register} from 'ol/proj/proj4'
import {get as getProjection} from 'ol/proj'
import proj4 from 'proj4';

proj4.defs("EPSG:28992", "+title=Amersfoort / RD New +proj=sterea +lat_0=52.15616055555555 +lon_0=5.38763888888889 +k=0.9999079 +x_0=155000 +y_0=463000 +ellps=bessel +units=m +towgs84=565.417,50.3319,465.552,-0.398957,0.343988,-1.8774,4.0725 +no_defs");
register(proj4);
getProjection('EPSG:28992').setExtent([-285401.92, 22598.08, 595401.92, 903401.92]);