POST
|
@UndralBatsukh Exactly. I am getting a blank basemap because the basemap is not getting reprojected
... View more
05-08-2023
05:40 AM
|
0
|
0
|
647
|
POST
|
Hi @UndralBatsukh , Thanks for the response. I am trying to add a custom basemap to the map on map load. Below is the code I am using for same. baseLayer = new TileLayer({ url: baseMapService.MapServiceURL }); var myBasemap = new Basemap({ baseLayers: [baseLayer ], thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail', title: 'My custom basemap', id: 'my_custom_basemap' }); map.basemap = myBasemap But on map load the basemap is not loading.Its coming without a basemap. Thanks Aditya Kumar
... View more
05-04-2023
08:51 AM
|
0
|
0
|
680
|
POST
|
Hi, I am trying to add basemap with different projections to my map while map load. baseLayer = new TileLayer({ url: baseMapService.MapServiceURL }); var myBasemap = new Basemap({ baseLayers: [baseLayer ], thumbnailUrl: baseMapService.MapServiceURL + '/info/thumbnail', title: 'My custom basemap', id: 'my_custom_basemap' }); map.basemap = myBasemap The above code works fine when the base map projection is similar to the projection of base map gallery. But does not work with different projection. Any idea. Thanks Aditya Kumar
... View more
05-04-2023
06:01 AM
|
0
|
6
|
717
|
POST
|
Hi, I am using CIM symbol for my maps. But I am not able to dynamically change the size of the symbol. I tried to clone the symbol using clone(). https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-CIMSymbol.html let symLyr = myobject[0].symbol.clone(); But the above code is giving me undefined as output. Any idea how to clone the CIM symbol? Thnaks
... View more
04-14-2023
06:16 AM
|
0
|
2
|
288
|
POST
|
@BjornSvensson Thanks for writing. Yes, its a geocoding service and it's properly sitting on the map. The problem is coming while I am trying to do a cluster. During that time it's taking the x,y received from the geocoding service and moves the cluster near the equator.
... View more
03-29-2023
05:12 AM
|
0
|
0
|
766
|
POST
|
Hi, I have a geocoding service which is in Spatial Reference: 102642 (2226) VCSWkid(115702) LatestVCSWkid(115702). On doing the search, I get the data as Point: X: 6482724.46755938 Y: 1722670.7755127912 But when I try to plot it on the map it goes to some random location and at the same time if I try xyToLngLat(x, y) it's again moving to some random location. Any idea how to resolve it. I am using ArcGIS JavaScript 4. Thanks Aditya Kumar
... View more
03-23-2023
09:52 AM
|
0
|
2
|
828
|
POST
|
@UndralBatsukh Resolved at my end. Below are the code. Appreciate your help. const toolTipSpan = document.createElement("toolTipSpan"); toolTipSpan.appendChild(document.createTextNode('hi')); document.getElementById("viewDiv").appendChild(toolTipSpan); view.on("pointer-move", (event) => { toolTipSpan.style.position="absolute"; toolTipSpan.style.backgroundColor = "white"; toolTipSpan.style.borderRadius = "25px"; toolTipSpan.style.padding = "10px"; toolTipSpan.style.left = event.x + "px"; toolTipSpan.style.top = event.y + "px"; });
... View more
03-04-2023
06:35 AM
|
0
|
0
|
450
|
POST
|
Thanks for the response. I did something like this which is throwing my div outside map. mapView.on('pointer-move', (evt) => { //console.log(evt.x, evt.y); var element = document.createElement("div"); element.appendChild(document.createTextNode('hi')); document.getElementById('map').appendChild(element); document.getElementById("element").style.opacity= 0; document.getElementById("element").style.position="absolute"; document.getElementById("element").style.color="white"; document.getElementById("element").style.left = evt.x + 'px'; document.getElementById("element").style.top =evt.y + 'px'; });
... View more
03-03-2023
05:50 PM
|
0
|
1
|
465
|
POST
|
HI , I am working with ArcGIS JavaScript 4 and using Draw widget to draw line/polygon and rectangle. As compared to ArcGIS 3, the tooltip option is not available in the current version. Any idea how to achieve that? I was able to get the x,y of the cursor using point-move. But not sure how to bring a div on the evt.x,evt.y View.on('pointer-move', (evt) => { console.log(evt.x, evt.y); Thanks Aditya
... View more
03-03-2023
08:54 AM
|
0
|
3
|
498
|
POST
|
HI, I am trying to draw a line/point/polygon on the map. But once the user start the drawing I am planning to add a tooltip to the map like below. Is there a way we can achieve the same in ArcGIS Javascript 4?
... View more
02-28-2023
09:23 AM
|
0
|
0
|
150
|
POST
|
@Lerman i checked it and found there was problem with the svg file. The color were turning into black. As suggested by you I did the changes in the symbol builder and now it's workitas expected. Thanks Aditya kumar
... View more
02-24-2023
08:33 AM
|
0
|
0
|
787
|
POST
|
@Lerman Thanks for the demo link. This has really helped me and now I am able to print the marker. BUt I have some more picture marker and I m trying to convert them into CIM Symbol. For this I am converting the png to svg and then uploading this in the CIM builder. After that I am getting a JSON but this is bringing a black dot marker on my map. The actual color or design is not coming. Any idea where I am doing mistake?
... View more
02-23-2023
09:21 AM
|
0
|
2
|
803
|
POST
|
@LefterisKoumis Thanks for writing. I just cross-checked and found the url is behaving as expected. Even when I pass the complete url as you wrote, its showing on the map but not coming on the print.
... View more
02-21-2023
09:49 AM
|
0
|
2
|
221
|
POST
|
Hi @Lerman , Thanks for the suggestion. I tried with CIMSymbol but that also didnt helped. For the above layer I changed it to Simple marker and it does worked as expected. But I do have another icons which are not possible through Simple marker. Thanks Aditya Kumar
... View more
02-21-2023
02:46 AM
|
0
|
4
|
850
|
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
|