POST
|
@AnneFitz I updated the code with a basemap layer . this.basemapGallery = new BasemapGallery({ view: this.map.mapView, container: this.basemapGalleryDiv, source: { query: { title: "Custom Basemap", }, updateBasemapsCallback: (items) => { if (this.customBasemap) { items.push(this.customBasemap); } console.log(items); return items; } } }); And this works as expected. A new baselayer is being added to the basemap gallery but it works only on first click. If we choose any other basemap and when we comes back to our custom basemap, the basemap doesnt load again. Any idea why?
... View more
01-16-2023
09:36 AM
|
0
|
1
|
801
|
POST
|
@jcarlson you were right. I just checked the default basemap section in ArcGIS online and found the layers which are coming in ArcGIS Javascript Basemap Gallery are coming from the list available here.Do you have any ideas how can we change some of the layers from here?
... View more
01-16-2023
09:05 AM
|
0
|
1
|
554
|
POST
|
@jcarlson Thanks for response. I am using JavaScript 4 for this. Its not connected to ArcGIS Online.
... View more
01-11-2023
08:47 AM
|
0
|
3
|
580
|
POST
|
Hi, We have integrated Basemapgallery widget to our application. The basemap gallery works fine but we have multiple maps in the gallery and two Topographic maps. However, I find different descriptions for each Topographic, but the duplicate names confuse a lot. Any idea why its coming and how to change it? Thanks Aditya Kumar
... View more
01-11-2023
07:50 AM
|
0
|
5
|
619
|
POST
|
@KristianEkenes , Thanks for writing. I was able to solve it. The problem was with the source cluster points. All the points had x,y in a different projection. I had to use xyToLngLat (x, y) in order to solve it and now the clusters are getting plotted. Thanks Aditya Kumar
... View more
12-29-2022
08:34 PM
|
0
|
0
|
233
|
POST
|
I approached ESRI customer support and they told its possible. Once I have a sample code Iwill share in the forum soon
... View more
12-24-2022
06:13 AM
|
0
|
0
|
412
|
POST
|
HI, I am trying to create a cluster layer and plot it on map using simple marker but I am not able to plot this layer on map. No errors are being shows while running the application. Below is the code. Can someone help me if I am missing something. const clusterConfig = { type: "cluster", clusterRadius: "100px", // {cluster_count} is an aggregate field containing // the number of features comprised by the cluster popupTemplate: { title: "Cluster summary", content: "This cluster represents {cluster_count} earthquakes.", fieldInfos: [ { fieldName: "cluster_count", format: { places: 0, digitSeparator: true } } ] }, clusterMinSize: "24px", clusterMaxSize: "60px", labelingInfo: [ { deconflictionStrategy: "none", labelExpressionInfo: { expression: "Text($feature.cluster_count, '#,###')" }, symbol: { type: "text", color: "#004a5d", font: { weight: "bold", family: "Noto Sans", size: "12px" } }, labelPlacement: "center-center" } ] }; this.clusterLayer = new FeatureLayer({ supportsEditing: true, title: "clusters", objectIdField: "OBJECTID", id: "clusters", source: [this.clustPoints], geometryType: "point", spatialReference: { wkid: 4326 }, featureReduction: clusterConfig, renderer: { type: "simple", symbol: { type: "simple-marker", size: 4, color: "#fc3232", outline: { color: [50, 50, 50] } } } }); this.map.add(this.clusterLayer); this.showClusterLayer(); Thanks Aditya Kumar
... View more
12-21-2022
08:42 AM
|
0
|
2
|
259
|
POST
|
HI , I have a feature layer which has clustering data with it. To this layer I want to add picture marker symbol. This was working fine in Javaascript 3x but I want to do the same in 4x. this.clusterLayer = new FeatureLayer({ supportsEditing: true, supportsAdd: true, title: "clusters", objectIdField: "clusters", id: "clusters", source: [this.clustPoints], geometryType: "point" }); var picBaseUrl = _globalGISUrl + "images/"; var clustermarker = new PictureMarkerSymbol(picBaseUrl + "GreenPin1LargeB.png", 56, 56); var clustermarkermedium = new PictureMarkerSymbol(picBaseUrl + "BluePin1LargeB.png", 64, 64); var clustermarkerlarge = new PictureMarkerSymbol(picBaseUrl + "RedPin1LargeB.png", 72, 72); var pin = new PictureMarkerSymbol(picBaseUrl + "BluePin1LargeB.png", 48, 48); Any idea how to implement this? Thanks Aditya Kumar
... View more
12-20-2022
09:09 AM
|
0
|
3
|
456
|
POST
|
@PerryBeaumont Can you share me the email id? I can be reached at adityakumar529@gmail.com
... View more
10-27-2022
12:42 AM
|
0
|
0
|
409
|
POST
|
Hi, I have a ArcGIS Pro and a stand alone ArcGIS Server. I need to publish WMTS layer(Tiled layer ) to the ArcGIS Server. The server is not connected to any portal. Is there a way I can publish the WMTS layer ? Thanks Aditya Kumar
... View more
10-26-2022
09:54 AM
|
0
|
0
|
291
|
POST
|
Hi, Is there a way we can add our custom base map along with ESRI default base maps in the basemap gallery widget in arcgis JavaScript 4. In api 3 we had somthing like "showArcGISBasemaps = true" which used to fetch all the basemaps. Do we have something similar in version 4? Thanks Aditya Kumar
... View more
10-13-2022
10:37 AM
|
0
|
7
|
944
|
POST
|
Hi, I am using ArcGIS JavaScript 4 and I have added base map gallery widget to my application. I had my own container which I added to the gallery. But after adding the widget I am not able to select any layer inside the widget. I followed the ESRI example to add a widget and there also same problem exist. https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=widgets-expand Is this a problem from ESRI side? Has anyone else encountered this problem? Thanks Aditya Kumar
... View more
10-13-2022
05:31 AM
|
0
|
0
|
244
|
POST
|
Hi, I am using JavaScript APi 3.x for my maps. I want to automate the login process by programmatically pass username and password to the login popup. But am not sure how to check if the popup has emerged on the map? Any clue? Thanks Aditya Kumar
... View more
05-15-2022
09:43 AM
|
0
|
1
|
396
|
POST
|
Hi, We have an application in Arcgis javascript 3.x. We want to use 4.x JavaScript API now. Is there any tool available for transformation from 3.x to 4.x or we need to rewrite entire code to transform the application? Is there any resource available where we can find out the difference between the 2 API or the changes we need to do in our code to make it run with minimal efforts? Thanks Aditya Kumar
... View more
04-19-2022
08:09 PM
|
0
|
1
|
1202
|
Title | Kudos | Posted |
---|---|---|
1 | 10-07-2021 04:11 AM | |
2 | 08-19-2020 06:11 AM | |
1 | 10-25-2017 05:43 AM | |
1 | 11-18-2015 11:14 PM |
Online Status |
Offline
|
Date Last Visited |
12-08-2023
12:01 AM
|