POST
|
Hi, I am working with ArcGIS JS 4.x. I am trying to add custom basemap layer in Basemap gallery along with the default basemaps. this.basemapGallery = new BasemapGallery({ view: mapView, container: this.basemapGalleryDiv, source: { query: { title: "Custom Basemap", }, updateBasemapsCallback: (items) => { if (this.map && this.map.config && this.map.config.map && this.map.config.map.baseMapService) { baseMapservices = this.map.config.map.baseMapService; array.forEach(baseMapservices, lang.hitch(this, function (mapservice) { if (mapservice != null) { var customBasemapServiceUrl = mapservice.MapServiceURL; esriUtil.addProxyRule({ urlPrefix: customBasemapServiceUrl, proxyUrl: _globalGISUrl + "Proxy/proxy.ashx" }); // let text = customBasemapServiceUrl; let result = ((customBasemapServiceUrl.endsWith("json")) || (customBasemapServiceUrl.endsWith("VectorTileServer"))); if (result) { customBasemapLayer = new VectorTileLayer({ url: customBasemapServiceUrl }); } else { customBasemapLayer = new BasemapLayer({ url: customBasemapServiceUrl }); } this.customBasemap = new Basemap({ baseLayers: [ customBasemapLayer ], title: mapservice.MapServiceName, id: mapservice.MapServiceName, thumbnailUrl: customBasemapServiceUrl + '/info/thumbnail' // }); }); if (this.customBasemap) { items.push(this.customBasemap); } // this.customBasemaps.push(this.customBasemap); } })); } return items; } } }); This code works fine when I have the vector tile layer ending with .json. But when I try to add vector tile layer from arcgis Server I am not getting any basemap on the map. When I checked the error I found there is an extra ".pbf " after the tile url. Any idea why this is behaving tile this and how to fx it? Thanks Aditya Kumar
... View more
12-07-2023
08:52 AM
|
0
|
0
|
224
|
POST
|
@A_Wyn_Jones Thanks for the response. As suggested I have added it and its showing the result. But I am confused why the URL from ESRI is showing the same without putting ?JSON while I explicitly need to add JSON parameter? Thanks Aditya Kumar
... View more
11-07-2023
06:42 PM
|
0
|
1
|
352
|
POST
|
Hi , I have published Vector tiles map using ArcGIS Pro. The vector tile services has been found under hosted tab in ArcGIS Server rest url. But when I compare the vector tile with the basemap service of ArcGIS, the content is entirely different. For https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer I get the json details But in my local enterprise I get a different result. Thanks Aditya
... View more
11-07-2023
01:39 AM
|
0
|
3
|
445
|
POST
|
@EarlMedina When I create the geometry except these 2 all other fields are getting populated.
... View more
11-06-2023
10:19 PM
|
0
|
0
|
207
|
POST
|
HI, I want to publish feature service from ArcGIS pro to federated server. Whenever I do that I find 2 new attributes attached to the polygon feature even though its not a part of the data. Any idea how to remove it as it does not allow me to create any new geometry because the nullable property is marked as false. Any idea how to make this property as true? Thanks Aditya
... View more
09-14-2023
08:56 AM
|
0
|
3
|
395
|
POST
|
Hi, I have a feature layer which is published in ArcGIS Enterprise 10.9.1. I can edit the existing geometry and attributes but cannot create a new geometry. I get error for 2 attribute values. These 2 attributes are coming as empty and I cannot edit these values. Any idea why its behaving in this way?Below are some more details of layer properties. Thanks Aditya Kumar
... View more
08-23-2023
09:03 AM
|
0
|
0
|
195
|
POST
|
@JoelBennett I managed to resolve it from the server side. Earlier i was using the data from the sql server but now i created a geodatabase. Imported the layer inside it. Created a locator and assigned Auto into the performance tab under properties section. Published it and its working as expected. Thanks
... View more
08-10-2023
12:27 AM
|
0
|
0
|
337
|
POST
|
@JoelBennett Thnaks for the response. But I am confused why this happens only with custom geocoding services and not with World geocoding services. And the projection Engine has problem just at the first search.
... View more
08-08-2023
01:13 AM
|
0
|
2
|
358
|
POST
|
HI, I am using geocode services to geocode and zoom to the address. When I use world geocoding it works fine but when I use my custom geocoding it geocodes well but doesnt zoom to the first time. from second geocode it works as expected. I get the below error fist time. I am not sure if its a problem with custom geocode or any other issue is there. Has anyone faced similar issue? Thanks Aditya Kumar
... View more
08-04-2023
10:47 PM
|
0
|
4
|
448
|
POST
|
Hi, In arcgis Online we can upload Geojson after logging into ArcGIS Online. Can we do the same thing from JavaScript using any api i.e we click on a button and the data should be pushed in content of ArcGIS online? Thanks Aditya
... View more
07-09-2023
07:35 AM
|
0
|
1
|
263
|
POST
|
Hi, I have 2 extension with I was using with ARcGIS Server 10.8. But now I have upgraded my server to 10.9.1 and replaced ArcGIS Pro with ArcMap. Since 10.9.1 doesnto support Arcmap runtime do we need to change this as well because while publishing I am not getting this features in capability section. Is there a way to make it work? Thanks Aditya kumar
... View more
06-29-2023
06:29 AM
|
0
|
1
|
148
|
POST
|
Hi, I am facing a strange behavior with ArcGIS JavaScript 3.x. I am searching a polygon. The result is coming from the esri server and the maps gets zoomed to the extent of polygon but the polygon doesn't get highlighted. It gets highlighted only when I does a random click or drag the map. Any idea why this unknown condition is happening?
... View more
06-13-2023
10:47 AM
|
0
|
0
|
112
|
POST
|
Thanks for the response. But we are not uploading the widget into any running application. We first need to upload the widget to the application and then run it. Basically we have a different page where we configure the app and a different url which run based on the configs available .
... View more
05-17-2023
09:44 AM
|
0
|
0
|
185
|
POST
|
Hi, We have a webpage where the map is loading. As a user I want to upload a custom widget into the map. Any idea how to proceed on it? Thanks Aditya Kumar
... View more
05-16-2023
08:59 AM
|
0
|
2
|
228
|
POST
|
@UndralBatsukh I just managed to solve it by changing the mapview projection to basemap projection. if(view.spatialrefrence != basemap.spatialrefrence) { view.spatialrefrence = basemap.spatialrefrence; }
... View more
05-15-2023
08:07 AM
|
0
|
0
|
577
|
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
|