|
POST
|
this is a sample code ...... //add the legend map.on("layers-add-result", function (evt) { var layerInfoLines = []; arrayUtils.map(evt.layers, function (layer, index) { if (layer.layer.geometryType === "esriGeometryPolyline"){ layerInfoLines.push({layer:layer.layer, title:layer.layer.name}); } }); var layerInfoPolygons = []; arrayUtils.map(evt.layers, function (layer, index) { if (layer.layer.geometryType === "esriGeometryPolygon"){ layerInfoPolygons.push({layer:layer.layer, title:layer.layer.name}); } }); var layerInfo = layerInfoPolygons.concat(layerInfoLines); if (layerInfo.length > 0) { var legendDijit = new Legend({ map: map, layerInfos: layerInfo }, "legendDiv"); legendDijit.startup(); } }); ..... and here see a live sample Edit fiddle - JSFiddle
... View more
11-23-2016
12:52 AM
|
1
|
2
|
1475
|
|
POST
|
the property define the layer order on Legend Widget according to the Javascript Help is the LayerInfos see below. < Object[] > layerInfos Optional Specify a subset of the layers in the map to display in the legend. If not set, all layers in the map will display in the legend. The order of the layers in the legend depends on the layerInfo array. See the layerInfos property description for a description of its object properties. So during the layer load on the map change the layer order.
... View more
11-23-2016
12:26 AM
|
0
|
0
|
1475
|
|
POST
|
When you enable Register as Version a Dataset with Topology, also topology tables following the versioning structure. So for tables T_1_POLYERROS,T_1_POINTERROS,T_1_LINEERROS are exisitnd the related A and D delta tables. Unfortunately those tables does not provide the multiversion views (EVW).
... View more
11-11-2016
04:42 AM
|
0
|
1
|
1218
|
|
POST
|
here is also a sample from Javascript API ArcGIS API for JavaScript Sandbox
... View more
10-23-2016
11:31 PM
|
0
|
22
|
3237
|
|
POST
|
Is this ArcGIS API for JavaScript Sandbox what are you looking for? Editor Widget allow to edit more than one layer.
... View more
10-20-2016
12:03 AM
|
0
|
1
|
836
|
|
POST
|
What do you mean? creating a line on the vertices place, create also and points?
... View more
10-18-2016
03:42 AM
|
0
|
1
|
836
|
|
POST
|
arcgis javascript allow snapping Map | API Reference | ArcGIS API for JavaScript 3.18 this is for Editor, Measurement widget or the Draw and Edit toolbars. here is a sample app Editor widget with simple toolbar | ArcGIS API for JavaScript 3.18
... View more
10-18-2016
12:00 AM
|
1
|
0
|
642
|
|
POST
|
Also you can create a geoprocessing service to do it. Upload a KML one or many and convert into graphic on map. something like this: import glob, zipfile, arcpy def kmlToFeatures(kmlFile): arcpy.AddMessage("kmlToFeatures") arcpy.KMLToLayer_conversion(kmlFile, arcpy.env.scratchFolder, "outKML1") return arcpy.env.scratchFolder + "/outKML1.gdb/Placemarks/Polygons" def ProcessInput(): sourceKMLFile = arcpy.GetParameterAsText(0) outputFeatureClass = kmlToFeatures(sourceKMLFile) arcpy.SetParameterAsText(1, outputFeatureClass) ProcessInput()
... View more
09-26-2016
01:00 AM
|
1
|
1
|
5434
|
|
POST
|
Tile map service from ArcGIS Server does not allow to change the image through definition query. for this functionality see Vector tiles but through ArcGIS Online Vector tile layers—ArcGIS Online Help | ArcGIS
... View more
09-26-2016
12:17 AM
|
1
|
0
|
854
|
|
POST
|
See here the same example with different layer name Edit fiddle - JSFiddle When you are creating the layerInfo in order to pass it on the Legend widget change the layer title .... map.on("layers-add-result", function (evt) { var layerInfo = arrayUtils.map(evt.layers, function (layer, index) { if (layer.layer.name==="Rivers"){ return {layer:layer.layer, title:"My River"}; }else{ return {layer:layer.layer, title:layer.layer.name}; } }); ... Also it is more easily to use webmap for the map creation and control the layer name, legend visibility e.t.c from the webmap.
... View more
09-20-2016
01:24 AM
|
1
|
0
|
876
|
|
POST
|
with the following map.getLayer('MapServiceWeb_Operational_7147'); you are getting the map layer setting the layer id.
... View more
09-13-2016
12:09 AM
|
2
|
0
|
800
|
|
POST
|
Try to use the geoprocessing service Utilities > PrintingTools (GPServer) > Export Web Map Task Execute Task (Export Web Map Task)
... View more
09-07-2016
11:37 PM
|
1
|
0
|
817
|
|
POST
|
Add an OnClick Event on this Image. e.g dojo.connect(statsLink2, "onclick", FunctionName);
... View more
09-07-2016
02:42 AM
|
0
|
0
|
942
|
|
POST
|
See if the Services trying to load with HTTPS. Also check if the application trying to open through HTTPS.
... View more
09-06-2016
01:25 AM
|
0
|
0
|
1043
|
|
POST
|
Publish again the layer as hosted feature service enabling the editing capabilities see the result here http://justamap.maps.arcgis.com/home/item.html?id=10c81144a3e24aa898d249adfab0b950
... View more
09-06-2016
12:56 AM
|
0
|
1
|
1909
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-05-2017 12:35 AM | |
| 1 | 02-15-2021 07:16 AM | |
| 1 | 02-15-2021 12:05 AM | |
| 1 | 02-15-2021 12:02 AM | |
| 2 | 12-21-2020 12:38 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-20-2025
06:08 AM
|