Skip to content

Commit 0cf0822

Browse files
committed
fix: added default projection of layer
1 parent 36c4ef8 commit 0cf0822

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vendors/helpers/Layers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export function arcgisLoader(map, layerConfig, dataType) {
179179
.then((json) => {
180180
if (json.extent) {
181181
_extent = [json.extent.xmin, json.extent.ymin, json.extent.xmax, json.extent.ymax]
182-
var epsg = 'EPSG:4326'
182+
var epsg = layerConfig.source?.projection || 'EPSG:4326'
183183
if (json.extent.spatialReference.wkt) {
184184
//PROJCS["OSGB_1936_British_National_Grid",GEOGCS["GCS_OSGB 1936",DATUM["D_OSGB_1936",SPHEROID["Airy_1830",6377563.396,299.3249646]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["false_easting",400000.0],PARAMETER["false_northing",-100000.0],PARAMETER["central_meridian",-2.0],PARAMETER["scale_factor",0.9996012717],PARAMETER["latitude_of_origin",49.0],UNIT["Meter",1.0]]
185185
// proj4.defs("EPSG:28353",json.extent.spatialReference.wkt)

0 commit comments

Comments
 (0)