|
POST
|
Only inside: SPATIAL_REL_CONTAINS or SPATIAL_REL_WITHIN: Also make sure you set the geometry precision finer to something like 0.00001 if working in a geographic coordinate system.
... View more
06-30-2016
11:22 PM
|
0
|
0
|
2240
|
|
POST
|
Then INTERSECT should work. Might need to recheck that extent geometry to make sure it is valid for your map and spatialreference.
... View more
06-30-2016
11:07 PM
|
0
|
2
|
2240
|
|
POST
|
Do you have any offsets around your map element? It might be a similar issue to this: Scrolling down a page with a map
... View more
06-30-2016
10:56 PM
|
1
|
1
|
1323
|
|
POST
|
Looking at the available renderers I would say no: Renderer | API Reference | ArcGIS API for JavaScript 4.0
... View more
06-30-2016
10:49 PM
|
1
|
0
|
1525
|
|
POST
|
ArcGIS Server printing services have this functionality by default, because it functions exactly like an MXD where you can specify scale, rotation, etc. Have a look at the Export Web Map Specifications (Export Web Map Specification), with specific mention of the mapOptions property where you can set scale and rotation.
... View more
06-30-2016
10:44 PM
|
2
|
1
|
980
|
|
POST
|
Are the number of points that you expect to be returned more than the Map/Feature Service record limit e.g. 1000? You can find this at the REST endpoint information in the services directory.
... View more
06-30-2016
10:40 PM
|
0
|
4
|
2240
|
|
POST
|
I think you just need to execute the queryTask with a callback funtion specified: QueryTask | API Reference | ArcGIS API for JavaScript 3.17 queryTask.execute(query, doStuffWithResults);
... View more
06-30-2016
12:49 AM
|
0
|
6
|
2240
|
|
POST
|
1) In your Identify Parameters, define the layerIds as only the visible layers on the map for the selected layer identifyParams.layerIds = myLayer.visibleLayers; You can do this in the executeIdentifyTask function if your visible layers are goint to change dynamically 2) Set the popup to only show if the identify response returns 1 or more feature function executeIdentifyTask (event) {
map.infoWindow.hide();
identifyParams.geometry = event.mapPoint;
identifyParams.mapExtent = map.extent;
var deferred = identifyTask
.execute(identifyParams)
.addCallback(function (response) {
// response is an array of identify result objects
// Let's return an array of features.
if (response.length > 0) {
map.infoWindow.show(event.mapPoint);
return arrayUtils.map(response, function (result) {
var feature = result.feature;
var layerName = result.layerName;
feature.attributes.layerName = layerName;
if (layerName === 'Tax Parcels') {
var taxParcelTemplate = new InfoTemplate("",
"${Postal Address} <br/> Owner of record: ${First Owner Name}");
feature.setInfoTemplate(taxParcelTemplate);
}
else if (layerName === 'Building Footprints') {
console.log(feature.attributes.PARCELID);
var buildingFootprintTemplate = new InfoTemplate("",
"Parcel ID: ${PARCELID}");
feature.setInfoTemplate(buildingFootprintTemplate);
}
return feature;
});
}
});
// InfoWindow expects an array of features from each deferred
// object that you pass. If the response from the task execution
// above is not an array of features, then you need to add a callback
// like the one above to post-process the response and return an
// array of features.
map.infoWindow.setFeatures([deferred]);
}
... View more
06-30-2016
12:42 AM
|
1
|
1
|
1033
|
|
POST
|
Glad to help. To close the question, please mark the answer as correct if the solution is sufficient.
... View more
06-29-2016
11:37 PM
|
0
|
0
|
1013
|
|
POST
|
I could get your example working by using a WebTileLayer instead (WebTileLayer | API Reference | ArcGIS API for JavaScript 4.0 ). Define your tileLayer2 like this: var tileLayer2 = new WebTileLayer({
urlTemplate: 'https://{subDomain}.tiles.mapbox.com/v4/mapbox.streets-satellite/{level}/{col}/{row}.png?access_token=' + token,
subDomains: ['a', 'b']
});
... View more
06-29-2016
03:32 AM
|
1
|
2
|
1013
|
|
POST
|
Do you want to specify the truck width as a model parameter? That you can do: ArcGIS Desktop Then it seems like you need to "highlight" the route or roads where the truck can drive. For this you can add a Select by Attributes step in your model, specifying the expression as "truck_width" < "road_width", and create a new intermediate feature layer from the selection. You can also specify a predefined symbology (lyr file) for the output if you want to add it to your map.
... View more
06-29-2016
01:39 AM
|
0
|
0
|
509
|
|
POST
|
That's all in the CSS of the example. You can also use a PictureMarkerSymbol (PictureMarkerSymbol | API Reference | ArcGIS API for JavaScript 3.17 ) and use any image e.g. animated GIF as the map marker.
... View more
06-29-2016
01:02 AM
|
2
|
1
|
2450
|
|
POST
|
Not sure if I'm understanding your question 100%, but you can change the parameters of any GP task request before it is sent to the server with the setRequestPreCallback funciton: esri/request | API Reference | ArcGIS API for JavaScript 3.17 To change the URL of an operational layer you can add this to your code where you are specifying the print task: esriRequest.setRequestPreCallback(function(ioArgs){
// check if request is a web map print request
if (ioArgs.content && ioArgs.content.Web_Map_as_JSON){
var webMapAsJson = ioArgs.content.Web_Map_as_JSON;
var webMapObj = JSON.parse(webMapAsJson);
// iterate through operational layers on the map
for (o in webMapObj.operationalLayers) {
var wmo = webMapObj.operationalLayers ;
if (wmo.title = "MyLayer"){
wmo.url = "http://newurl";
}
}
}
return ioArgs;
})
... View more
06-29-2016
12:48 AM
|
2
|
0
|
1242
|
|
POST
|
You can do it with a Class Break Renderer: ClassBreaksRenderer | API Reference | ArcGIS API for JavaScript 3.17
... View more
06-29-2016
12:18 AM
|
0
|
4
|
2637
|
|
POST
|
The zipfile module works well. You can zip the files in a folder like so: import zipfile
outputSHPzip = arcpy.env.scratchFolder + "\\shpzip.zip"
shpZip = zipfile.ZipFile(outputSHPzip, "w")
for root, dirs, files in os.walk(ShapefileFolder):
for f in files:
shpZip.write(os.path.join(root, f), f)
shpZip.close()
... View more
06-27-2016
11:27 PM
|
1
|
1
|
3381
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|