POST
|
It's not the most intuitive interface, but I couldn't think of anything better. You need to add more than one geometry to the "geometries" box and check the "union results" checkbox before clicking the "Buffer" button.
... View more
02-14-2017
09:05 AM
|
0
|
9
|
1536
|
POST
|
The documentation for the ArcGIS API for Python doesn't seem to cover the scenario for logging in to ArcGIS Online that my agency uses. I log into https://wsdot.maps.arcgis.com using my Windows domain account (active directory) which somehow involves connecting to https://sts.wsdot.wa.gov/adfs/ls/auth/integrated/?SAMLRequest=... The only way I have figured out to log in is to have ArcGIS Pro already open and logged in, but this is not a viable solution for the script I am creating.
... View more
02-13-2017
11:39 AM
|
2
|
2
|
4598
|
POST
|
I made this a while ago: GitHub - WSDOT-GIS/arcgis-js-buffer: Buffer UI for ArcGIS API for JavaScript
... View more
02-10-2017
11:32 AM
|
0
|
11
|
1536
|
POST
|
This is the documentation for the Data Reviewer Server Object Extension (SOE). This is not a requirement for simply showing data in a table, though. The 3.x JavaScript API has a FeatureTable widget for displaying data. I don't think this widget is in the 4.x version of the API, though.
... View more
02-10-2017
11:28 AM
|
0
|
1
|
297
|
POST
|
You can still get the 3.x version from NPM if you need it. Below is what you would type at the console to specifically install the 3.x version. npm install --save @types/arcgis-js-api@">=3.19.0 <4"
... View more
01-30-2017
01:49 PM
|
0
|
0
|
801
|
POST
|
What happens when you try to use the service? What error messages do you see in the browser's console?
... View more
11-23-2016
08:26 AM
|
1
|
1
|
408
|
POST
|
If you just want ZIP code "boundaries" as JSON, it looks like you can get those here: GitHub - jgoodall/us-maps: GeoJSON and TopoJSON map files. (Technically, ZIP codes aren't actually defined as polygons.)
... View more
11-21-2016
10:37 AM
|
0
|
0
|
322
|
POST
|
ArcGIS API 4.X does not yet have all of the features from 3.X implemented. Besides Google and ArcGIS, there is also Leaflet, which does support clustering and basemaps from various providers. (I don't know how it performs with 20,000 features vs its alternatives, though. You would need to either test that yourself or search the web to see if someone else has done a performance test.)
... View more
11-21-2016
10:10 AM
|
1
|
1
|
477
|
POST
|
lg21155 is correct. The package definitions need to come before you load the ArcGIS API URL. Lines 6 and 7 in your CSHTML need to be swapped. Also, the package definitions should be assigned to a variable called dojoConfig rather than being inside of a call to require.
... View more
11-21-2016
10:02 AM
|
0
|
0
|
766
|
POST
|
The use of the "typings" tool was deprecated in TypeScript 2.0. The type definitions for version 3.x of the ArcGIS API can be downloaded via NPM here, but I'm not sure what to do for version 4.x.
... View more
10-24-2016
10:38 AM
|
1
|
7
|
1546
|
POST
|
Have you looked at the browser's console to look for any error messages? When you have something that doesn't work properly in some browsers but not others, it's usually because your code is using a JavaScript feature that has not yet been implemented in the browser that is not working. In this case you'll need to add a "polyfill" to add the missing feature to the browser, if possible. (Some features cannot be added via polyfills.)
... View more
10-04-2016
10:51 AM
|
0
|
1
|
377
|
POST
|
You'll need to add your custom basemap to the esri/basemaps list before creating the esri/Map object.
... View more
09-30-2016
11:43 AM
|
0
|
0
|
392
|
POST
|
Below are links to JSFiddles showing that 3.17 and 3.18 behave differently. 3.17 3.18 Below is the code from the fiddles (in case the above links break in the future). <div id="map"></div>
<div id="basemapGalleryContainer">
<div id="basemapGallery"></div>
</div> html, body {
height: 100%;
overflow-y: hidden;
}
html, body, #map, .map.container {
padding:0;
margin:0;
}
#map, .map.container {
height: calc(100% - 10em);
}
#basemapGalleryContainer {
height: 10em;
overflow-y: scroll;
} require([
"esri/config",
"esri/map",
"esri/geometry/Extent",
"esri/dijit/BasemapGallery",
"esri/layers/ArcGISDynamicMapServiceLayer"
], function (esriConfig, Map, Extent, BasemapGallery, ArcGISDynamicMapServiceLayer) {
"use strict";
var map, basemapGallery, scalebar, wsdotBasemap, wsdotBasemapLayer;
esriConfig.defaults.io.corsEnabledServers.push("data.wsdot.wa.gov");
esriConfig.defaults.io.corsEnabledServers.push("basemap.nationalmap.gov");
// Create the map, explicitly setting the LOD values.
map = new Map("map", {
extent: new Extent({
"xmin": -14058520.2360666,
"ymin": 5539437.0343901999,
"ymax": 6499798.1008670302,
"xmax": -12822768.6769759,
"spatialReference": {
"wkid": 3857
}
}),
lods: [
{"level": 0,"resolution": 56543.033928,"scale": 591657527.591555},
{"level": 1,"resolution": 78271.5169639999,"scale": 295828763.795777},
{"level": 2,"resolution": 39135.7584820001,"scale": 147914381.897889},
{"level": 3,"resolution": 19567.8792409999,"scale": 73957190.948944},
{"level": 4,"resolution": 9783.93962049996,"scale": 36978595.474472},
{"level": 5,"resolution": 4891.96981024998,"scale": 18489297.737236},
{"level": 6,"resolution": 2445.98490512499,"scale": 9244648.868618},
{"level": 7,"resolution": 1222.99245256249,"scale": 4622324.434309},
{"level": 8,"resolution": 611.49622628138,"scale": 2311162.217155},
{"level": 9,"resolution": 305.748113140558,"scale": 1155581.108577},
{"level": 10,"resolution": 152.874056570411, "scale": 577790.554289},
{"level": 11,"resolution": 76.4370282850732,"scale": 288895.0},
{"level": 12,"resolution": 38.2185141425366,"scale": 144447.638572},
{"level": 13,"resolution": 19.1092570712683,"scale": 72223.819286},
{"level": 14,"resolution": 9.55462853563415,"scale": 36111.909643},
{"level": 15,"resolution": 4.77731426794937,"scale": 18055.954822},
{"level": 16,"resolution": 2.38865713397468,"scale": 9027.977411},
{"level": 17,"resolution": 1.19432856685505,"scale": 4513.988705},
{"level": 18,"resolution": 0.597164283559817,"scale": 2256.994353},
{"level": 19,"resolution": 0.298582141647617,"scale": 1128.497176}
],
minZoom: 7,
maxZoom: 19
});
// Create the basemap gallery using basemaps defined in a WSDOT group.
basemapGallery = new BasemapGallery({
map: map
}, "basemapGallery");
basemapGallery.startup();
// When the basemap gallery loads, select the first basemap with
// the title "Imagery Hybrid". (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 === "Imagery with Labels";
});
if (basemaps && basemaps.length > 0) {
basemap = basemaps[0];
basemapGallery.select(basemap.id);
}
});
});
... View more
09-28-2016
12:58 PM
|
4
|
6
|
1275
|
POST
|
I see. Dojo 2 is supposed to be built with TypeScript. Maybe once the ArcGIS API is using Dojo 2 (which I assume will be quite a while after Dojo 2 is actually released due to the complexity of the migration) the NPM stuff will become easier to implement.
... View more
09-27-2016
04:25 PM
|
0
|
0
|
553
|
Title | Kudos | Posted |
---|---|---|
1 | 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 |