POST
|
You can also use the cimSymbolUtils to help with some of these tasks, in your use case the 'scaleCIMSymbolTo()' method.
... View more
08-03-2023
02:34 PM
|
2
|
0
|
569
|
POST
|
There are many options available via the Draw tools and the Sketch and Editor widgets, but if you want 'no additional tools' then coming up with a 'very simple for the user' workflow becomes a little more complicated. Here's a quick take at one possible approach; it's not perfect but it might give you some ideas: https://codepen.io/john-grayson/pen/bGQaZom
... View more
07-12-2023
01:54 PM
|
0
|
0
|
195
|
POST
|
The 'content' property of the 'openPopup()' method doesn't list CustomContent as valid parameter type. For your use case you can just use a function that returns the HTMLElement directly: https://codepen.io/john-grayson/pen/BaGJMvw
... View more
07-12-2023
11:23 AM
|
1
|
0
|
408
|
POST
|
Another option would be to let the service perform the intersection test by passing in the dynamic feature geometry into the query; something similar to this but with all the appropriate Query parameters: const staticQuery = staticFeatureLayer.createQuery();
staticQuery.geometry = dfFeature.geometry;
staticFeatureLayer.queryFeatures(staticQuery).then((staticFeatureSet) => {
... View more
04-25-2023
11:28 AM
|
2
|
0
|
403
|
POST
|
You might also want to check out the cimSymbolUtils if you're looking to change the size of the symbol. Maybe the scaleCIMSymbolTo() method will do what you need?
... View more
04-14-2023
09:17 AM
|
0
|
0
|
346
|
POST
|
...maybe try something like this: view.on("click", function (evt) {
if (view.scale <= 3500) {
var graphic = new Graphic({
geometry: {
type: "point",
x: evt.mapPoint.x,
y: evt.mapPoint.y,
spatialReference: view.spatialReference,
},
symbol: {
type: "web-style",
name: "push-pin-1",
styleName: "Esri2DPointSymbolsStyle"
}
});
view.graphics.removeAll();
view.graphics.add(graphic);
}
});
... View more
09-30-2022
01:54 PM
|
1
|
1
|
1017
|
POST
|
Hard to tell from the partial code provided. Do you have a simple CodePen (or similar) showing the issue?
... View more
09-27-2022
08:27 AM
|
0
|
1
|
373
|
POST
|
Please make sure to submit unrelated issues as new questions so we don't confuse things later on.
... View more
09-19-2022
03:27 PM
|
0
|
0
|
768
|
POST
|
Here's that same tutorial but slightly modified to your MapImageLayer service: https://codepen.io/john-grayson/pen/VwxbgBR Please note that you can't use the individual FeatureLayer directly as some of the TimeInfo properties have not been configured.
... View more
09-19-2022
08:41 AM
|
2
|
2
|
779
|
POST
|
If you're referring to the interactive navigation (vs setting a camera location via code) then the navigationContraint might help, but as you noted it won't prevent you from interactively navigating underground. If the goal is to create a guided experience close to the ground then a combination of these constraints will help.
... View more
09-08-2022
01:16 PM
|
0
|
0
|
306
|
POST
|
I wonder if adjusting the SceneView.constraints.clipDistance.near will help in your situation?
... View more
09-01-2022
02:37 PM
|
0
|
2
|
322
|
POST
|
I would recommend against the use of the interceptor for this use case. Just make sure you specify the parameters correctly and you can just extend the BaseTileLayer, which will help a lot as you try to use other parameters and options from these services. Using the interceptor to ignore improperly formatted URL parameters might lead to other issues as you try other settings.
... View more
08-01-2022
12:55 PM
|
0
|
0
|
244
|
POST
|
...but that doesn't quite give us the final solution as those parameters still have undesired encoding of the '+' sign for spaces. Here's a code pen showing how to configure the parameters correctly: https://codepen.io/john-grayson/pen/ExEozep
... View more
08-01-2022
08:55 AM
|
0
|
0
|
685
|
POST
|
I believe the issue is that the color_formula you're trying to use is already encoded. Using decodeURIComponents produces the following parameter: gamma+RGB+2.7,+saturation+1.5,+sigmoidal+RGB+15+0.55 As shown in the previous example I would recommend you try to configure the base part of the url (before the ? char) and all the parameters separately so you have better control of the URL being requested.
... View more
08-01-2022
08:24 AM
|
0
|
3
|
686
|
Title | Kudos | Posted |
---|---|---|
1 | 03-07-2024 04:14 PM | |
1 | 02-23-2024 12:40 PM | |
1 | 03-01-2024 10:48 AM | |
2 | 08-03-2023 02:34 PM | |
2 | 07-19-2023 12:05 PM |
Online Status |
Offline
|
Date Last Visited |
yesterday
|