You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2026. It is now read-only.
All our mapping is in EPSG:27700, or British National Grid. the code will only cater for EPSG:4326, and assumes incoming coordinates are in that format. By simply defining esri/SpatialReference and changing line 494 of main.js to:
//specify center and zoom if provided as url params
if (this.config.level) {
options.zoom = this.config.level;
}
if (this.config.center) {
var points = this.config.center.split(",");
if (points && points.length === 2) {
options.center = [parseFloat(points[0]), parseFloat(points[1])];
}
else if (points && points.length === 3) {
options.center = new Point(parseFloat(points[0]), parseFloat(points[1]), new SpatialReference({ wkid: parseInt(points[2]) }));
}
}
All our mapping is in EPSG:27700, or British National Grid. the code will only cater for EPSG:4326, and assumes incoming coordinates are in that format. By simply defining esri/SpatialReference and changing line 494 of main.js to: