|
POST
|
What type of local layer are you trying to load as basemap? Tile layer, Vector Tile Layer, Map Image Layer, Image Service? Layers are stacked in the order you add them, so the first layer you load will be the basemap. You can use the dynamicMapLayer class to use a Map Image layer: L.esri.dynamicMapLayer({
url:'https://<myserver>/arcgis/rest/services/<map service>/MapServer',
layers:[0]
}).addToMap; Alternatively you could add a Tile Layer as basemap using the Leaflet base classes. L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(map); A handy way of handling multiple basemaps and overlays is by using the Leaflet layer control: var basemaps = {
"Esri Topographic": L.esri.basemapLayer('Topographic'),
"OSM": L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png').addTo(map)
};
var overlays = {
"Streets": L.esri.dynamicMapLayer({
url:'https://<myserver>/arcgis/rest/services/<map service>/MapServer',
layers:[0]
}),
"Towns": L.esri.dynamicMapLayer({
url:'https://<myserver>/arcgis/rest/services/<map service>/MapServer',
layers:[1]
})
};
L.control.layers(basemaps, overlays).addTo(map);
... View more
10-31-2019
03:59 AM
|
0
|
0
|
3105
|
|
POST
|
So it seems that the issue was that the GP tool did not like using a feature class as input zone, but a raster instead.
... View more
05-14-2019
12:08 AM
|
0
|
0
|
1247
|
|
POST
|
In version 3.X of the API you could specify the outline colour seperately from the inner colour, but I the 4.X LineSymbol does not have that property. You might need to add an additional black line graphic for each feature with an bigger width before adding the yellow line graphic.
... View more
05-09-2019
10:54 PM
|
0
|
0
|
2682
|
|
POST
|
First you need to create an expression value for the field calculation: exp = 'datetime.datetime(2019,1,17).strftime("%Y/%m/%d")' Then do the field calculation: arcpy.CalculateField_management(A_OP_LISTBUILDINGS, "DateFrom",exp,"PYTHON_9.3","")
... View more
05-09-2019
01:55 AM
|
1
|
1
|
2288
|
|
POST
|
I have a GP tool that makes use of multiple Zonal Statistics as Table functions. The Python tool works fine in ArcMap 10.6.1, but when I publish it to ArcGIS Server (10.6.1) as a GP Tool, the tool crashes with the second ZSAT call. Even if I switch the ZSAT calls around, it is always the second one that crashes with error message "java.lang.Exception: Could not service request". It does not matter what data sources I use or what folders/workspaces I use for the second ZSAT function. One thing I can mention is that we upgraded our ArcGIS Server to 10.6.1 and installed Portal. The original pubilshed GP Tool was still working then. After federating portal and installing the last 10.6.1 Spatial Analyst extension update for Server, things started going wrong. The original GP tool was created with Model Builder, and that also broke after the upgrades, so I recreated it completely as a Python tool.
... View more
05-07-2019
06:20 AM
|
0
|
1
|
1436
|
|
POST
|
Same issue still present in 10.5.1, but applying a Spatial Reference as suggested by David Wynne solved it for me.
... View more
09-11-2018
03:49 AM
|
0
|
1
|
1133
|
|
POST
|
It just shows that even the graphics have a coordinate system based location placement, but it does not have the same "intelligence" to apply a transformation, hence the shift in position when you copy in one CS and paste into another. Rather change the CS first, then copy and paste the graphic.
... View more
06-04-2018
11:24 PM
|
1
|
2
|
4355
|
|
POST
|
You can use the watchUtils to listen for extent changes. See this demo: Watch for changes | ArcGIS API for JavaScript 4.7
... View more
05-31-2018
02:58 AM
|
0
|
0
|
2079
|
|
POST
|
I had a look at the source for the link you sent and it is an Esri Image Service, hence the reason why you could get the pixel value easily. The Image Service offers a lot more functionality than a raster layer published as part of a Map Service, which includes pixel identify.
... View more
05-31-2018
02:17 AM
|
0
|
1
|
1287
|
|
POST
|
Unfortunately that method only works for WMS with a GetFeatureInfo request and not on a raster published as a REST Map Service. Also for the Sentinel WMS you have to load the INDEX layer and not the classified/symbolized RGB layer to get the MS index value.
... View more
05-30-2018
11:18 PM
|
0
|
3
|
1287
|
|
POST
|
Seems like the cutting line is not intersecting with the polygon. Is the spatial reference of the polygon also 4326?
... View more
04-10-2018
03:19 AM
|
0
|
0
|
3303
|
|
POST
|
I think your second listLayers is implemented incorrectly. This works for me in ArcPro: proj = arcpy.mp.ArcGISProject('CURRENT')
m = proj.listMaps()[0]
ml = m.listLayers()
for l in ml:
if l.isGroupLayer:
print(l)
lyrs = l.listLayers()
for lyr in lyrs:
print(lyr)
... View more
02-26-2018
10:30 PM
|
4
|
3
|
11977
|
|
POST
|
The file size of image might just be too big. Have you tried opening it in ArcGIS or other GIS package?
... View more
11-17-2017
01:59 AM
|
1
|
1
|
916
|
|
POST
|
See the Functionality matrix | ArcGIS API for JavaScript 4.5 MapImageLayer in version 4.5 is the equivalent of ArcGISDynamicMapServiceLayer in 3.x - therefor the addImage method is not available. I haven't been able to find an 4.x equivalent method for the image overlay.
... View more
11-13-2017
12:27 AM
|
1
|
0
|
746
|
| 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
|