|
POST
|
Jason, For the time being, all edits to features should be done within the Shortlist builder. We are looking to add the workflow where features are managed exclusively outside of the builder, for example, in a feature service layer. Mark
... View more
02-02-2017
01:42 PM
|
0
|
0
|
1036
|
|
POST
|
Hi Jason, See a related post here: https://community.esri.com/thread/189575-adding-new-locations-to-shortlist -Mark
... View more
02-02-2017
11:15 AM
|
1
|
0
|
1036
|
|
POST
|
Hi Melissa, There is currently not a way for the Shortlist feature data to be managed outside of the Shortlist builder. When you start with a web map, and from a feature layer service, we merely copy the feature data over to a new web map that is no longer associated with the feature service layer. All edits are then done in the Shortlist builder and will not be reflected in the original feature service layer, and vice versa. We are looking at adding the capability for the Shortlist viewer to read all of the feature's from a layer managed outside of the builder, so that you could manage your features from a feature service layer. We will keep you updated on the status of that enhancement and workflow. -Mark
... View more
02-01-2017
03:58 PM
|
1
|
0
|
1418
|
|
POST
|
Hi Justin, Sorry you are seeing issues with your Shortlist on your iPhone. Could you please provide a bit more information so we can try to reproduce and diagnose? What version iOS are you on? And would you be able to share a link to your Shortlist with us to specifically look at? Feel free to PM me if you don't want it posted publicly. Thanks, Mark
... View more
02-01-2017
03:54 PM
|
0
|
3
|
1771
|
|
POST
|
Yes, in the constructor you can pass in an option called 'scalebarUnit' that can be set to english, metric, or dual. Scalebar | API Reference | ArcGIS API for JavaScript 3.19
... View more
01-30-2017
03:47 PM
|
2
|
0
|
1030
|
|
POST
|
Hi Flo, This code snippet should do the trick for you, just replace what you currently have in the main-app.js file with: var loadingIndicator = {};
var i18n = null;
if (document.location.protocol == "file:") {
$(document).ready(function() {
$("#fatalError .error-title").html("Application loading failed");
$("#fatalError .error-msg").html("The application has to be accessed through a web server. Consult user guide for detail.");
$("#fatalError").show();
});
}
else {
dojo.addOnLoad(function() {
require([
"dojo/i18n!./resources/nls/template.js?v=" + version,
"storymaps/ui/loadingIndicator/LoadingIndicator",
"dojo/topic",
"esri/dijit/Scalebar",
"dojo/domReady!",
"dojo/ready"
], function(
_i18n,
LoadingIndicator,
topic,
Scalebar
){
i18n = _i18n;
loadingIndicator = new LoadingIndicator("", "loadingMessage");
loadingIndicator.setMessage(i18n.viewer.loading.step1);
require(["storymaps/core/Core", "storymaps/maptour/core/MainView", "storymaps/utils/Helper"], function(Core, MainView, Helper){
var urlParams = Helper.getUrlParams();
var isInBuilderMode = urlParams.edit != null || urlParams.fromScratch != null || urlParams.fromscratch != null || urlParams.fromGallery != null;
if (isInBuilderMode) {
require(["storymaps/builder/Builder", "storymaps/maptour/builder/BuilderView"], function(Builder, BuilderView) {
Core.init(new MainView(), Builder);
Builder.init(Core, new BuilderView());
});
}
else
Core.init(new MainView());
topic.subscribe("maptour-ready", function(){
var scalebar = new Scalebar({
map: app.map,
attachTo: "top-right"
});
});
});
}
);
});
}
-Mark
... View more
01-30-2017
03:21 PM
|
0
|
2
|
1030
|
|
POST
|
Sorry about that, was looking at the wrong id. This should do it: http://www.arcgis.com/home/item.html?id=00fe15521df741f9b92e78623e4d1126. And for the layer: http://www.arcgis.com/home/item.html?id=1e7ca579279d41b9bb4657ef9de2945c. -Mark
... View more
01-23-2017
12:25 PM
|
2
|
0
|
906
|
|
POST
|
Hi Jamie, The web map id for the web map used in the app is e433e25a1e354552b04ba348a3f4d5c5, so you should be able to access that at: http://austin.maps.arcgis.com//home/item.html?id=e433e25a1e354552b04ba348a3f4d5c5 . -Mark
... View more
01-23-2017
10:31 AM
|
0
|
2
|
906
|
|
POST
|
Hi Ben, You will want to double check the TAB_NAME field values, it appears the second tab that is showing up is because those features TAB_NAME field values have one more space than the other features. Mark
... View more
01-20-2017
01:17 PM
|
0
|
1
|
1998
|
|
POST
|
Hi Melissa, I think your code looks good, and should work. This snippet worked for me: define(["dojo/topic", "esri/dijit/Search", "esri/layers/FeatureLayer", "esri/InfoTemplate"], function(topic, Search, FeatureLayer, InfoTemplate) {
/*
* Custom Javascript to be executed while the application is initializing goes here
*/
// The application is ready
topic.subscribe("tpl-ready", function(){
/*
* Custom Javascript to be executed when the application is ready goes here
*/
var search = new Search({
map: app.map
}, "search");
var sources = search.get("sources");
sources.push({
featureLayer: new FeatureLayer("https://services.arcgis.com/V6ZHFr6zdgNZuVG0/arcgis/rest/services/CongressionalDistricts/FeatureServer/0"),
searchFields: ["DISTRICTID"],
displayField: "DISTRICTID",
exactMatch: false,
outFields: ["DISTRICTID", "NAME", "PARTY"],
name: "Congressional Districts",
placeholder: "3708",
maxResults: 6,
maxSuggestions: 6,
//Create an InfoTemplate and include three fields
infoTemplate: new InfoTemplate("Congressional District", "District ID: ${DISTRICTID}</br>Name: ${NAME}</br>Party Affiliation: ${PARTY}"),
enableSuggestions: true,
minCharacters: 0
});
//Set the sources above to the search widget
search.set("sources", sources);
search.startup();
});
});
... View more
01-20-2017
11:37 AM
|
2
|
0
|
667
|
|
POST
|
No problem Ben. This is the version you will want to use: Release v.1.4.9 · Esri/shortlist-storytelling-template-js · GitHub . Cheers, Mark
... View more
01-17-2017
01:00 PM
|
0
|
8
|
1531
|
|
POST
|
Hi Ben, Which version of Shortlist are you using? The one hosted in AGOL (version 2.X), or the version you download and host yourself (possibly version 1.4.X)? Version 2.X does not currently support updating the Shortlist layer outside of the Shortlist builder, but is something we are looking to add in the near future. Version 1.4.X does support dynamic updates to the Shortlist layer(s) and updates will show up in the app. -Mark
... View more
01-17-2017
10:07 AM
|
0
|
10
|
1531
|
|
POST
|
Hi Melissa, Have a look at the geocoder construction method, there is a geocoders parameter you can use to add your own. Geocoder | API Reference | ArcGIS API for JavaScript 3.19 -Mark
... View more
01-13-2017
02:46 PM
|
1
|
1
|
1426
|
|
POST
|
Hi Sarah, Sorry for the issue with the Swipe app. After having a look, I have discovered the problem, and it is in the Swipe app itself, not the JS API. While the problem will not affect the way the app performs, I will PM you an easy fix that will solve the problem, and therefor the errors in the console. -Mark
... View more
01-10-2017
01:19 PM
|
0
|
0
|
571
|
|
POST
|
Hi Melissa, In the custom-scripts.js file, use this: define(["dojo/topic", "esri/dijit/Search",], function(topic, Search) {
/*
* Custom Javascript to be executed while the application is initializing goes here
*/
// The application is ready
topic.subscribe("tpl-ready", function(){
/*
* Custom Javascript to be executed when the application is ready goes here
*/
var search = new Search({
map: app.map
}, "search");
search.startup();
});
}); -Mark
... View more
01-09-2017
10:44 AM
|
1
|
0
|
1426
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-11-2017 10:46 AM | |
| 1 | 08-01-2014 11:03 AM | |
| 1 | 08-01-2014 10:53 AM | |
| 1 | 06-17-2015 02:40 PM | |
| 1 | 03-20-2017 10:20 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|