|
POST
|
Hi team we are referring this simple map display sample: https://developers.arcgis.com/net/forms/sample-code/display-map/ We created a blank solution and added the following code: MainPage.xaml ==Start== <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:esri="clr-namespace:Esri.ArcGISRuntime.Xamarin.Forms;assembly=Esri.ArcGISRuntime.Xamarin.Forms" x:Class="LicenseIssue.MainPage"> <StackLayout> <Grid> <esri:MapView x:Name="GMyMapView"/> </Grid> </StackLayout> </ContentPage> MainPage.xaml ==End== MainPage.xaml.cs ==Start== using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; using Esri.ArcGISRuntime.Mapping; using Xamarin.Forms; namespace LicenseIssue { public partial class MainPage : ContentPage { public MainPage() { var a = new Esri.ArcGISRuntime.Xamarin.Forms.MapView(); //InitializeComponent(); InitializeComponent(); // Create the UI, setup the control references and execute initialization Initialize(); } private void Initialize() { // Create new Map with basemap Map myMap = new Map(BasemapStyle.ArcGISImageryStandard); // Assign the map to the MapView GMyMapView.Map = myMap; } } } MainPage.xaml.cs ==End== Attached screenshot of the blank app loading Any help would be appreciated
... View more
12-09-2021
12:09 AM
|
0
|
1
|
1125
|
|
POST
|
Hi @ABishop, thanks for the information however when I checked if we have datastore installed it gives the following message: Does this mean that datastore is not installed? What happens in this case? Where would the ArcGIS server store the geotiff?
... View more
11-22-2021
09:38 PM
|
0
|
1
|
1312
|
|
POST
|
We are planning to expose rest end to add new raster to imagery server, the REST API for imagery server has a supporting operation to add raster. However the new raster can be added only if it a an item on portal. So if we add a new geotiff using ArcGIS API for Python as a new item on Portal. Where would Portal allocate the memory for hosting the geotiff? Any suggestions would be appreciated! Thank you.
... View more
11-19-2021
05:59 AM
|
0
|
4
|
1492
|
|
POST
|
Hi team, We were using ArcGIS AppStudio Desktop 4.8 where we built an app using the quick reporter template. We customized the app using PopupView by importing import Esri.ArcGISRuntime.Toolkit.Controls 100.8 However after the latest update to ArcGIS AppStudio Desktop 5.0 its seems the PopupView type belongs in import Esri.ArcGISRuntime 100.10 https://developers.arcgis.com/qt/toolkit/api-reference/qml-popupview.html Even after importing ESRI.ArcGISRuntime 100.10 I have been getting error stating: I can repoduce the issue with am simple app attached to thread: Any suggestions would be great!
... View more
05-03-2021
05:10 PM
|
0
|
2
|
1232
|
|
POST
|
Thanks for the help Erwin, we were able to solve the issue thourgh MapViewer template
... View more
10-27-2020
05:50 AM
|
1
|
1
|
2153
|
|
POST
|
Hi team, Based on the popoup sample: Show a popup | ArcGIS for Developers mapView.identifyLayer(featureLayer, screenX, screenY, tolerance, returnPopupsOnly); From the line above in the sample code, I can see we can associate only one layer with popup. However our requirement is to show multiple layer information in single popups. For example we have multiple point features belonging to different feature layers in the sample below: We would like to have all the intersected layers info with respected to point clicked in one popup window like following: The screen shot above is from webmap but it is a good sample to show how we would like to toggle through all the features with help of 1 and 2 in the image above Any suggestions would be helpful! Thank you.
... View more
10-22-2020
01:40 PM
|
0
|
3
|
2220
|
|
POST
|
Hi team this white screen issue is related to the previous thread: ArcGIS AppStudio Cloud Make Build for IOS and Android gives white screen We are using QuickReport template On commenting the onComposeError or changing onCompseError to onErrorChanged tha apps are working fine on Android and IPhone however the issue still persists on IPad Following is the configuration of our testing device: We are using the latest version of AppStudio, we are building the apps using CloudMake Any suggestions would be helpful. Thank you
... View more
10-09-2020
05:39 AM
|
0
|
1
|
807
|
|
POST
|
Thanks informing Erwin Cloud make now is working fine.
... View more
10-01-2020
12:28 AM
|
0
|
0
|
2141
|
|
POST
|
Hi Erwin, we are using QuickReporter 4.3 We comented the code in widget/Icon.qml @ It failed without error:
... View more
09-30-2020
10:47 AM
|
0
|
4
|
2141
|
|
POST
|
Hi Team, we have build an using AppStudio for ArcGIS (Desktop) quick reporter template. When we try using cloud build we are getting the following erorr: Any suggestions would be helpful
... View more
09-30-2020
09:32 AM
|
0
|
20
|
3961
|
|
POST
|
Hi Erwin, thanks for getting back to us, we figured out the same solution. It was really difficult to identify this issue since we ran on AppStudio Desktop (Player) the error did not popup. Only we started bulding the app from scratch the error was observed. We got this issue on 4.2 all of our existing apps are failing to launch. We are in process in applying edits to the code. Thank you for your time!
... View more
09-25-2020
07:31 PM
|
0
|
4
|
2187
|
|
POST
|
Hi Team, We have build an app using ArcGIS AppStudio (Windows) Quick Reporter Template. The app works fine on Appstudio Player, however when we build the app for IOS and Android native and run the .ipa or the .apk on IPhone or Android Phone we are getting blank screen. Any suggestions would be helpful.
... View more
09-24-2020
12:02 AM
|
0
|
6
|
2328
|
|
POST
|
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 http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Raster Layer with Pixel Filter</title> <link rel="stylesheet" href="https://js.arcgis.com/3.33/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.33/esri/css/esri.css"> <style> html, body, #map { width: 100%; height: 100%; margin: 0; padding: 0; } #status { background-color: #000; color: #FFF; border: solid 1px #FFF; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding: 3px; position: absolute; right: 10px; bottom: 10px; z-index: 99; } .shadow { -moz-border-radius: 6px; -webkit-border-radius: 6px; border-radius: 6px; background-color: #FFF; padding: 8px; } #footer { height: 90px; width: 50%; margin: 0 auto; padding: 15px; position: absolute; bottom: 20px; left: 20px; z-index: 30; } /* make all dijit buttons the same width */ .dijitButton .dijitButtonNode, #drawingWrapper, #printButton { width: 160px; } </style> <script type="text/javascript" src="https://js.arcgis.com/3.33/"></script> <script> require([ "esri/map", "esri/domUtils", // "dojo/parser", // "dojo/dom", // "dojo/dom-construct", "dojo/on", "dijit/registry", "esri/layers/RasterLayer", "esri/geometry/Extent", "esri/SpatialReference", "dijit/form/HorizontalSlider", "dojox/form/RangeSlider", "dijit/form/HorizontalRule", "dijit/form/HorizontalRuleLabels", "esri/layers/ImageServiceParameters", "esri/layers/MosaicRule", "esri/layers/RasterFunction", "esri/layers/DimensionalDefinition", "esri/toolbars/draw", "esri/dijit/Print", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/LayerDrawingOptions", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/graphic", "esri/renderers/ClassBreaksRenderer", "esri/config", "dojo/_base/array", "esri/Color", "dojo/parser", "dojo/query", "dojo/dom", "dojo/dom-construct", "dijit/form/CheckBox", "dijit/form/Button", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( Map, domUtils, on, registry, RasterLayer, Extent, SpatialReference, HorizontalSlider, RangeSlider, HorizontalRule, HorizontalRuleLabels, ImageServiceParameters, MosaicRule, RasterFunction, DimensionalDefinition, Draw, Print, ArcGISTiledMapServiceLayer, ArcGISDynamicMapServiceLayer, LayerDrawingOptions, SimpleMarkerSymbol, SimpleLineSymbol, SimpleFillSymbol, Graphic, ClassBreaksRenderer, esriConfig, arrayUtils, Color, parser, query, dom, domConstruct, CheckBox, Button ) { parser.parse(); var currentMin, currentMax; var rasterUrl = "https://sampleserver6.arcgisonline.com/arcgis/rest/services/ScientificData/SeaTemperature/ImageServer"; //set up slider var slider = registry.byId("pixelSlider"); var initExtent = new Extent(-130, -68, 150, 68, new SpatialReference(4326)); var map = new Map("map", { extent: initExtent, basemap: "gray" }); var printer = new Print({ map: map, url: "UPDATE_YOUR_PRINTING_SERVICE_URL" }, dom.byId("printButton")); printer.startup(); var sliderMin = -3; //min sea surface temp of -3 deg C var sliderMax = 37; //max sea surface temp of 37 deg C slider.minimum = sliderMin; slider.maximum = sliderMax; slider.value = [sliderMin, sliderMax]; // hook up slider events slider.on("mouseup", setPixelFilter); slider.on("change", setPixelFilter); //set up slider labels var sliderLabels = new HorizontalRuleLabels({ container: "bottomDecoration", labels: [sliderMin.toFixed(0).toString(), sliderMax.toFixed(0).toString()] }, domConstruct.create("div", {}, dom.byId("pixelLabels"))); //set up blue to red color ramp inside array var colorRamp = []; for (var i = 0; i < 256; i++) { colorRamp.push( [i, 30, 255 - i] ); } /*************************************************************** * This image service has multiple dimensions including depth and time. * If you are only interested in viewing temperatures at a specific time * and at a specific depth, use dimensional definisions **************************************************************/ var dim = []; //define dimensional definition as array //DEPTH: show only temperatures at sea surface dim.push(new DimensionalDefinition({ variableName: "water_temp", dimensionName: "StdZ", //water depth values: [0], //sea surface or 0ft isSlice: true })); //TIME: only show temperatures for the week of April 7, 2014 dim.push(new DimensionalDefinition({ "variableName": "water_temp", "dimensionName": "StdTime", //time temp was recorded "values": [1396828800000], //Week of April 7, 2014 "isSlice": true })); var defaultMosaic = {}; defaultMosaic.multidimensionalDefinition = dim; var params = new ImageServiceParameters(); params.mosaicRule = new MosaicRule(defaultMosaic); //the service has a default "Stretched" function and a "None" function, we want original data "None" var rf = new RasterFunction(); rf.functionName = "None"; params.renderingRule = rf; //Define the raster layer and add to map var rasterLayer = new RasterLayer(rasterUrl, { opacity: 1, pixelFilter: maskPixels, imageServiceParameters: params }); map.addLayer(rasterLayer); rasterLayer.on("update-start", function () { domUtils.show(dom.byId("status")); }); rasterLayer.on("update-end", function () { domUtils.hide(dom.byId("status")); }); // The pixel filter function maskPixels(pixelData) { if (pixelData == null || pixelData.pixelBlock == null) { return; } if (currentMin === undefined || currentMax === undefined) { setPixelFilter(); } var pixelBlock = pixelData.pixelBlock; var pixels = pixelBlock.pixels; var mask = pixelBlock.mask; var numPixels = pixelBlock.width * pixelBlock.height; var minVal = rasterLayer.bands[0].min; var maxVal = rasterLayer.bands[0].max; var factor = 255.0 / (maxVal - minVal); if (pixels == null) { return; } var p1 = pixels[0]; var pr = new Uint8Array(p1.length); //set up array for red values var pg = new Uint8Array(p1.length); //set up array for green values var pb = new Uint8Array(p1.length); //set up array for blue values if (mask == null) { mask = new Uint8Array(p1.length); //mask = new Uint8Array(p1.length); pixelBlock.mask = mask; } var p = []; //if pixel value lies between slider min and max, display it (set value to 1) //if not, don't display it (set the value to 0) for (var i = 0; i < numPixels; i++) { mask = (p1 >= Math.floor(currentMin) && p1 <= Math.floor(currentMax)) ? 1 : 0; //apply color based on temperature value of each pixel if (mask) { p = Math.floor((p1 - minVal) * factor); pr = colorRamp[p][0]; //red pg = colorRamp[p][1]; //green pb = colorRamp[p][2]; //blue } } pixelData.pixelBlock.pixels = [pr, pg, pb]; //assign rgb values to each pixel pixelData.pixelBlock.statistics = null; pixelData.pixelBlock.pixelType = "U8"; } //Redraw raster layer and dynamically change text on slider move function setPixelFilter() { var val = slider.get("value"); currentMin = Math.floor(val[0]); currentMax = Math.floor(val[1]); if (val) { dom.byId("pixelVal").innerHTML = "Currently displaying locations with sea temperatures from " + currentMin + "°C to " + currentMax + "°C"; } else { dom.byId("pixelVal").innerHTML = "Currently displaying all temperatures."; } rasterLayer.redraw(); } }); </script> </head> <body class="claro"> <div id="map" > <div id="printButton"></div> <div id="status"> Loading... </div> <div id="footer" class="shadow"> <span style='font-weight: 600; font-size: 130%;' id='elevSpan'>Sea Surface Temperature (°C) on April 7, 2014</span><br><br> <div id='pixelVal'></div> <div id="pixelSlider" data-dojo-type="dojox/form/HorizontalRangeSlider" data-dojo-props="showButtons:'false', intermediateChanges:'false', slideDuration:'0'"> <div data-dojo-type="dijit/form/HorizontalRule"></div> <div id="pixelLabels"></div> </div> </div> </div> </body> </html> Following is how the app looks like: The printing result looks like following: Notice the threshold applied for masking values in the web application are not acknowledged by the print service. Any suggestions would be really helpful. Thank you.
... View more
09-15-2020
03:21 AM
|
0
|
0
|
865
|
|
POST
|
You can avoid login prompt with ESRI proxy and add token to proxy config: GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP. WAB proxy configuration: https://community.esri.com/groups/technical-support/blog/2015/10/28/setting-up-a-proxy-with-web-appbuilder-for-arcgis-developer-edition
... View more
06-03-2020
05:19 AM
|
0
|
0
|
2196
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-27-2020 05:50 AM | |
| 1 | 03-24-2020 08:43 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-10-2025
12:34 AM
|