-
Watching a graphics Layer for changes
Anyone successfully set up a watch event (using watchUtils or some other kind of listener) on changes in the Graphics Layer? I got what I wanted working by watching the mapView for "updating" (code below) but that seems overkill because it fires with every map event, even ones that have nothing to do with graphics. I tried…
-
10.8.0 Server Services Stopping Overnight
We have a weird issue where some services will be in a "stopping" state that occurs sometime overnight. We usually just stop and start the service from the Server Admin page. But, has anyone else had this occur? We'd like to not have it happening!
-
style featureset
sp: cómo estilar un FeatureSet, es decir, cómo estilar aplicar estilo al array de Graphic features que es el featureSet devuelto? en: how to style a FeatureSet, that is, how to style the array of Graphic features that is the returned by featureSet?
-
Unable to access ArcGIS Server at localhost
We restarted are Windows Server 2012 R2 on which ArcGIS Server was running. After restart, service of ArcGIS Server is running but we are unable to access arcgis server on localhost:6080/arcgis/manager it gives us error Site cannot be reached:Localhost refused to connect After having in-depth analysis of the problem, came…
-
Advanced clustering in JS API v4.x
Hi All, I am trying to create a clustering layer with GeoJson layer (flexible with this choice) with the following requirements: * Clustering of Points * There can be three "types" of points. Example: School, Home, Store. * Requirement 1: While clustering, based on the types of Point we need to show different Icons. For…
-
ESRI Printing service not able print ArcGIS JS API 3.33 RasterLayer
I am trying to Print map where the layer in the web application is a RasterLayer The slider in the web app mask's the RasterLayer. I am using ArcGIS JS API 3.33 Following is the code smaple NOTE: To run the sample you would need to update the printing service URL at line number 127 <!DOCTYPE html> <html> <head> <meta…
-
zoom to feature
Javascript API v4.16 Building a page that opens up a map and zooms to the extent of the feature ID passed to it from the previous page. So far: 1. the feature ID is set in the "localStorage" of page 1 2. in Page 2 I retrieve that value and attempt to zoom to that feature. 3. I have a function that will do the zooming but I…
-
Finding WMS Group Layer IDs
How does one go about finding groups layer IDs on a rest service? Reading about grouped and sublayer grouped layer ids via Use URL parameters—ArcGIS Web AppBuilder | Documentation but haven't sleuthed how one can deduce (from the rest service) what the unique 4 digit layer ID is???? See that the sublayer ID is the actual…
-
Need to share directions turn-to-text to another user with map screen shot
Hi I am raja ,I am using Esri maps(version 4.8) in our web application development .We have added the directions widget on maps as per our requirement using developer credit. Here we need to send screen shot of map and turn-to-turn text to another user,So is there any in build feature is exists or how to achieve this, can…
-
ESRI JavaScript API 3: show varouis FeatureLayers in one Layer
Hi, I would like to use the FeatureServer of current Hurricanes to display the information in one single Layer. This means represent the observed Track (Line), observed Position (Point), forcasted Track (Line), forcasted Positions (Point) and Error Cone (Polygon) in once. With a MapServer this is possibale, by…
-
using "Derive new Locations" function in analysis widget
For some reason the Derive new locations analysis function works in my web map, but not in the associated web mapping application when used as a widget. When I try running it, my javascript console reads "Uncaught type error, cannot read property getMap of null". Interestingly, the "find existing locations" analysis widget…
-
why the coordinates from view.toMap() are incorrect in east hemisphere?
Hi, Does anyone know why the coordinates output from view.toMap are incorrect in the east hemisphere? I simplified the code to be the following. You run it and click the map anywhere and you will find that the output coordinates from cursorPoint are sometimes different from the one shown in base map (the correct one). I…
-
Obtaining Lat/Long of the user's position in ArcGIS API JS 4.16
I want to acquire the user's current position to use it in different functions. Locate widget works perfectly but I am not able to get the latitude and longitude from it. Are there any alternatives to Locate widget? #web-apps #arcgis-api-js-4.16 #geolocation
-
JAVASCRIPT function to find nearest feature of a coordinate
Dears I have set of different coordinates in an excel file. I am processing this excel file through java script API. I am trying to find the nearest feature(using ESRI javascript API) corresponding to each coordinate in excel sheet. the nearest feature I am looking for is in a map service(layer) published in arcgis server…
-
How optimize rendering 8000 polygon graphics on a layer map?
Why when I rendering with Arcgis GraphicsLyaer 8000 polygon it taked about 35seconds and very small in rendering frame per seconds while navigation with it drawed graphics if I use for this 2d Map, but better with SceneView(3d).? For example if take a look to MapBox rendering this 8000 polygon it take only about 7-10 sec…
-
How to change renderer of multiple layers of a arcgisdynamicservicelayer javascript api?
I am bit puzzled about it. How can I change styling/symbology of different layer of a call created as arcgisdynamicservicelayer by passing Map Server url?
-
how to get all results from all sources in Search widget Scene view
Dear All, i am using arcgis 4.15. i have a search widget.i want to get all results from all my sources which i place in sources. var searchWidget = new Search({ view: view, allPlaceholder: "Enter key word", includeDefaultSources: false, locationEnabled: false, searchAllEnabled:true, sources: [ { //layer:…
-
consuming dotnet core webapi geojson data
You help is greatly appreciated. I am trying to load sample school data as a geojson feature collection from dotnet core 3.1 MVC rest api. And of course create GeoJSONLayer. I was able to it on leaflet. But not able to do it in Esri javascript 4.15 api. I was able to extract the data from MVC controller and lint correctly.…
-
How to add a local image/georeferenced image to a map in ArcGIS JS API 4.x?
Is it possible to add a local image not georeferenced and set the coordinates in which it has to be (long,lat)? The only examples found were in the documentation which accesses a url from an ArcGIS server that provides a service for an ImageServer and adds it to a layer. Thanks!
-
Can't resolve 'esri/core/accessorSupport/decorators'
Hi all, I'm working with Angular and I'm trying to extend Accessors class. I've followed the topic implementing-accessor but can't recompile the project because the error: Can't resolve 'esri/core/accessorSupport/decorators' This is my implementation: /// <amd-dependency path="esri/core/tsSupport/declareExtendsHelper"…
-
ArcGIS Server - GenerateToken (limit/audit)
Hi, I can't find any documentation on: a.) Is there an upper limit as to how many tokens can be active for a single user? As in if I hit a page 100 times in different sessions within an hour window as the same user do all 100 tokens (lasting 1 hour) remain valid until their expiry? b.) Is it possible to audit requests made…
-
Displaying DWG file over the ArcGIS JS map viewer
Displaying DWG file over the ArcGIS JS map viewer We have an ArcGIS java script web application. We need to add a functionality to allow the user to upload the Drawing file (DWG) from the client browser and Zoom into the drawing file location and display the drawing. It should be on the fly and it should maintain the…
-
Export Web Map doesn't show legend classes.
Hi all, I created 2 mxd for a custom Layout. I published them and there are 2 version for A4 and A3.... When I try to print the layout A3 I only get the Legend with classes, text and description but without symbols... Why don't I see symbols of classes? Thanks, Naty
-
Generating Token By URL Request From ArcGIS Portal?
Hi, I'm trying to generate a token from a Portal url. It generates a token when pasting this link into a web browser: https://portalUrl/sharing/rest/generateToken?&f=json but when I run this code: <SPAN class="keyword token">function</SPAN> <SPAN class="token function">getToken</SPAN><SPAN class="punctuation…
-
ArcGIS Javascript API 4.x intellisense
Is there ArcGIS Javascript API 4.x intellisense for 1) Visual Studio Professional 2019 2) VsCode