Spatial reference Basemap

11-21-2018 04:39 AM
Occasional Contributor II

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: ''


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?


Aditya Kumar

0 Kudos
1 Reply
MVP Esteemed Contributor

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