AnsweredAssumed Answered

Is it possible to add GoogleMapLayer as a basemap in ArcGIS JS 4.x 2D?

Question asked by alifJordan on Nov 15, 2019
Latest reply on Nov 15, 2019 by t_mcgill

Hi,

 

Is it possible to add GoogleMapLayer as a basemap in ArcGIS JS 4.x 2D? if yes how to achieve the same.the below code is in 3.x. Any help would be greatly appreciated.

 

googleLayer = new agsjs1.layers.GoogleMapsLayer({
id: 'google', // optional. esri layer id.
apiOptions: { // load google API should be loaded.
v: '3.6' // API version. use a specific version is recommended for production system.
// client: gme-myclientID // for enterprise accounts;
},
mapOptions: { // options passed to google.maps.Map contrustor
streetViewControl: false // whether to display street view control. Default is true.
}
});

 

Regards,

Alif

Outcomes