POST
|
https://stackblitz.com/edit/angular-ivy-zharup?devtoolsheight=33&file=src/app/app.component.ts
... View more
02-08-2021
02:38 PM
|
0
|
0
|
1050
|
POST
|
https://angular-ivy-zharup.stackblitz.io Hi Andy, thank you for the quick response. Above is the stackblitz sample that reproduces the error: Angular 11, "@types/arcgis-js-api": "^4.18.0" and "esri-loader": "^3.0.0"
... View more
02-08-2021
02:34 PM
|
0
|
1
|
1050
|
POST
|
it turns out the issue is on the esri-loader v3.0.0. I ended up reinstalling js API "@types/arcgis-js-api": "^4.18.0", but downgraded the esri-loader to "esri-loader": "^2.15.0", and this seems to fix the issue
... View more
02-08-2021
10:20 AM
|
0
|
0
|
1065
|
POST
|
I recently upgraded my application from version 4.17 to 4.18 and came to realize that the LayerList widget still works but throws now the following error: "view: no layerview has been found for the layer" I tried to reproduce this error using the sample from ESRI https://developers.arcgis.com/javascript/latest/sample-code/widgets-layerlist/ and replace the map layers with my own layers: there was no error Then I recreated a sample app with angular and I was able to reproduce this error again. This error seems to happen in an Angular project using esri-loader and @types/arcgis-js-api I ended up reverting back my application to version 4.17
... View more
02-08-2021
09:33 AM
|
0
|
5
|
1121
|
POST
|
Does anyone ever had a chance to implement the esri-calcite-component template for their WebGIS application? I would like to use it to make the app consistent with the ArcGIS online Map Viewer BETA. here is the documentation for Calcite-components. I can't seem to make it run properly. Storybook Thanks
... View more
10-26-2020
12:08 PM
|
0
|
0
|
381
|
POST
|
This is good news! I was just about to drop this feature from the application since I do not have much time to rewrite this whole widget from scratch. Thank you Anne Fitz for adding this!! Really appreciated !
... View more
08-20-2020
11:08 AM
|
1
|
0
|
3883
|
POST
|
This may be a bug introduced at version 4.16? Adding a bookmark from the widget result to an error. You can reproduce this error by adding the bookmark widget on the view. make sure the view is tied to a Map instance and not a webMap.
... View more
07-21-2020
01:02 PM
|
0
|
5
|
4105
|
POST
|
Thank you Kelly, The "Add", and "Remove" event works great! I was able to capture those two events. then what about when the bookmark's name gets updated? I was looking for an event like "updated". I am wondering if I can watch for the property name change using watchUtils | ArcGIS API for JavaScript 4.14 ? Thank you
... View more
02-18-2020
11:42 AM
|
0
|
1
|
899
|
POST
|
I am trying to store bookmarks on the client local-storage but I can't seem to intercept the following events on the bookmark widget or on the BookmarkViewModel class [on Create, Update, Delete]. I would like to use the bookmark widget for its UI. Any idea? Bookmarks | ArcGIS API for JavaScript 4.14 BookmarksViewModel | ArcGIS API for JavaScript 4.14 Thanks
... View more
02-13-2020
01:47 PM
|
0
|
3
|
1022
|
POST
|
Hi David, thank you for looking into this. I forgot to mentioned I am using version 3.x, 3.30 to be specific and there is no "portalItem" property for Basemap.
... View more
11-22-2019
02:41 PM
|
0
|
1
|
699
|
POST
|
All, I have been having a hard time with this and I thought I ask the community. ESRI recently updated the community map and I really like to use it as a basemap in my application. There is no name for it in the API like others ('streets', 'topo', etc) and of course I could not find the rest end point for the service. So I tried to make use of the BasemapGallery which includes the Community map and here is the script I tried: // init the map require([ 'esri/map', 'esri/dijit/BasemapGallery', 'dojo/_base/array' ], (Map, BasemapGallery, array) => { const __map = new Map("map-view", { center: [-84.242458, 40.144803], zoom: 15, basemap: "topo-vector" // there is no name for the community map in the collection }); const _basemapGallery = new BasemapGallery({ showArcGISBasemaps: true, map: __map }, "basemapGalleryDiv"); _basemapGallery.on("load", evt => { console.log(evt.target.basemaps); array.map(evt.target.basemaps, b =>{ if(b.title === "Community Map"){ _basemapGallery.select(b.id); // This only selects the map (will be added on top of the current basemap 'topo-vector') but not setting it as basemap } }); }); }); Any suggestions please?
... View more
11-22-2019
08:42 AM
|
0
|
3
|
795
|
POST
|
I took a deep look into that widget, I didn't find the map projection handler for live display. I had the same situation couple weeks ago where I wondered if I should recreate the whole widget so it can handle projected map and still have the same live display experience. hopefully ESRI will take a look again at this widget for next releases.
... View more
04-04-2018
09:54 AM
|
1
|
0
|
215
|
POST
|
I thought I share some code: //******************************************* */ let view = new MapView({ map: webmap, container:"mapview" }); view.then(e=>{ let parcels = e.map.allLayers.find(layer => {return layer.title ==="Parcels"}); const query = new Query(); query.outFields = ["*"]; query.returnGeometry = true; query.where ="owner='testing'"; parcels.queryFeatures(query).then(res =>{ console.log(res); var parcelArray = res.features; parcelArray.forEach(parcel =>{ GetPrintImgUrl(parcel).then(res=>{ // display printed map list here on the page }) }) }) //Print method that returns the exported map url var GetPrintImgUrl = function(feature){ let _promise = new Promise((resolve, reject) =>{ view.graphics.removeAll(); var fillSymbol = { type: "simple-fill", style: "none", outline: { width: 2, color: [255, 255, 0, 1] } }; let _current_parcel = new Graphic(feature.geometry, fillSymbol); view.graphics.add(_current_parcel); //[1] zoom to the current parcel extent view.extent = feature.geometry.extent; view.zoom = 20; //[2] export this map var printTask = new PrintTask({ url: "https://.../ExportWebMap/GPServer/Export%20Web%20Map" }); var template = new PrintTemplate({ format: "jpg", exportOptions: { width:500, height:600 }, layout: "map-only", layoutOptions: { titleText: "Parcel 0025655452" } }); var params = new PrintParameters({ view: view, template: template }); printTask.execute(params).then(printResult=>{ // This printTask does not work result in Error: ["Error executing tool. Export Web Map Job ID: j40a9373610e84ac59f26ecc1eb1af0fe"] resolve(printResult); }); }); return _promise; }; }) //********************************************* */
... View more
04-04-2018
08:07 AM
|
0
|
0
|
369
|
POST
|
Hi Robert, it seems that when using a projected map, the measurements widget loses the live result update such as showing live length as you measure or live coordinates while moving the mouse around. See this example: ArcGIS API for JavaScript Sandbox
... View more
04-04-2018
07:06 AM
|
0
|
2
|
1469
|
POST
|
I'd like to query some parcels and loop through each one of them to export it out using Print Task. what would be the best approach ? (API 4.6)
... View more
04-04-2018
06:56 AM
|
0
|
1
|
528
|
Title | Kudos | Posted |
---|---|---|
2 | 06-27-2023 09:06 PM | |
1 | 12-17-2021 08:58 AM | |
3 | 12-17-2021 09:37 AM | |
1 | 05-03-2021 08:47 AM | |
1 | 09-01-2016 08:36 AM |
Online Status |
Offline
|
Date Last Visited |
06-28-2023
06:10 AM
|