map doesn't show

1465
6
10-03-2016 02:03 PM
ahmedalgosaibig
New Contributor

Hello,

I'm trying to run the sample from this site Get started with MapView - Create a 2D map | ArcGIS API for JavaScript 4.1 , but the map doesn't show?

If you you have any idea, plz share it

Thank you

0 Kudos
6 Replies
RobertScheitlin__GISP
MVP Emeritus

Ahmed,

  What do you mean 

I'm trying to run the sample from this site

You copied the html code to a html file on your web server and the map is not showing?

Are there any errors in your browsers web console?

0 Kudos
ahmedalgosaibig
New Contributor

I copied and pasted in html file. I don't have web server

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Ahmed,

   If you do not have a web server (like IIS on your machine) then you can not run html files from your machine. Running files with a url like this will not work: 

file:///C:/JS_Workspace/EXPORT_FeatureTable.html

0 Kudos
ahmedalgosaibig
New Contributor

I'll try it

0 Kudos
DevonBise
New Contributor III

Have you tried running the sample in different browsers?  Sometimes cleaning out the cookies can kickstart a hung website.  I would advise cleaning out your cookies and switching to a new browser temporarily if that doesn't work.  Let me know if this works and if not we can go from there.  Cheers!

0 Kudos
ahmedalgosaibig
New Contributor

I tried it, but nothing the map doesn't show up

0 Kudos