AnsweredAssumed Answered

Zoom and Center not working on MapView using MapImageLayer

Question asked by David.Kucharski@23 on Aug 10, 2018
Latest reply on Aug 10, 2018 by David.Kucharski@23

I declare a MapImageLayer using the following. It is a service hosted locally.


var baseMapLayer = new MapImageLayer({
url: ""


I apply it to a new BaseMap.


var basemapDefault = new Basemap({
baseLayers: [baseMapLayer],
title: "Custom Basemap",
id: "myBasemap"


I apply the basemapDefault to a Map object and then use that Map object in my MapView


var map = new Map({
basemap: basemapDefault,
layers: [highlightGeographyLyr, colorOverlayLyr, hatchOverlayLyr, locationOverlayLyr, competitorOverlayLyr] 


var view = new MapView({
container: "viewDiv", 
map: map, 
zoom: 20, 
center: [-119.41793, 36.7783] 


Everything works correctly except for my zoom and center property. No matter what I put in the zoom or center, the map initially loads that same way. 


What I am doing wrong?