2

I am facing this issue while loading the simple basic arcgis map inside dojo BorderContainer. Following is the code that I am trying,

this.mapContainer = new BorderContainer({ region: 'center', design: 'sidebar', style: 'height:calc(100%-150px);border:0px solid #b7b7b7;width:100%;overflow: hidden;' });
this.mapContainer.startup(); this.mapContainer.layout(); this.mapContainer.placeAt(this);

dcMap = new Map(this.mapContainer.domNode,{ basemap: "topo", center: [-122.45, 37.75], // longitude, latitude zoom: 13 });

But, when i load the app i get following outcome

enter image description here

So not only some tiles are missing from the map, the zoom control as well not working properly.

At first i tought the issue was with dom i.e. the container might not be ready when the map tries itself to load in it. But it seems like thats not the case, cause if I put the timeout and load map after some delay I get the same results.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Aug 2, 2016 at 16:06

1 Answer 1

3

It looks like you may be missing the esri.css file.

Make sure you have included the following in your HTML file. <link rel="stylesheet" href="//js.arcgis.com/3.17/esri/css/esri.css">

answered Aug 2, 2016 at 19:29
1
  • Perfect! This is what i missed in the first place! Commented Aug 3, 2016 at 14:16

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.