POST
|
@Lerman Thanks for the reply. I just checked the logs of ArcGIS Server and could not find anything related to print. In case the Server is not able to access the image is there a way how to fix it.
... View more
02-19-2023
10:19 PM
|
0
|
6
|
870
|
POST
|
Hi , I have defined a picture marker which is properly coming on the map. stopSymbol = { type: "picture-marker", url: _globalGISUrl + "Images/marker/inspection-map-markers-no-status.png", width: "22px", height: "22px" }; But when I try to take a print of the picture marker is not available in the print pdf. I am working with JavaScript 4. At some discussion I saw a similar problem where it was told to check if the picture marker is accessible to the print but I am not sure how to check that. Thanks Aditya Kumar
... View more
02-17-2023
07:59 AM
|
0
|
12
|
1070
|
POST
|
I managed to fix it by changing routeLayer.add(stop); to mapView.graphics.add(stop); after that the route layer is not coming on top of route stop.
... View more
02-17-2023
07:54 AM
|
0
|
0
|
367
|
POST
|
Hi, I was using route sample of ArcGIS JavaScript 4.x https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=route In this example, we can see the route layer with route stops but when we zoom out the route layer overlaps on the route stop. Is there a way we can stop this overlap, or we can hide the route layer behind the route stop? Thanks Aditya Kumar
... View more
02-16-2023
09:46 AM
|
0
|
1
|
397
|
POST
|
this.customBasemap = new Basemap({ baseLayers: [ new TileLayer({ url: customBasemapServiceUrl, title: mapservice.MapServiceName }) ], title: mapservice.MapServiceName, id: mapservice.MapServiceName, thumbnailUrl: customBasemapServiceUrl + '/info/thumbnail' });
... View more
02-02-2023
09:22 PM
|
0
|
0
|
1252
|
POST
|
Hi , I am trying to plot the cluster based on the zoom levels. But this is done while changing the map extent. reactiveUtils.when( () => this.map.mapView.stationary === true, () => { if (this.map.mapView.extent) { this.myfunction(); } } ); The event is working on the change extent but on calling my function I am getting a different error. Uncaught (in promise) l {name: 'AbortError', details: undefined, message: 'Aborted'} Any idea why this error is appearing? Thanks Aditya kumar
... View more
01-30-2023
04:16 AM
|
0
|
1
|
341
|
POST
|
@KristianEkenes I found the solution. let renderer = new ClassBreaksRenderer({ field: "cluster_count" }); renderer.addClassBreakInfo({ minValue: 1, maxValue: 1, symbol: { type: "picture-marker", // autocasts as new PictureMarkerSymbol() url: "https://static.arcgis.com/images/Symbols/Shapes/BlueStarLargeB.png", height: "48px", width: "48px" } });
... View more
01-30-2023
04:10 AM
|
0
|
0
|
363
|
POST
|
@JoelBennett no not on extent change but on scale change Or a change in zoom level.
... View more
01-27-2023
09:44 AM
|
0
|
0
|
533
|
POST
|
Hi @JoelBennett , @Noah-Sager Thanks for the response. I managed to do it in a different way. map.View.watch("zoom", (evt) => { if (Number.isInteger(evt)) { this.myfunction(); } }); Its working for now but this doesnt work when we work with custom base maps.I am not sure why it only works with default basemap gallery. Thanks Aditya Kumar
... View more
01-27-2023
08:52 AM
|
0
|
2
|
545
|
POST
|
Hi , I was working on Arcgis Javascript 3 with the below code. on(this.map, "extent-change", lang.hitch(this, this.myfunction)); The above line called myfunction during load of the map .But now I am working with ArcGIS JavaScript 4. Any idea how to replicate the same in version 4?
... View more
01-23-2023
10:18 AM
|
0
|
5
|
596
|
POST
|
@AnneFitz There was a problem with defining the custom basemap. I rectified it and its working fine. Your code was perfect.
... View more
01-19-2023
12:32 AM
|
0
|
0
|
709
|
POST
|
Hi @syamalaNarem , I am facing a similar issue where I can see the map in the basemap gallery but on click nothing happens. Did you managed to solve it?
... View more
01-19-2023
12:21 AM
|
0
|
1
|
1274
|
POST
|
@AnneFitz <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title> BasemapGallery widget | Sample | ArcGIS Maps SDK for JavaScript 4.25 </title> <link rel="stylesheet" href="https://js.arcgis.com/4.25/esri/themes/light/main.css" /> <style> html, body, #viewDiv { padding: 0; margin: 0; height: 100%; width: 100%; } </style> <script src="https://js.arcgis.com/4.25/"></script> <script> require([ "esri/Map", "esri/views/SceneView", "esri/widgets/BasemapGallery", "esri/Basemap", "esri/widgets/BasemapLayerList" ], (Map, SceneView, BasemapGallery, Basemap, BasemapLayer) => { const map = new Map({ basemap: "gray-vector" }); const view = new SceneView({ container: "viewDiv", map: map, center: [139.68, 35.68], zoom: 3 }); customBasemapLayer = new BasemapLayer("http://gisbasemap.ecan.govt.nz/arcgis/rest/services/SimpleBasemap/MapServer"); customBasemap = new Basemap({ layers: [customBasemapLayer], id: "test", title:"test", thumbnailUrl: "http://gisbasemap.ecan.govt.nz/arcgis/rest/services/SimpleBasemap/MapServer/info/thumbnail" }); // const basemapGallery = new BasemapGallery({ // view: view // }); const basemapGallery = new BasemapGallery({ view: view, source: { query: { title: "Custom Basemap", }, updateBasemapsCallback: (items) => { if (this.customBasemap) { items.push(this.customBasemap); } console.log(items); return items; // return items; } } }); // Add the widget to the top-right corner of the view view.ui.add(basemapGallery, { position: "top-right" }); }); </script> </head> <body> <div id="viewDiv"></div> </body> </html> Hope this will help
... View more
01-17-2023
09:24 AM
|
0
|
0
|
725
|
POST
|
@AnneFitz I am sorry I wont be able to help on that but if you want I can share a video no how its behaving. While clicking on the custom basemap second time there are no error in the console and there is no network traffic as well to hit the custom basemap url.
... View more
01-17-2023
09:02 AM
|
0
|
0
|
729
|
POST
|
Hi, I have added a custom basemap to the basemap gallery. I am using Arcgis JavaScript 4 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; // return items; } } }); I can see the basemap gallery with custom basemap.but it works only on first click. When I go to any other basemap and comes back to the custom basemap, the basemap does not load. Any idea why its not working as expected? Thanks Aditya Kumar
... View more
01-17-2023
08:01 AM
|
0
|
1
|
300
|
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
|