POST
|
The TypeScript compiler is capable of outputting AMD. See the module flag in the Compiler Options documentation.
... View more
09-27-2016
01:41 PM
|
0
|
2
|
1813
|
POST
|
But that requirement is not new for 3.18, right? Code that worked with 3.17 is now breaking with 3.18.
... View more
09-26-2016
02:21 PM
|
2
|
0
|
1563
|
POST
|
Since you're dealing with local KML files, you should really be doing the conversion on the client (in the browser via JavaScript) rather than on another server. A client-side conversion will be a lot faster than sending the KML to another server (arcgis.com or GP service). There are a number of libraries on NPM that can convert from KML to GeoJSON. From there you can use arcgis-to-geojson-utils to get from GeoJSON to ArcGIS features.
... View more
09-26-2016
11:01 AM
|
1
|
1
|
4042
|
POST
|
You can set up a load event to pick a specific basemap when the gallery loads. basemapGallery = new BasemapGallery({
map: map,
basemapIds: map.layerIds
}, "basemapGallery");
basemapGallery.startup();
// When the basemap gallery loads, select the first basemap with
// the title "Light Gray Canvas". (There should be only one, but that's what
// the code is doing.)
basemapGallery.on("load", function() {
var basemap, basemaps = basemapGallery.basemaps.filter(function(basemap){
return basemap.title === "Light Gray Canvas";
});
if (basemaps && basemaps.length > 0) {
basemap = basemaps[0];
basemapGallery.select(basemap.id);
}
});
... View more
09-22-2016
02:34 PM
|
1
|
0
|
573
|
POST
|
I updated the "integrity" tag in the GeoPortal HTML so that it would work again. (The GeoPortal failure is what prompted this question.) The reason that it worked on your iPhone is that iOS doesn't support subresource integrity checking.
... View more
09-21-2016
03:56 PM
|
1
|
0
|
835
|
POST
|
It appears the http://js.arcgis.com/3.17/init.js file has changed, causing SRI checks to fail. Did Esri intentionally change the file recently, or has there been a hack? I thought that once a version of the API was released, it was not supposed to change. (An update would require a new version number.)
... View more
09-21-2016
09:39 AM
|
0
|
3
|
1084
|
POST
|
You can create an image client-side using HTML canvas. See this project: GitHub - WSDOT-GIS/arcgis-map-thumbnail-builder: Exports an image of an ArcGIS API for JavaScript map.
... View more
08-25-2016
05:35 PM
|
0
|
0
|
2066
|
POST
|
See https://community.esri.com/message/604973#comment-605397
... View more
08-19-2016
10:23 AM
|
1
|
1
|
1598
|
POST
|
If your web server is IIS, I would create a REST endpoint using ASP.NET Web API. The SQL query would occur here, on the web server, and return the query result as JSON. Your client-side code (JavaScript) would call this REST endpoint and convert the results into features. The ArcGIS API for JavaScript is not your only option for creating an interactive map. Leaflet is another alternative you might want to consider. If you go with Leaflet, you'll want your server-side code to return the data from SQL as GeoJSON.
... View more
08-05-2016
09:35 AM
|
1
|
0
|
1822
|
POST
|
Alternatively, how to disable the fist level what causes branches to colapse? You can make the layer off by default by setting the visible property in the layer's constructor to false. If you want the user to NEVER be able to expand the list, you could probably accomplish this with CSS.
... View more
07-05-2016
10:00 AM
|
0
|
0
|
916
|
POST
|
I actually requested this enhancement a while ago. It's status is currently In Product Plan, but I don't know when they actually plan to implement this. For now you will have to work around the issue by destroying and recreating your feature table. (There are other threads on GeoNet that have example code demonstrating how to do this.) #ENH-000094524 [Enhancement] Update Featuretable when the underlying Featurelayer's definition query changes Open Status: In Product Plan Severity: Medium Submitted: 2/28/2016 Product: ArcGIS API for JavaScript Version: 3.16
... View more
06-28-2016
10:49 AM
|
1
|
1
|
373
|
POST
|
Do you have access to an ArcGIS Server? If so you could create a model that uses tools from the Linear Referencing toolbox and then publish it as a Geoprocessing Service. If ArcGIS Server is not an option, and you need to do everything client-side, you might want to look into Turf. I haven't had a chance to try this library yet, but the along and lineSlice functions might work to get you a line segment.
... View more
06-28-2016
10:40 AM
|
1
|
2
|
863
|
POST
|
You should be able to use Visual Studio Code for this purpose. This is a good resource: Using TypeScript with EsriJS 4 - odoenet
... View more
06-15-2016
10:11 AM
|
1
|
0
|
754
|
POST
|
Or perhaps the SDE capability could be some sort of add on, so that only people who need this capability would have to download it.
... View more
05-27-2016
12:49 PM
|
0
|
0
|
705
|
POST
|
Do I need to add a destroy() or refresh() every time I change a layer? Yes, that is exactly what you need to do. I have heard that this will no longer be necessary at v. 3.17 of the API, though.
... View more
05-24-2016
11:11 AM
|
0
|
2
|
541
|
Title | Kudos | Posted |
---|---|---|
2 | 03-05-2024 05:10 PM | |
1 | 04-30-2013 08:23 AM | |
1 | 05-03-2022 09:45 AM | |
1 | 06-30-2015 10:55 AM | |
1 | 03-31-2016 10:19 AM |