POST
|
Hello everyone, I would like to you know how write event on "change" combobox or type: "radio-buttons" in FieldElement? and how to set ExpressionInfo with Coded Values (domains). Example: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-featureform-async and I want: add 'valueExpression' to 'maintainFieldElement' so that when 'ownedByFieldElement' changes to ownedby = 2 [2:Other], it also automatically changes 'maintby' to maintby = 2 I don't know how to write an event in the combobox. I don't know how to write 'expression': const Expression_maintainFieldElement = new ExpressionInfo({ name: "for_maintby ", title: "for_Maintained-by", // returnType: "string" | "number" expression: ??? Coded Values Not Work }); Thank you for any reply, Zdeněk
... View more
02-05-2024
05:07 AM
|
0
|
0
|
145
|
POST
|
Hello, my solution: all ESRI Basemaps + myBasemaps const MyBasemap = new Basemap({ baseLayers: [ new MapImageLayer({ url: "https://xxxxxxxxxx/MapServer/", title: "My Title" }) ], title: "My Title", id: "MyID_BS", thumbnailUrl: "https://xxxxxxxx/basemap_LS.png" }); /* MapImageLayer/TileLayer - Depends on the scale (LODS) MyBasemap */ const basemaps = new BasemapGallery({ view, container: "basemaps-container", //source: MyBasemap //source: [MyBasemap, Basemap.fromId("topo-vector"), Basemap.fromId("hybrid")] }); basemaps.when(()=>{ setTimeout(() => { //basemaps.source.basemaps.add(MyBasemap); // Last position basemaps.source.basemaps.splice(0, 0, MyBasemap); // First position }, "2000"); // :-(( });
... View more
10-04-2023
02:40 AM
|
0
|
0
|
99
|
POST
|
... https://developers.arcgis.com/javascript/latest/es-modules/ At the top of each module's API Reference page is guidance on which import syntax to use: default or namespace. Most of the modules use a default import syntax as shown in the import WebMap Class example above. Other modules, such as those providing helper functions, use a namespace import similar to the import * as projection example. Depending on your stylistic preference, instead of a namespace import you can also use a named import to reference the exact method that you need.
... View more
08-15-2022
12:49 AM
|
0
|
0
|
1349
|
POST
|
Hello, yes, you are absolutely right. Thank you for your answer. Zdeněk Procner import * as rU from "esri/core/reactiveUtils";
... View more
08-14-2022
11:46 PM
|
0
|
0
|
1351
|
POST
|
Hi everybody, I can't use the method .watch (reactiveUtils.watch) and I do not know why. Classic JS ( with js api 4.20 ) and watchUtils.watch worked fine, but with JS ( TypeScript - js api 4.24) I have problem. And for completeness: npm list api-ts@1.0.0 D:\groupApp\appc +-- @types/arcgis-js-api@4.24.0 +-- npx@10.2.2 `-- typescript@4.7.4 tsconfig.json: ... "compilerOptions": { "lib": ["ES2015","ES2015.Promise", "DOM"], "module": "AMD", "sourceMap": true, "strict": true, "target": "ES5", "noImplicitAny": true, "suppressImplicitAnyIndexErrors":true, "esModuleInterop": true } ... I am attaching a piece of code from the file main.ts: main.ts: import ArcGISMap from "esri/Map"; import MapView from "esri/views/MapView"; import MIL from "esri/layers/MapImageLayer"; import rU from "esri/core/reactiveUtils"; ... ... const mapLay_1 = new MIL({ url:"https://..../MapServer", title:"XXXXXX" }) map.add(mapLay_1); ... view.when(() => { mapLay_1.when(() => { console.log("# info mapLay_1: ",mapLay_1) // I see, that is OK - layer is loaded rU.watch(() => mapLay_1.visible, (visible) => { console.log("??? reactiveUtils ??? >>>> ",mapLay_1.title, "visible:", mapLay_1.visible) }); }) }) //view.when( I have error in JS console: Using ArcGIS API for JavaScript 4.24 [Date: 20220706, Revision: 7fd01dbc] ... Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'watch') Thank you for your help Zdenek Procner
... View more
08-12-2022
02:33 AM
|
0
|
3
|
1412
|
POST
|
Hello Robert, You are right. app.mapView.constraints.lods = layer_for_LODs.tileInfo.lods It is interesting that layer "layer_for_DISPLAY" (TileLayer) only in empty Lods is behaving as MapImageLayer and it is rendered Zdenek
... View more
02-05-2018
03:58 AM
|
0
|
0
|
611
|
POST
|
hello, I have a question about Basemap - JS API 4. My TileLayer has LODs 0 - 19. The last three LODs are empty (on purpose). I create the Basemap and 1- The API v. 3 has a map of all LODs - I can also zoom into empty levels (0-19 LOD) 2 -The API v. 4.6 has a map of only non-empty levels (LOds) When I use it in Basemap properties referenceLayers,it does not work. I have it again (0-16 LOD) layer_for_DISPLAY = new TileLayer({ url: "http://xxxxx/MapServer", id: "myID_1", title: "myName_1" }); /*LODs 0 - 19, last three LODs are empty */ layer_for_LODs = new TileLayer({ url: "http://yyyyyy/MapServer", id: "myID_2", title: "myName_2" }); /*LODs 0 - 19, non empty LODs */ /* JS API 4 */ myBasemap = new Basemap({ baseLayers: [layer_for_DISPLAY], referenceLayers: [layer_for_LODs], title: "myNameBM", id: "myIDBM", thumbnailUrl: "" }); Is it wrong? The reason is that I after load (dynamic) MapImageLayer, which is displayed on all scale. Thank you, Zdenek Procner
... View more
02-01-2018
11:26 PM
|
0
|
2
|
885
|
Online Status |
Offline
|
Date Last Visited |
02-08-2024
02:43 PM
|