There is definitely an issue here but not everything I see matches what you are saying. At least yet.
Here's what I have noticed.
When I change the extents on a project based on a named map with 2 layers with labels, the label setting is always changed from true to false. I can see this in the WebDAV view of the project XML. This is a bug. The initial center is also changed which does not seem right either, unless the extents made it invalid.
I chose "Save and Close" and when I returned to the map view state, the labels are not visible (as the setting is now off). But the icon in the legend/layer control shows them as enabled (what I called black and not gray).
If I save the project after just panning the map, the project XML is now updated to show the labels are visible. This means that the internal state has the labels visible (as it showed them being on) but because the project setting had them off, no request for labels was sent to spectrum. When the project was saved, the internal state was written into the project.
A complete map refresh now brings the labels back and from what I can tell, they stay on.
Here's what I understood from your experience.
You had changed the extent but this was now set and not changing. The labels show gray which means that Analyst thinks they are not to be displayed. I know you said the label property was true and after saving the project, the labels display but the next time they are not displayed.
I hope I understood you correctly.
Also my observed behavior is slightly differently when using a project based on 2 layers rather than the map.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
------------------------------
Original Message:
Sent: 05-06-2020 11:33
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Project extents in EPSG:3301 are 351435.98593140056, 6346089.323958006, 775915.6795131115, 6628420.840183219
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 11:06
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
I am going to try setting extents to a very small value. What are the extents for your project? I know there are in Estonian national but since Craig is experiencing the same issue in Australia I am sure it is not specific to Estonian projection.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 10:48
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
I have saved map project and therefore overwritten map center and zoom multiple times after setting extents and this has not changed anything for me unfortunately.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 10:42
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
In my case (using popular Mercator) after setting the extents my map center and zoom was messed up. I went back to where I wanted to be and saved the project and now I do not have this problem anymore. However, my extent was the whole US. I will try with a much smaller value. Can you give that a shot?
I will write something up about my issue regardless.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 10:26
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Yes, I have extents set for project. This project is only about Estonia and users should not be able to pan elsewhere.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 10:21
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
Do you have extents set on your map project? I think I may have reproduced this after setting map extents.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 10:10
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Map is in Estonian national projection L-EST97 (EUREF89) [epsg:3301].
The label tag is gray and labels for both layers are not displayed and I just have to toggle the labels to show them again.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 10:03
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
I was only asking because Analyst asks Spectrum to render labels differently than it does normal layer data to limit label "cutoff". This means that while it asks for normal layer images in tiles, it requests the labels for the entire map (all layers, entire visible width, height) at once. If it decides for some reason that the labels should not be shown, it would not send this request.
In my example, it is sending the request and I can see it in the Chrome debugger, for example.
A few other questions:
What projection is the map in?
When the labels are not displayed, do you see the label icon (the label "tag") in the legend/layer control and is it dark or gray? Dark would mean that Analyst believes the labels should be displayed.
Are the labels for both layers not displayed and you have to toggle the labels or just force a redisplay to get them?
Trying to recreate on my end.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 09:39
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
I don't use zoom layering. And just to be to be sure - layers are visible, but sometimes labels are not.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 09:31
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
Do you have zoom layering set for the layers in the map? I will try this myself but just an idea.
The main thing I want to determine is whether Analyst is not attempting to ask for the layers (possibly because it thinks they should be invisible) or whether it is asking but for some reason they are not displaying which also could be browser cache but not sure yet.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 08:50
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Hi!
Thanks for your answers.
I'm using Spectrum 2019.1, but I'm not using upgraded projects as I didn't manage to upgrade Spectrum from previous version and therefore built everything from zero again after plain installation of 2019.1. I'm using Named Map with two layers. And my problem is exactly as Mr. Craig Marshall described - labels are showing after I save the project and refresh it, but they will disappear after some time. And I checked, labelVisibilityEnabled="True" for those layers.
Regards,
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-05-2020 20:40
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
We seem to have a few instances of this and it sounds like it might have to do with projects that were upgraded from the earlier version.
If anyone would like to share an example project I can compare with the ones I have created myself.
Inside the project is a property (labelVisibilityEnabled="true") that we could look for. I don't have an upgraded projects myself
Projects are now stored in the Spatial repository (you probably know that) so they can be exported via the Spectrum CLI or via WebDAV.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-05-2020 19:41
From: Craig Marshall
Subject: Displaying labels on a map every time after signing in
Hi Duri/Ott,
We have the same problem.
Since upgrading to Spectrum Spatial™Analyst Version 2019.1 we are having quite a few of our map projects drop off their labels.
I would say twice a week I have to go in and login, turn on all the labels, and save the project as they just drop off across the whole project.
Didn't do this on version 18.
Not sure what the issue is but we have the problem as well.
Happy to try anything to help out.
Cheers
CM
------------------------------
Craig Marshall
Senior Infrastructure Planning Engineer
Adelaide Hills Council
Stirling SA
Original Message:
Sent: 05-04-2020 19:23
From: Duri Bradshaw
Subject: Displaying labels on a map every time after signing in
Hi Ott,
Do you see any errors on your browser JavaScript Console or Network tab when the issue occurs?
------------------------------
Duri Bradshaw
Spatial IT Consultant
Insight GIS
Original Message:
Sent: 05-03-2020 14:13
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Hi!
I have a map with two point layers and I have to show labels on both of those by default - every time after users sign in, they see those labels. The problem is that after I save map project with 'show labels' option on, sometimes the labels are there and sometimes they are not. And when the labels are not showing, the user have to turn those on again from map legend. It will become a problem, when project has a lot of end users to whom everything should be as simple as possible. Especially when there is extensibility component above legend and therefore, user may not see the legend at all without scrolling right panel all the way down. Is it somehow possible to make labels stick to map without those randomly disappearing?
Regards,
------------------------------
Ott Koik
Ruumab OÛ
Tartu
------------------------------