|
POST
|
A TextSymbol has the ability to include a background as part of the symbol. If two TextSymbols with backgrounds overlap, the text of both symbols will be drawn on top of both backgrounds. When applying background to text I was expecting it to be treated as a single symbol object and rendered together. My goal is to have the entire symbol (text/background) stack on top of the other if overlap: Render symbol1 with background; then render symbol2 with background (and if overlaps on symbol1, the background of symbol2 would be on top of symbol1). Since applying a background to text, it would make sense that both the text/background would stack and render together. @AnneFitz I'm hoping you might be able to provide some insight with your previous help on TextSymbol questions. Assuming this is a bug as adding different types of symbols can all overlap text. CodePen of issue: https://codepen.io/bmcintosh/pen/wvQMaaX Attached a few images of the examples as well.
... View more
06-14-2023
09:34 AM
|
1
|
2
|
1810
|
|
POST
|
Thank you Anne. I tested the CDN next and it appears to be working. Looking forward to the rollout fix in 4.27.
... View more
05-02-2023
09:04 AM
|
0
|
0
|
5732
|
|
POST
|
Hi @AnneFitz , I was just wondering if there might be any updates on a fix for this? Thank you so much for the support.
... View more
04-27-2023
08:01 AM
|
0
|
0
|
5753
|
|
POST
|
You could setup a small proxy to handle the API key for the requests. This will hide the key (although without a referrer anyone could still access). Esri does have sample code for a proxy, but the code is retired now as they recommend one of the following approaches (from esri github page for proxy) although some still rely on having a referrer: Enable CORS on the non-CORS enabled web server. Use API keys to use services and access private content. Configure your security settings in ArcGIS Online or ArcGIS Enterprise. Access secure services using ArcGIS Online to store your username/password credentials
... View more
04-11-2023
08:06 AM
|
0
|
0
|
1623
|
|
POST
|
Hi @AnneFitz , If I look very closely at your image, I can see some of the "York" text in the New York basemap label behind the textSymbol still. Much easier to see on my png below from the same: I'm using MS Edge 111.0.1661.44 (Official build) 64-bit with Windows 11. Integrated GPU on an 11th Gen Intel Core i7.
... View more
03-17-2023
01:56 PM
|
2
|
0
|
5946
|
|
POST
|
It looks like it is using the map extent which is being provided in the code and just updating the view extent (extent doesn't look like a property inside the GoTo method). Thinking you could just use the target event graphic and get that graphic's geometry extent (with expand) as you don't need the view.extent for this call.
... View more
03-17-2023
07:28 AM
|
0
|
0
|
1439
|
|
POST
|
When setting the textSymbol backgroundColor property with RGBA, the alpha channel will not properly show fully opaque values (alpha = 1) when using RGBA array. The background always has some transparency remaining. Lowering the alpha channel (0.5 or 0.25, etc) does seem to work as expected. A codepen example using the current 4.26 version of the API is attached. The alpha is set to 1, but the the map can still be seen behind the label background: TextSymbol Background transparency (codepen.io). I could be missing something, but thinking this is likely a bug.
... View more
03-15-2023
01:21 PM
|
0
|
6
|
6050
|
|
POST
|
This is now possible in 4.26. TextSymbols can have backgrounds and borders: Release notes for 4.26 | Overview | ArcGIS Maps SDK for JavaScript 4.26 | ArcGIS Developers
... View more
03-14-2023
01:32 PM
|
1
|
0
|
570
|
|
POST
|
I know this is a little late but would love to see a fiddle as well!
... View more
03-08-2023
07:58 AM
|
1
|
0
|
2674
|
|
POST
|
Thank you. I can confirm this is fixed in the beta 4.26 release and allows for different elements again.
... View more
02-16-2023
07:21 AM
|
0
|
0
|
5208
|
|
POST
|
I tested again today: iOS 16.3 with both Safari and Chrome browser. It appears to be working now. I'm guessing this could be related to arcgis/core JavaScript updates (currently 4.25.5) or some CSS fixes behind the scenes. I would try opening the story, make a tiny change and save (like turning it off and back on again).
... View more
02-16-2023
07:18 AM
|
1
|
0
|
1655
|
|
POST
|
I opened the original sample and had the same issue with mouse events. Below seems to work - although if you are moving the mouse too fast it still doesn't "click" to add a vertex - but it does disable pan during the draw process for whatever draw type you are interested in: let stopPan = false;
view.when(() => {
sketch.watch("activeTool", (newValue, oldValue, property, object) => {
//determine tools you want to disable Pan for
if (["point", "polyline", "polygon"].includes(newValue)) {
stopPan = true;
} else {
stopPan = false;
}
});
view.on("drag", (event) => {
if (stopPan) {
event.stopPropagation();
}
});
});
... View more
12-06-2022
05:17 PM
|
0
|
1
|
1775
|
|
POST
|
Have you tried to disable the map navigation settings when the user initiates drawing? The mapview has a navigation object you could update to disable certain navigation features (just make sure to enable again on create when event.state 'complete'). mapview.navigation.browserTouchPanEnabled = false; There are a few more navigation features you could also play with if needed.
... View more
12-05-2022
01:31 PM
|
0
|
3
|
1807
|
|
POST
|
@JoelBennett some great additional insights here! With the Interceptor example you can see we can block the extra requests and still get the desired outcomes but this might not always be the situation (cached map or other various source differences possibly). But agree, it is what it is and we try to work with it. I'm sure a few extra queries to the server won't hurt too much in the meantime (I hope Dave Peters doesn't read this :).
... View more
11-23-2022
12:57 PM
|
1
|
0
|
2724
|
|
POST
|
Thank you @ReneRubalcava . The information for #1 and #2 make sense, thank you. From testing I can see that layerIDs and Sublayers work together for #3-#5 (if I say visible and layerID 4,5 and provide sublayers: it will modify the layer list before sending to cross reference the two lists (so if layer 4 visible is false, will not send [in a good way]). I added an Interceptor to a query request for the state layer (if you identify a State or two), and you can see that by blocking the Query request it also doesn't do the map export request either - but the results to the popup work correctly from what I can see. Having fewer requests, and reduces server impact. Hoping can be sorted in a future release. A CodePen with Interceptor: https://codepen.io/bmcintosh/pen/mdKxLOe
... View more
11-23-2022
12:31 PM
|
0
|
0
|
2731
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-28-2025 01:15 PM | |
| 1 | 01-07-2025 06:32 AM | |
| 1 | 09-06-2024 09:59 AM | |
| 1 | 07-09-2024 12:04 PM | |
| 2 | 05-16-2024 05:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|