Spatial reference Basemap

418
1
11-21-2018 04:39 AM
ADITYAKUMAR1
Occasional Contributor III

Hi ,

I am trying to add custom map in basemapgallery widget.

var topoLayer = new BasemapLayer({ url: 'https://xxxx/arcgis/rest/services/xxxx/MapServer' });

// topo item for gallery
var topoBasemap = new Basemap({
layers: [topoLayer],
id: 'topo',
title: 'Topo',
thumbnailUrl: 'http://www.arcgis.com/sharing/rest/content/items/6e03e8c26aad4b9c92a87c1063ddb0e3/info/thumbnail/top...'

});

But on execution I am getting the below error.

Map: Geometry (wkid: 102642) cannot be converted to spatial reference of the map (wkid: 102100)

Any clue?

Thanks

Aditya Kumar

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

NAD 1983 StatePlane California II FIPS 0402 Feet: ESRI Projection -- Spatial Reference 

NAD 1983 StatePlane California II FIPS 0402 Feet

A projection from this to web Mercator ESRI:102100: SR-ORG Projection -- Spatial Reference 

is needed 

0 Kudos