|
POST
|
Your map has good height, and the widget can grow. If the map container is small, the widget doesn't have scrollbars. https://www.manateepao.com/parcel/?parid=1005600000
... View more
01-10-2022
07:46 AM
|
0
|
0
|
1182
|
|
POST
|
I have a Print widget inside an Expand widget. When viewing on a mobile device the vertical scrollbars are not available regardless of orientation. Is there a css workaround I can use? var printExpand = new Expand({ content: new Print({ view: view, printServiceUrl: printServiceUrl }), view: view, autoCollapse: true, expanded: false, expandTooltip: 'Print Map', group: "top-right", mode: "floating" });
... View more
01-07-2022
12:01 PM
|
0
|
2
|
1220
|
|
POST
|
I have the same missing font issue when starting a new measurement in JS 4.22, except I have an Internet connection and I am not specifying a font anywhere in my map code. I have not changed any of the measurement widget implementation since 4.12. It is odd to me that this shows as an error in the browser instead of a warning since the framework is using a fallback. I'm not familiar with loading font for esri JS. Is there a complete example somewhere?
... View more
01-06-2022
09:57 AM
|
0
|
1
|
2323
|
|
POST
|
I just updated to js api version 4.22. When starting a new measure using either DistanceMeasurement2D or AreaMeasurement2D widgets, I am getting a 404 for font sans-serif-regular. I do not specify font-family, but I believe we use this font to design layers in ArcGIS Pro. Measure widgets do work, however. Do we need to republish layers using a different font? GET https://static.arcgis.com/fonts/sans-serif-regular/0-255.pbf 404 (index):105 [esri.views.2d.engine.webgl.TextureManager] l {name: 'mapview-invalid-resource', details: undefined, message: "Couldn't find font sans-serif-regular. Falling back to Arial Unicode MS Regular"}
... View more
01-06-2022
09:09 AM
|
0
|
1
|
3384
|
|
POST
|
I just switched from 4.18 to 4.19 and discovered that both DistanceMeasurement2D & AreaMeasurement2D appear to be broken or changed. Is this a bug or was this method removed? The code example worked as far back as 4.7. Example (works in 4.18) let activeWidget = new AreaMeasurement2D({ view: view, unit: "square-us-feet" }); try { activeWidget.viewModel.newMeasurement(); } catch (error) { console.log(error); // TypeError: activeWidget.viewModel.newMeasurement is not a function } // including https://js.arcgis.com/4.19
... View more
06-15-2021
03:04 PM
|
1
|
2
|
1726
|
|
POST
|
I consume ImageServer tiles from a partner's ArcGIS. Sometimes their ArcGIS server goes down or the permissions change after they republish, and it may be an hour or so before they resolve this. The problem is that the public will see the ArcGIS authentication dialog anytime the map is accessed (see screenshot). Here I create the ImageryTileLayer tlay. var layerUrl = someArcGISUrl + "/" + year + "/AERIAL_" + year + (year > 2002 ? "_RGB" : "_BW") + "/ImageServer"; var tlay = new ImageryTileLayer({ url: layerUrl, title: year }); I don't want the authentication dialog to display. I have not found a way to detect or prevent it. It would be great to have a property that disables showing such dialogs. Here I check for any errors, but "layerview-create-error" will be hit after the authentication dialog is cancelled. tlay.when("layerview-create-error", function(event) { console.info(event); }); prompt
... View more
04-15-2021
07:33 AM
|
0
|
2
|
1781
|
|
POST
|
This sample shows you how to do that. https://developers.arcgis.com/javascript/latest/sample-code/view-disable-zoom/
... View more
04-13-2021
09:56 AM
|
0
|
0
|
4515
|
|
POST
|
Thank you, Rene! https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-TileLayer.html#loadError
... View more
04-06-2021
11:21 AM
|
0
|
0
|
3093
|
|
POST
|
I want to know if the basemap is the only map in the view when the entire view is done. - basemap--------Loaded - anothermap----Not loaded -- layers
... View more
02-12-2021
05:29 AM
|
0
|
0
|
3251
|
|
POST
|
I am loading two maps in a view. One map is the basemap "streets", and the other is from a 3rd party provider that is infrequently unavailable. How can I know if the "streets" basemap is the only map loaded in the view? Example const map = new Map({ basemap: "streets" }); const anothermap = new GroupLayer({ title: "Aerials", visible: true, visibilityMode: "exclusive", layers: tileServers }); map.add(anothermap); I only want to know if "anothermap" did not get loaded. I found this post by Robert S. but baseLayerViews is always 0. var view = new MapView({ map: map, [...] view.when(function () { // this is always 0 and it blows up // view.basemapView.baseLayerViews.getItemAt(0) watchUtils.whenFalse(view.basemapView.baseLayerViews.getItemAt(0), 'updating', (updating) => { if(view.stationary){ console.log('Done Updating'); } else { watchUtils.whenTrueOnce(view, "stationary", (still) => { console.log('Done Updating'); }); } }); [...]
... View more
02-11-2021
01:01 PM
|
0
|
3
|
3271
|
|
POST
|
Given the geometry query below, how would I enter the parts into the ArcGIS Utilities Geometry (GeometryServer) query shown in screenshot? ArcGIS GeometryServer query This is my json query {"geometry":{"spatialReference":{"latestWkid":3857,"wkid":102100},"rings":[[[-9187473.41276618,3188162.5654556816],[-9187434.9401002657,3188152.1212731851],[-9187437.0374417529,3188124.0742577673],[-9187478.3572086357,3188134.81423361],[-9187480.4803962763,3188136.4591659759],[-9187482.82138976,3188137.7757820026],[-9187485.32981364,3188138.7357496503],[-9187486.1791619044,3188139.3302621851],[-9187486.9202693515,3188140.0552431336],[-9187487.5333208945,3188140.8913085815],[-9187488.0019252859,3188141.8161045313],[-9187488.31355339,3188142.8049045876],[-9187488.4598731585,3188143.8312710673],[-9187488.4369724244,3188144.867761869],[-9187488.6253482066,3188149.8298659292],[-9187488.28674475,3188154.78398642],[-9187487.4249764085,3188159.674315393],[-9187486.0497509651,3188164.4457635083],[-9187484.1765602734,3188169.0445806137],[-9187473.41276618,3188162.5654556816]]]},"outFields":["OBJECTID","PARID","PAR_MAIL_LABEL1","PAR_MAIL_LABEL2","PAR_MAIL_LABEL3","PAR_MAIL_LABEL4","PAR_MAIL_LABEL5","PAR_MAIL_LABEL6"],"outSR":{"latestWkid":3857,"wkid":102100},"returnGeometry":true,"spatialRel":"esriSpatialRelIntersects"}
... View more
12-18-2020
11:57 AM
|
0
|
3
|
1488
|
|
POST
|
Ok, Robert. Thanks you. I think it's sort of working for me with your instructions. As you can see from the screenshot, the buffer distance is started from the selection. I have further work to do, but it's looking a lot better. Maybe not a best approach. I can probably improve the feature layer query. The part that got it working was to convert the clicked point to a map point and then query my feature layer to get the geometry. view.on("click", function (event) { promiseUtils.eachAlways([ queryMapLayerViewFeatures(view.toMap(event)) .then(function (featureSet) { featureSet.features.forEach(function (feature) { queryPoint = feature; }); }) ]); } function queryMapLayerViewFeatures(mappoint) { const query = mapLayerView.layer.createQuery(); query.geometry = mappoint; query.units = "feet"; query.distance = bufferSize; query.outFields = ["*"]; return mapLayerView.queryFeatures(query); } function updateBufferGraphic(buffer) { if (buffer > 0) { var bufferGeometry = geometryEngine.geodesicBuffer( queryPoint.geometry, buffer, "feet" ); if (bufferLayer.graphics.length === 0) { bufferLayer.add( new Graphic({ geometry: bufferGeometry, symbol: sketchViewModel.polygonSymbol }) ); } else { bufferLayer.graphics.getItemAt(0).geometry = bufferGeometry; } } else { bufferLayer.removeAll(); } }
... View more
10-14-2020
02:32 PM
|
0
|
0
|
2048
|
|
POST
|
I have the query on the featurelayer. The parcels get selected but it's that the buffer is starting it's distance from the location of the point inside the boundary of the parcel. const query = mapLayerView.createQuery(); // query featureLayer query.geometry = sketchGeometry; // the point where clicked query.distance = bufferSize; query.units = "feet"; query.outFields = ["OBJECTID"]; query.spatialRelationship = "intersects"; return mapLayerView.queryObjectIds(query).then(highlightParcels);
... View more
10-14-2020
12:49 PM
|
0
|
0
|
2048
|
|
POST
|
Thanks, Robert. I am running a query on the sketchViewModel "create" event. The button is a point type and is set on the button's click handler. Are you saying to just select the area using something IdentifyTask? I am using GeometryEngine. function geometryButtonsClickHandler(event) { const geometryType = event.target.value; // "point" clearGeometry(); sketchViewModel.create(geometryType, {mode: "click"}); } sketchViewModel.on("create", function (event) { if (event.state === "complete") { sketchGeometry = event.graphic.geometry; runQuery(); } }); event.graphic.geometry function updateBufferGraphic(buffer) { if (buffer > 0) { var bufferGeometry = geometryEngine.geodesicBuffer( sketchGeometry, buffer, "feet" ); if (bufferLayer.graphics.length === 0) { bufferLayer.add( new Graphic({ geometry: bufferGeometry, symbol: sketchViewModel.polygonSymbol }) ); } else { bufferLayer.graphics.getItemAt(0).geometry = bufferGeometry; } } else { bufferLayer.removeAll(); } }
... View more
10-14-2020
09:04 AM
|
0
|
3
|
2048
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-30-2024 01:32 PM | |
| 1 | 03-18-2024 08:18 AM | |
| 1 | 01-08-2024 07:24 AM | |
| 3 | 12-30-2022 11:36 AM | |
| 1 | 03-13-2023 07:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-12-2025
08:09 AM
|