POST
|
Not sure what you mean by "on top of the buildings". Do you mean that you want to drape the map image layer on the 3D buildings (so that the buildings display the map image layer as a texture on their walls/rooftops)? If that's the case, then it's not possible. I also doubt that it would look very interesting, displaying the tiles on vertical walls would probably create some funky effects. Generally, tiled/imagery layers are "draped" on the ground/elevation of the scene. 3D objects then have a 3D geometry and are placed relative to the ground depending on their elevation mode. On the web you can only have one elevation surface. Feel free to describe a bit more your final goal, maybe we can find some way to achieve it differently.
... View more
02-01-2024
02:15 AM
|
0
|
1
|
468
|
POST
|
You'll also need to remove the docking button: popup: {
dockOptions: {
buttonEnabled: false
},
visibleElements: {
closeButton: false,
heading: false,
actionBar: true,
collapseButton: false
}
} See a sample here: https://codepen.io/ralucanicola/pen/RwdMbBR?editors=100
... View more
01-31-2024
09:35 AM
|
0
|
5
|
872
|
POST
|
I was talking to the developer and the bad news is that this is a bug and we need workarounds like the `setInterval` method you used. The good news is that there is a ticket for this, so it will be fixed in the next releases. From what I also tested the popup rendering depends on requests it needs to make on initialization. So once we render the popup once and it gets all the resources it needs, the next time rendering is fast and setting the focus works well. So another hack I thought of is to open an empty popup right when you load the application, make it invisible and when the user actually opens a popup, then it already has all the resources and it can set the focus on the elements. I made an example here: https://codepen.io/ralucanicola/pen/mdoqEyj?editors=1010 I also discovered that there is a `shouldFocus` property on the `openPopup` method. What this does in the background is to listen for when the `viewModel.active` is true and then focus. However, this also doesn't guarantee that the popup is rendered. We'll keep you posted when this gets fixed and in the meantime, settle for one of these hacks.
... View more
01-30-2024
01:36 AM
|
0
|
1
|
665
|
POST
|
There is a focus method on the popup. I've set it after setting the content in the popup: https://codepen.io/ralucanicola/pen/mdoqEyj?editors=1000. I am not sure if you still won't run into timing issues... but it seems that the view container gets a focus from the map click and the popup gets the focus when the content is set, which is afterwards, so it should be safe. (the title is focused because you set tabindex: 0 on it, otherwise it would focus the docking button first...).
... View more
01-26-2024
12:47 AM
|
0
|
3
|
748
|
POST
|
You can set a unique value renderer on the layer and on top of that apply the clustering, like this. Also make sure to check the awesome clustering samples.
... View more
01-24-2024
04:54 AM
|
1
|
0
|
465
|
POST
|
Yes, try `view.ui.move("zoom", "bottom-right");`. See https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#move Btw, you can also use view.padding to change the padding of the map. That will move all controls.
... View more
01-23-2024
02:52 AM
|
1
|
0
|
730
|
POST
|
First of all, most of the widgets have a background property that users can set in the style panel: But as I understand, you want to do this for your own learning. Not sure if it's the best way, but the way I did it for a widget I once built, was to have a backgroundColor property in config.json. Then in the ColorPicker component I keep it in sync with the config property: see code. And onChange will update the property whenever the user changes it: see code. We can access this property in the widget props (the config is set on the widget props).
... View more
01-19-2024
12:49 AM
|
3
|
1
|
852
|
POST
|
Super late answer, but from what I see, it is taking the background color from the theme...
... View more
01-19-2024
12:34 AM
|
0
|
0
|
659
|
BLOG
|
In this blog post I want to show you how you can steal some of John Nelson's watercolor styles and use them on an interactive web globe. I used this style to depict happy moments collected for a research about happiness. You can check out the application here: What makes us happy? For the countries I used Dylan Moriarty's hand drawn style of country boundaries from Project Linework. I applied John's styles on the country polygons (orange for countries that have happy moments and gray for the ones that don't). Publishing them as a feature layer or a vector tile layer will not work because the symbols use multiple picture fill symbol layers which are not supported on the web or as vector tile styles. So I published them as a tile layer, you can find it here. For the graticule I used John Nelson's Firefly grid data (Oceans 5 degrees). And for the ocean, I created a rectangular polygon with the extent of the whole world and then I applied the Pairwise erase tool in the Analysis toolbox. Finally I applied John's Pacific Blue symbol. The final globe looks like this and you can interact with it here. Hope that this inspired you for some painted mapping projects, Raluca
... View more
03-27-2023
10:34 AM
|
4
|
0
|
740
|
BLOG
|
I was recently investigating how to show a winter landscape in a 3D interactive web scene. I had a lot of inspiration from John Nelson's blog post and video on this topic, James Niehue's beautiful paintings of winter landscapes and, of course, nature itself: My goal with this project was to create a basemap that sends across that feeling of winter. We don't want it to be realistic, but also not too artistic because the basemap shouldn't steal the show. On top of it we might want to add data for a snowshoe hike, or a ski resort. So here's what I came up with: A video of the basemap. You can see the basemap in the web application here. All right, if I've sparked your curiosity, let's see if I can get your attention: how can we create the basemap? Short disclaimer at this point: we can't create it in ArcGIS SceneViewer (yet), it uses a custom layer that can only be created with ArcGIS Maps SDK for JavaScript. In my experiments I played with a combination of white for the sun-lit areas and blue-purple for the areas in the shade. To achieve this effect, we can use an ImageryTileLayer with elevation data with a RasterStretchRenderer that goes from blue to white (see code on GitHub). Next we want the terrain shading to have a purple hue. So we'll use the world terrain shading layer, load it in a BaseTileLayer and apply CSS filters on the tiles before they are drawn. We will rotate the hue by 190 degrees, to have a purple tone instead of the beige-gray color. We'll also apply saturation, to make it stand out more (see code on GitHub). Optionally, we can generate a layer of trees for the displayed area and add 3D buildings (available from Swisstopo). Click here to try out the live application: Winter landscape. Clone the GitHub repo and modify it to add your own data on top of it.. or just enable the snowy weather and the music and enjoy the virtual winter 🙂 In any case, I'd love to know how you used it. Happy mapping, Raluca
... View more
03-13-2023
08:00 AM
|
7
|
0
|
1179
|
IDEA
|
James, we currently support the refreshInterval property on a feature layer (web scene specification). We still do not support StreamLayers in the SceneViewer, but it is in our planning list and gaining priority! Let me know if you have more questions and sorry for the late reply! Raluca
... View more
05-23-2022
01:58 AM
|
0
|
0
|
877
|
POST
|
Hi, is this the satellite map you are referring to? The data in this app comes from SpaceTrack. You need to make an account to be able to access the data.
... View more
04-11-2022
11:17 PM
|
0
|
0
|
421
|
POST
|
I was trying to repro with some data with this exact workflow, but I can't manage. This is the example I created: https://codepen.io/ralucanicola/pen/ExXRjbx?editors=1000. Any chances you can send us the mal-functioning service? You can send it to me via private message.
... View more
09-21-2021
05:08 AM
|
0
|
0
|
919
|
POST
|
I meant the ArcGIS Online release, we added a fix there and it should be available later on today.
... View more
09-21-2021
02:40 AM
|
0
|
0
|
923
|
POST
|
Hi and sorry that you had to struggle with this. We noticed the errors you run into with some of our samples and we currently have a fix for it that should be deployed with the 9.3 release. However, those layers do not have an associated feature layer. Can you send me your exact workflow to make sure we fix the issue you run into as well? You publish the multipatch feature layer in ArcGIS Pro using "Share as web layer"? (https://pro.arcgis.com/en/pro-app/latest/help/sharing/overview/web-scene-layer.htm)
... View more
09-20-2021
09:36 AM
|
0
|
0
|
937
|
Title | Kudos | Posted |
---|---|---|
1 | 01-24-2024 04:54 AM | |
1 | 01-23-2024 02:52 AM | |
3 | 01-19-2024 12:49 AM | |
4 | 03-27-2023 10:34 AM | |
7 | 03-13-2023 08:00 AM |
Online Status |
Offline
|
Date Last Visited |
4 weeks ago
|