|
POST
|
I think you can only set offset for Point geometries by means of the graphic object definition. For the Polyline graphic you could iterate through the line path and specify an offset for each coordinate: var g = routeLayer.graphics[1]; // red line
var offset = 0.0001; // decimal degrees
for (p in g.geometry.paths){
var path = g.geometry.paths
;
for (pnt in path){
var xy = path[pnt];
xy[0] += offset;
xy[1] += offset;
}
}
routeLayer.redraw();
... View more
07-07-2016
11:02 PM
|
0
|
0
|
2213
|
|
POST
|
Yes that should work for 4.0. The pixel value is returned as field "Pixel Value".
... View more
07-07-2016
03:31 AM
|
0
|
1
|
1081
|
|
POST
|
If the graphic is not in the eventsLayer, then the remove function won't work. You can try: view.graphics.remove(view.popup.selectedFeature); or view.graphics.removeAll(); If you provide more code someone might be able to help.
... View more
07-07-2016
03:22 AM
|
0
|
0
|
2337
|
|
POST
|
I would think it refreshes automatically after something like: graphicsLayer.remove(graphicsLayer.graphics.items )
... View more
07-07-2016
02:27 AM
|
0
|
2
|
2337
|
|
POST
|
The popup position in the sample has to do with the docking options for mobile device views [Popup | API Reference | ArcGIS API for JavaScript 4.0 ]. To set the popup not to dock at the click of the item, set the following popup properties in the MapView object: popup: {
dockEnabled: false,
dockOptions: {
// Disables the dock button from the popup
buttonEnabled: true,
// Ignore the default sizes that trigger responsive docking
breakpoint: false
}
} For the popup to open at the Point feature location: view.popup.open({
features: [result],
location: result.geometry
});
... View more
07-07-2016
12:24 AM
|
1
|
0
|
2099
|
|
POST
|
Yes in that case a mosaic published as an Image Service is the only option if you want to apply raster functions.
... View more
07-06-2016
11:08 PM
|
0
|
0
|
1081
|
|
POST
|
Too bad I'm not sure what your requirements are, but you can publish rasters from inside a MXD as a standard Map Service and use it in the view as a MapImageLayer [MapImageLayer | API Reference | ArcGIS API for JavaScript 4.0]. Then use an IdentifyTask [IdentifyTask | API Reference | ArcGIS API for JavaScript 4.0 ] to get the raster values.
... View more
07-06-2016
12:57 AM
|
0
|
2
|
2651
|
|
POST
|
There are a couple things about your Image Service that's bothering me. 1) Fields: None 2) Max Mosaic Image Count: null 3) Supports Statistics - option not available
... View more
07-06-2016
12:00 AM
|
0
|
0
|
2651
|
|
POST
|
One more thing, have you calculated statistics on your rasters in the Image Service?
... View more
07-05-2016
11:50 PM
|
0
|
0
|
2651
|
|
POST
|
Not sure if that could be a limitation. According to the documentation here (ArcGIS Help 10.1 ) the Pixels capabilities "Allows developers access to the pixel blocks of individual rasters in a mosaic dataset" and should be available in 10.1.
... View more
07-05-2016
11:37 PM
|
0
|
0
|
2651
|
|
POST
|
Have you enabled "Pixels" in you Image Service capabilities?
... View more
07-05-2016
06:33 AM
|
0
|
4
|
2651
|
|
POST
|
Try creating an in-memory Layer file while iterating and working with that instead: # list lyr files in workspace
lyrs = arcpy.ListFiles("*.lyr")
for l in lyrs:
lyr = arcpy.mapping.Layer(arcpy.Describe(l).catalogPath)
layers = arcpy.mapping.ListLayers(lyr)
for layer in layers:
# process layer
... View more
07-04-2016
06:25 AM
|
0
|
0
|
964
|
|
POST
|
Now I don't understand what you are trying to do Your original question stated you want a color ramp, but in your code you are applying a fill symbol. Please read the documentation on the ClassBreakRenderer first and play around with it. Tip: don't run the jQuery $(document).ready within the require function. You can create the layer listener functions right after you have initialised the layer. I would also be careful of building code around dynamically created DOM elements like the graphics layer. You have set the renderer for the layer already and don't need to wait for the document load to run it again.
... View more
07-04-2016
12:53 AM
|
0
|
0
|
2638
|
|
POST
|
Your code is not displaying in your post. Please edit with the advanced editor.
... View more
07-04-2016
12:36 AM
|
0
|
0
|
2638
|
|
POST
|
When performing an ImageServiceIdentifyTask (ImageServiceIdentifyTask | API Reference | ArcGIS API for JavaScript 3.17 ), you can define the ImageServiceIdentifyParameters (ImageServiceIdentifyParameters | API Reference | ArcGIS API for JavaScript 3.17 ) where you can set the mosaicRule (ImageServiceIdentifyParameters | API Reference | ArcGIS API for JavaScript 3.17 and MosaicRule | API Reference | ArcGIS API for JavaScript 3.17 ) and use the METHOD_LOCKRASTER method to list the participating raster IDs. The first one from the resulting list should be the one you are looking for.
... View more
07-01-2016
12:03 AM
|
1
|
0
|
781
|
| 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
|