This repository is a template for making Svelte/ArcGIS JS SDK web applications.
-
app-config.json
Setting Type Description appName
string The name of the application. aboutText
string The text that appears at the top of the info panel. helpLink
string Link used for the help button, links to help document. mapPortalId
string The portal ID of the web map used by the application. gaMeasurementId
string Google Analytics measurement ID titleBreakpoint
number Viewport width at which the application title switches to short form. shellBreakpoint
number Viewport width at which shell changes to mobile view. -
index.html
Change the<title>
to your app's title.
Parameter | Format | Description |
---|---|---|
center |
center=<x>,<y> center=<x>,<y>,<wkid> |
MapView center: x coordinate, y coordinate, and optionally the well known ID of the spatial reference system. If no WKID is provided, 4326 is assumed. Examples: center=-89.8506,45.8167 center=-9908677.16,5434226.91,102100 |
level |
level=<zoom> |
MapView zoom level. Normally, zoom level depends on they type of layers are used in an application (vector versus image tiles) but this value is standardized to the vector scale where zoom level 0 has a scale of 295828763.795777 .Example: level=10 |
basemap |
basemap=<index> |
Index of basemap in basemap gallery. Example: basemap=1 |
layers |
layers=<layer>[,<layer>...] |
Comma seperated list of layer titles. Example: layers=NGS,HMP,County |