-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
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]) }));
}
}
Metadata
Metadata
Assignees
Labels
No labels