SelwynGIS

Beginner Issues

Discussion created by SelwynGIS on Oct 7, 2013
Latest reply on Oct 8, 2013 by SelwynGIS
Hello,

I've just begun the tutorial on ArcGIS API for Javascript.  I want to know two things:

1. Must I have a basemap when I create a new Map object? It says the only required parameter in the constructor is the divid, and the rest is optional.  The thing is, nothing loads when I load my index.html file unless I specify a basemap.  I would thought without a basemap specified the widgets and everthing else would load. At the moment my JS is just inbetween some script tags, not stored in another JS file.

2. I have shapefiles stored locally in a folder.  Is it possible to reference these locally and add them to the map? I'm guessing not since JS doesn't have access to the file system if I'm correct? (sorry, I only know the basics of JS, my strength is mostly in python)

My overall goal is to have a offline local arcgis viewer on a tablet, which references shapefiles stored on the tablet since we cannot afford the licences of ArcPad.  Our users don't like using Arcmap on the tablets because of the small icons and cluttered interface, hence the reason I'm trying to build a minimal web app with the JS API.

Cheers

Outcomes