-
unable to load image via localhost
I'm trying to redirect my ESRI-request from my frontend via my backend to the ESRI-endpoint (using it like a proxy).If I do so, i get the following Error: Unable to load Image I tried changing the url-endpoint direct to the arcgis api, instead of redirecting via localhost. This way it works, but that's not what i wanted to…
-
I am using JS 4.17 lib and using CIMPictureMarker. It is not displaying any icon. Kindly help
I am using JS 4.17 lib and using CIMPictureMarker. It is not displaying any icon. Kindly help. const homePoint = new Point({ longitude: coordinates[0], latitude: coordinates[1] });var iconFillSymbol = { type: "cim", data: { type: "CIMSymbolReference", symbol: { type: "CIMPointSymbol", symbolLayers: [ {…
-
OGCFeatureLayer - How to display it ?
Hello, I am using ArcGIS dev Javascript 4.16 API and I want to use the new OGCFeatureLayer to add a WFS layer. However, I cannot make it appear on my map! Here is the related code: var layer_WFS = new OGCFeatureLayer({ url: "https://ogsl.ca/geoserver/eccc_atlas/ows", collectionId: "eccc_atlas:Ens_topo_ouvert" })…
-
Create event in C# from ArcGis Poly-lines
How to connect Events in C# to graphical objects e.g. Simple Marker Symbol or Poly Line? The main purpose is to move such objects I made myself. The following code I found does not work, please see error message in las 5 rows: Esri.ArcGISRuntime.UI.Graphic aGraphic = new Esri.ArcGISRuntime.UI.Graphic();…
-
Create event in C# from ArcGis Poly-lines
How do I create an event for graphical objects, e.g. Simple Marker Symbols or Poly Lines? The purpose is to mark them and move them. This method does not work for me, please see error message in the last 5 rows: Esri.ArcGISRuntime.UI.Graphic aGraphic = new Esri.ArcGISRuntime.UI.Graphic(); aGraphic.MouseRightButtonDown +=…
-
Importing Web Appbuilder into .Net Core
I am trying to import a Web Appbuilder app into my existing .net core web application. So far, I created a folder in wwwroot, called WebAppBuilder. All the content from the Web Appbuilder app, I moved to this folder. Then I moved the following files to wwwroot/js They were originally in the Web AppBuilder folder. I also…
-
ArcGis esri javascript api get data from cluster on click - getchildgraphics() - v4.14
event.graphic.getChildGraphics() equvialent in 4.14 api I am using point cluster in feature layer and able to cluster the data. Now i need to get all item id in a particular cluster on click. This gives output as <SPAN class="" style="color: var(--black-750); border: 0px; font-weight: inherit;"> clusterId</SPAN><SPAN…
-
printTask.execute not working on hosted application
I am trying to figure out why my printTask is not working when I host my .NET Core app on a server. It works locally, when I run the code via Visual Studio but not when I publish and host the app. For example, it works on line 12 in the code below. queryTask.execute(query).then(zoomToRoute) works but it does not work. I am…
-
Call JavaScript Function from C# .aspx .net app
I have an aspx C# .net app that was written apart from me I added a map component outside the FORM tags. I am trying to find a trigger that AFTER the page loads where I can fire off a JavaScript Function....I am stuck and have tried a hundred different Google searches... Is there an after Page Load that I can reference…
-
Check Arcgis Map Service working status in c#
How to check each map service working status like service is running or stopped.I want to loop through service directory check service status using c#
-
Adding WMS Layer to Map with React.js 4.14
Hi All, I am new to the ESRI Community as well as the ESRI ArcGIS Javascript API. I am using React.js as my Framework and the 'esri-loader' for the API Part. Can anyone give me a rudimentary example of how I would render a WMS Layer as an image/png on to the base map? Any help would be greatly appreciated. Thanks!
-
Mixed content error for app embedded in iframe
I have a WAB application embedded in an iframe on a .aspx page and the app is being blocked for mixed content. I checked the 'src' link in the aspx file, and it is "https..." and I also check all of the links to the data sources in the config files, including links to images and I cannot find any un-secure links. Could…
-
Query Layer: JS 4x - GetElementById
Hello all, In this script, can someone please point out where the well-type options for the select tag is getting populated from? I have tried to incorporate this for my own code but I can't seem to get it working. ArcGIS API for JavaScript Sandbox Thank you
-
Documentation for ArcReader Control (ActiveX)
I am using an ArcReader control in a Microsoft access database. I've got it up and running and displaying a publisher file fine, but I can't seem to be able to find any documentation on the control (accessing through VBA), and it's built in methods and properties, other than finding stuff on the .NET version, which is…
-
zoom level is not correct
I am using view.zoom to get the current zoom level. while the map itself is zooming in and out correctly the value is incorrect. for example. The map starts at zoom level 9. I will scroll in and the value changes 10 11 12 13 14 15 16 17 then I scroll out and the zoom value increases instead of decreasing 18 Then after that…
-
how to change order of graphics and layers
I am moving over from leaflet to Esri and having an issue with a couple of things. Here is the result of my current attempt to place data on the map. The issue is the polylines are above the markers. I have used the reorder function correctly for my Corelogic parcel layer but I am still trying to understand how It will…
-
Capture Editor Widget Create Feature Event?
I'm working with the Editor Widget in JavaScript 4.13. Is there an event that captures when a user clicks to add a new feature? The view on "click" event does not fire when user clicks to add new feature. My end goal is to use the point of the newly created feature in order to grab a value from an underlying feature in…
-
How to get geographic coordinate(lat/lon) of polygon and polyline.
I have no idea to get geographic coordinate (lat/long) of polygon and polyline. I'm using Sketch View Model esri javascript api 4.12.Please someone help.
-
SketchViewModel javascript api, fires view click.
Hi, Im using javascript api 4.13 I have created some drawing tools using the SketchViewModel. im not using the widget. im using sketch.create("polygon"); this works perfect and i can draw polygons. However if i close a polygon drawing by clicking on the first vertex created, then the polygon complete event fires. The…
-
Export data using arcgis sketch tool javascript api
How can I export data using Sketch Tool Widget I see it creates a feature but I want to extract the points it's covering. The reason I want to use this instead of "Features by Geometry" because I can create multiple polygon, rectangle, circle at a time. I want to be able to select that data/points its covering on a csv…
-
Hide expand widget
I have this expand widget. I want to hide it OR disable it when fullscreen is active. How?? var screenshotExpand = new Expand({ content: dvExpandContent, view: view, expandIconClass: "esri-icon-sketch-rectangle", expandTooltip: 'Screenshot', autoCollapse: true, expanded: false, group: "top-right" }); // end screenshotExpand
-
Does CSVLayer supports Search?
I am new to GIS and hopefully this is the right user group to point in the right direction. I have successfully display data on the map from CSV format, but I have issue trying to implement Search. According to Esri document, CSVLayer inherits from FeatureLayer but I suspect it doesn't support Search. I am getting this…
-
Modify how a graphic can be moved in sketchViewModel
I am trying to restrict how a polyLine can be moved while being edited in a sketchViewModel. i want the polyLine to only be rotated along its vertices, but not for the length of the vertices to be changed at all. I'd like to know whether this is possible, and if so how to do it.
-
Dealing with CORS When Using PictureMarkerSymbol
I'm trying to use an existing png image as customised PictureMarkerSymbol. The image is in the same folder as my .NET project(.sln) is. When I try the url : "https://static.arcgis.com/images/Symbols/Shapes/BlackStarLargeB.png", it works like it should. But when I try my locally hosted image, the symbol turns into black…
-
display WMSLayer partially
hi, i using WMSlayer to display radar data from Environment canada(https://www.canada.ca/en/environment-climate-change/services/weather-general-tools-resources/weather-tools-specialized-data/geospatial-web-services.html#toc2) it works fine. the code looks like below, but i have an issue to display only partial service map.…