POST
|
This is our solution: server must response with "vary: Origin". Then "Origin" and "access-control-allow-origin" matches. As result there is no CORS problem.
... View more
10-25-2019
01:07 AM
|
0
|
0
|
732
|
POST
|
Hi, I started with vector tiles! Vectors are fantastic, but I have got a problem with caching. I develop on http://locatlhost:3000, test server is https://*******getaccess.no/cpt Problem: I get a CORS error since both locations share vector caching. If I open localhost with cleaned cache, everything works perfect. Then I open test server, and map is gone. I get a CORS error (see image). If I zoom in on test-server the map will come up, but just on arеas which was not cached on when I navigated on localhost, and vice versa. I use 4.13 js API.
... View more
10-22-2019
06:01 AM
|
0
|
1
|
799
|
POST
|
Hi Noah, Thank you for the answer! May be it can be taken to consideration? I would suggest to add "suggestionDelay" in milliseconds. Default can be 0. It will significant reduce number of requests while users typing.
... View more
10-17-2019
01:44 AM
|
0
|
1
|
577
|
POST
|
Hi, I use Search Widget in JS 4.13. When I type in the search field, the search call API at once. I would like to have some timeout after when last symbol was typed in. I cannot find this property here Search | ArcGIS API for JavaScript 4.13 It is possible to set such timeout? How?
... View more
10-16-2019
06:20 AM
|
0
|
3
|
664
|
POST
|
Thank you for the clarification, Matt! Then I would not be disappointed when 4.13 would be released. Good luck with developing. We really need this feature!
... View more
08-23-2019
12:11 AM
|
0
|
0
|
1989
|
POST
|
Thanks, Ben. I saw it long time ago. But I would like to have this features supported by Esri.
... View more
08-23-2019
12:08 AM
|
0
|
0
|
1989
|
POST
|
I'd like to hold! I mean at clustering is the BASIC map functionality requested by many customers.I just have to say to them "it is coming". But when I see that new 4.12 version has "water rendering" but not "point clustering" I become quite dissapointed. Why Esri? Make the basic first, prioritize more important things, please!
... View more
08-22-2019
06:31 AM
|
0
|
1
|
1989
|
POST
|
Hi, I have been waiting for point clustering in JS API 4.x for last 2 years. I used to say to my customers that it is comming soon as it is claimed on functionality matrix Functionality matrix | ArcGIS API for JavaScript 4.12 . I would very appriciate if somebody from Esri could give me a signal when it comes. Thanks!
... View more
08-22-2019
03:44 AM
|
1
|
24
|
5288
|
POST
|
Hi, After update form 4.11 to 4.12 posting of data stopped to work. export const postActivityLog = (activityDTO: ActivityLogDTO): Promise<any> => { return new Promise((resolve, reject) => { esriRequest(`${activityAPI}/activityLog`, { method: 'post', responseType: 'json', query: JSON.stringify(activityDTO), }).then((result: any) => { resolve(result.data); }).catch(error => { reject(error); }); }); }; This code worked correct in 4.11, see image. With 4.12 I get: Status Code: 415 Unsupported Media Type Content-Type: application/problem+json; charset=utf-8 Form data: 0: { 1: " 2: a 3: c 4: t 5: i 6: v 7: i 8: t 9: y 10: I 11: d and so on... See image with Network log.
... View more
07-16-2019
03:16 AM
|
0
|
1
|
789
|
POST
|
Cool, I wish it was a bug, it could make life easier for many. Thanks you reported it. Give update here if it is fixed.
... View more
03-19-2019
02:05 AM
|
0
|
0
|
994
|
POST
|
Hi Zorba, I am not sure that it is a bug, I think it is just the way it works like. But let me know if you have any news around this topic. I do not have any experience with webmaps, so may be it can be a solution.
... View more
03-18-2019
04:58 AM
|
1
|
2
|
994
|
POST
|
Hi, I just want to describe how I overridden the esri's type definition. 1. Create a folder typings/arcgis-js-api 2. Copy type definition file from node_modules/@types/arcgis-js-api/index.d.ts to the new folder (typings/arcgis-js-api) 3. Make changes in the type definitions. 4. Add in tsconfig.json: "compilerOptions": { ... "typeRoots": [ "./node_modules/@types", "./typings/", ] } 5. Restart your project "npm start" Good luck!!!
... View more
03-14-2019
04:04 AM
|
0
|
0
|
538
|
POST
|
Hi Zorba, I found a work-around for this case. I made an illustration with description which describes the problem and solution. The example code: // Click event på kartet mapView.on('click', event => { mapView.hitTest(event) .then(response => { // Feature layer you are interested in var companyFeatureLayer: __esri.FeatureLayer; // Checks if click was on the layer var graphicCompany = response.results.filter(result => { return result.graphic.layer === companyFeatureLayer; }); // Finds clicked graphics let clickedGraphic: any = null; if (graphicCompany[0]) { clickedGraphic = graphicBedrift[0].graphic; } // Builds a polygon around x, y which the top graphics placed on // All companies which are inside this polygon are going to show up in the popup var x = clickedGraphic.geometry.x; var y = clickedGraphic.geometry.y; // Defines how big offset of this polygon var dx = 1; // meters offset x var dy = 1; // meters offset y var polygon = new Polygon({ 'rings': [[ [x - dx, y - dy], [x - dx, y + dy], [x + dx, y + dy], [x + dx, y - dy], [x - dx, y - dy] ]], 'spatialReference': DefaultSpatialReference}); // Query for finding out which companies are inside the polygon var queryCompany = companyFeatureLayer.createQuery(); queryCompany.geometry = polygon; queryCompany.returnGeometry = true; // Features which will be shown in the popup var companyPopupFeatures: Array<__esri.Graphic> = []; // Turn off popup while we are looking for companies companyFeatureLayer.popupEnabled = false; companyFeatureLayer.queryFeatures(queryCompany).then(response => { // Collects found companies companyPopupFeatures = companyPopupFeatures.concat(responseBedrifter.features); // Enable popup again companyFeatureLayer.popupEnabled = true; // Wow!!! // Now you have all companies in the popup // 🙂 mapView.popup.open({ location: clickedGraphic.geometry, features: companyPopupFeatures }); }); } I hope it helps! Good luck!!!
... View more
03-14-2019
03:57 AM
|
2
|
4
|
994
|
POST
|
Hei Kristian, I can confirm that this issue is fixed in 4.11 Testing 4.11 right now. Thanks, for your support!
... View more
03-14-2019
01:58 AM
|
0
|
0
|
1545
|
POST
|
Hi, No I did not report the bug. May I ask how I can do it? Can I get the link of the bug report if it exists?
... View more
02-27-2019
01:01 AM
|
0
|
2
|
1545
|
Title | Kudos | Posted |
---|---|---|
1 | 08-22-2019 03:44 AM | |
1 | 03-18-2019 04:58 AM | |
2 | 03-14-2019 03:57 AM | |
1 | 02-27-2019 12:51 AM | |
1 | 01-07-2019 08:13 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|