Scene with inset map is a configurable app template for visualizing web scenes with the inclusion of an inset map to help orient users, especially useful when viewing at larger scales.
Select optional widgets, including a 3D measure tool Choose a color theme, and include a header and title Configure an information dialog that can be used as a splash screen to provide context about the map to your audience
Present detailed 3D view of a mountainous region at a large scale and let the 2D map to provide an overview of where you are in the world Show a detailed 3D plan for new urban development and allow users to use the 2D map view for context.
This application is responsively designed to support use in browsers on desktops, mobile phones, and tablets.
This application has no data requirements.
- Download and unzip the .zip file or clone the repository.
- Web-enable the directory.
- Access the .html page.
- Start writing your template!
New to Github? Get started here.
- To deploy this application, download the template from Portal/ArcGIS Online and unzip it.
- Install npm and run npm install via command line then run npm run start.
- Copy the unzipped folder containing the web app template files, such as index.html, to your web server. You can rename the folder to change the URL through which users will access the application. By default the URL to the app will be
http://<Your Web Server>/<app folder name>/app/index.html
- Change the sharing host, found in defaults.js inside the config folder for the application, to the sharing URL for ArcGIS Online or Portal. For ArcGIS Online users, keep the default value of www.arcgis.com or specify the name of your organization.
- ArcGIS Online Example:
"sharinghost": location.protocol + "//" + “<your organization name>.maps.arcgis.com
- Portal Example where
arcgis
is the name of the Web Adaptor:"sharinghost": location.protocol + "//" + "webadaptor.domain.com/arcgis"
- If you are using Portal or a local install of the ArcGIS API for JavaScript, change all references to the ArcGIS API for JavaScript in index.html to refer to your local copy of the API. Search for the references containing
"//js.arcgis.com/3.13"
and replace this portion of the reference with the url to your local install.
- For example:
"//webadaptor.domain.com/arcgis/jsapi/jsapi"
wherearcgis
is the name of your Web Adaptor.
- Copy a map or group ID from Portal/ArcGIS Online and replace the default web map ID in the application’s default.js file. You can now run the application on your web server or customize the application further.
Note: If your application edits features in a feature service, contains secure services or web maps that aren't shared publicly, or generate requests that exceed 200 characters, you may need to set up and use a proxy page. Common situations where you may exceed the URL length are using complex polygons as input to a task or specifying a spatial reference using well-known text (WKT). For details on installing and configuring a proxy page see Using the proxy. If you do not have an Internet connection, you will need to access and deploy the ArcGIS API for JavaScript documentation from developers.arcgis.com.
- Text or HTML editor.
- A little background with JavaScript.
- Experience with the ArcGIS JavaScript API would help.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
Esri welcomes contributions from anyone and everyone. Please see our guidelines for contributing.
Copyright 2018 Esri
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
A copy of the license is available in the repository's license file.