|
POST
|
Immediately below is an image created by a dynamic map service whose features are labeled on the server side. You can see that all the features are labeled (as they should be): However, when I rotate the map (using MapView.rotation), here is the new image generated by the server: You can see that numerous features to the right and left of center are not labeled, although they should be. I've noticed that the HTTP requests for both of these images have the same extent values (i.e. bbox), so this is likely driving the problem. It appears only the features inside that extent are labeled, but all the "extra" features that appear as a result of rotation are not. If there a solution to this problem? Note that the solution must involve labeling on the server-side, not the client-side. To generate these images, I was using ArcGIS Maps SDK for JavaScript 4.25 and ArcGIS Server 10.7.1.
... View more
03-28-2023
04:18 PM
|
0
|
0
|
630
|
|
POST
|
Aloha @BjornSvensson - Thank you for your reply. To answer your first question, I suppose my reply is twofold. The first part is that our platform runs on 3 networks, 2 of which are restrictive and do not have internet access. Therefore, it is required to host the API and fonts locally. The second part is that for the 3rd network with internet access, we need to eliminate unnecessary 3rd party services wherever possible. This is because if the cord to the outside world (i.e. internet) gets cut, our applications should still be able to continue to run as much as possible. Therefore, this includes hosting the API and fonts on those internal servers as well. For your second question, I suppose that's twofold as well. To me, 404 errors (and errors in general) are something that need to be fixed...but that's just me. I suppose the bigger concern is that the application is supposed to be rendering the previews in a particular way, but in these cases it doesn't, so it comes down to us offering our clients something that isn't performing as advertised. Granted, this particular case borders on the trivial, but it's still something I have to work through. If you don't mind my asking, is there any reasoning you can share about those other 7 fonts not being added? Those Arial ones are probably the most widely recognized amongst the group and would be useful.
... View more
03-23-2023
05:48 PM
|
1
|
2
|
3172
|
|
POST
|
Starting in 4.25, the underlying logic of symbolUtils.renderPreviewHTML started using fonts from a repository in woff2 format in order to do its work for TextSymbols. If you are using a font repository other than the default (i.e. by setting esriConfig.fontsURL), you will find this suddenly not working. There was no discussion of this in the release notes. The Labeling page also continues to say that support for applicable TextSymbol properties are based on hosted files in .pbf format. The aforementioned esriConfig.fontsURL documentation also speaks solely of files in .pbf format. All of the fonts in the default repository are also hosted in woff2 format, except for the following exceptions: Arial, Arial Unicode MS, and Palatino Linotype. That is, the following .woff2 URLs return a 404: Arial Bold Arial Bold Italic Arial Italic Arial Regular Arial Unicode MS Bold Arial Unicode MS Regular Palatino Linotype Regular However, their corresponding .pbf URLs work just fine: Arial Bold Arial Bold Italic Arial Italic Arial Regular Arial Unicode MS Bold Arial Unicode MS Regular Palatino Linotype Regular Will the missing fonts be added, and will the documentation be updated? Is it really necessary that we must have the same fonts in two different formats?
... View more
03-23-2023
12:29 PM
|
0
|
4
|
3212
|
|
POST
|
Hi Undral - No, I haven't...at least not yet. Unless I'm incorrect, map rotation was part of the initial 4.0 beta 1 release nearly 8 years ago. It seemed unlikely to me that this was the first time this issue has come up, and it also seemed like this forum was the most likely place to find others who've run across it and may know the answer. If I get nothing here, I'll try in the Server forum as well though. Thank you!
... View more
03-20-2023
02:22 PM
|
0
|
0
|
928
|
|
POST
|
When zooming out by rectangle, it's really expected that you zoom out by a ratio of the size of the drawn rectangle versus the size of the map. However, you have a fixed ratio (1.75) of the view's extent, so you may as well just have the user click a point as opposed to drawing a rectangle. Below is the code for proportionally zooming out (and centering) based on a user-drawn rectangle: sketchViewModellZoom.on("create", async (event) => {
if (event.state === "complete") {
var extent = event.graphic.geometry.extent;
if ((extent.width > 0) && (extent.height > 0)) {
var mapExtent = view.extent;
var ratio = Math.max(mapExtent.width / extent.width, mapExtent.height / extent.height);
view.goTo(mapExtent.clone().expand(ratio).centerAt(extent.center));
}
polygonGraphicsLayerrZoom.remove(event.graphic);
}
});
... View more
03-17-2023
11:35 AM
|
2
|
1
|
2032
|
|
POST
|
Immediately below is an image created by a dynamic map service whose features are labeled on the server side. You can see that all the features are labeled (as they should be): However, when I rotate the map (using MapView.rotation), here is the new image generated by the server: You can see that numerous features to the right and left of center are not labeled, although they should be. I've noticed that the HTTP requests for both of these images have the same extent values (i.e. bbox), so this is likely driving the problem. It appears only the features inside that extent are labeled, but all the "extra" features that appear as a result of rotation are not. If there a solution to this problem? Note that the solution must involve labeling on the server-side, not the client-side. To generate these images, I was using ArcGIS Maps SDK for JavaScript 4.25 and ArcGIS Server 10.7.1.
... View more
03-16-2023
12:08 PM
|
1
|
2
|
967
|
|
POST
|
Have you seen this thread? You'll find various proposed solutions to this kind of problem there.
... View more
03-10-2023
09:03 AM
|
1
|
0
|
1708
|
|
POST
|
There doesn't seem to be anything wrong with what you have as far as I can tell. However, changes made to the Search widget in 4.25 have caused some folks to notice *apparently* missing results, so If you're upgrading from a version prior to 4.25, you might check out this thread.
... View more
03-08-2023
03:34 PM
|
0
|
1
|
1071
|
|
POST
|
It seems likely you're seeing this in relation to the Search widget. If that's the case, please see this thread.
... View more
03-08-2023
10:14 AM
|
1
|
0
|
1401
|
|
POST
|
Although not specific to WAB, there is a discussion of this issue here, and some various workarounds proposed. Perhaps you might be able to work one into your application.
... View more
02-23-2023
03:25 PM
|
1
|
0
|
2210
|
|
POST
|
const ccWidget = new CoordinateConversion({
view: view,
_expanded: true,
_inputVisible: true,
_conversionFormat: "BASEMAP"
});
... View more
02-23-2023
10:01 AM
|
0
|
0
|
2343
|
|
POST
|
const ccWidget = new CoordinateConversion({
view: view,
_expanded: true,
_inputVisible: true
});
... View more
02-21-2023
06:04 PM
|
1
|
3
|
2396
|
|
POST
|
There doesn't appear to be a documented way, but adding an "_expanded" property to your constructor will presently do the trick: const ccWidget = new CoordinateConversion({
view: view,
_expanded: true
});
... View more
02-21-2023
09:49 AM
|
1
|
5
|
2406
|
|
POST
|
The following statement can be found buried within the Product Life Cycle page for ArcGIS API for JavaScript: "Version 3.42 onwards all versions will be retired on July 1, 2024." (Note that one has to click "View more" in order to see it.) Is this our official notice that 3.x is being laid to rest? In that case, can anyone tell how many more releases are still expected? I suppose there could still be potentially something like 5 or 6 between now and then.
... View more
02-14-2023
12:27 PM
|
0
|
1
|
1388
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-19-2024 10:37 AM | |
| 1 | 03-31-2026 02:34 PM | |
| 1 | 12-09-2025 09:35 AM | |
| 2 | 12-09-2025 09:06 AM | |
| 1 | 11-26-2025 12:29 PM |