Hi Eric,
Just confirming we have been experiencing the same issue and earlier in May raised a ticket with PB Support - [25287018] Issue with labels loading after upgrade to 2019.1 [TE009HU]. For background we are running 2019.1 and are fully patched. Projections were raised earlier but don't seem to be related, for reference we are using EPSG:28355 with custom extents for the projects and bounds for the tile services. This labelling issue occurs with any map project, regardless of being a rollover from 18.2 or made new in 2019.1.
As a step-by-step replication, here we go:
Default State for the Map Project is Labels Off, would prefer it to be Labels On but that doesn't last.
Overwrite that tag to read labelVisibilityEnabled="true" for 'Road names' and 'House Numbers'. Save XML and reload Infrastructure Services project in browser.
Sign in as admin, and load Project Settings, make minor change to Map Project, changing friendly name from 'Road names' to 'Road Names'.
Save & Reload Project
This might not add much at this stage of the bug report, but we would appreciate a resolution to this problem in one of the upcoming patches. Re-enabling labels on each project separately after any change is not a long-term solution when there are 30+ Map Projects to administer.
------------------------------
William Dean
Cairns Regional Council
------------------------------
Original Message:
Sent: 05-07-2020 13:00
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
Yes Ott thanks for checking that. I was checking that as well. It seems that any project change from the settings page disables the labels. I will amend that in my report.
To work around this at this time, when you Save & Close and return to the map, enable the labels and then save again from the layer control.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-07-2020 11:47
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
What I meant just important business layers when I used phrase "main layers". Sorry for confusion.
Today labels were not showing again and labelVisibilityEnabled was turned to "false". And I discovered, that the labels will disappear after I save map project in map settings - for example, I added another map to project and didn't change anything else. After I clicked "Save & close" button, the labels were turned off. I tried several times with different changes and this happened no matter what I did in project settings. I guess it writes over the extents again even though I didn't change it and therefore, the problem is still caused because this? I can't confirm, that every time this problem has occurred, has been after saving project from project settings, but this is definitely one cause.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 20:40
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
Most of this is the same. You should confirm that the visibility is true in the project. What I have seen so far is that when at least one layer has labels that are visible, Analyst will send the request to Spectrum Spatial to render labels.
The zoom range settings complicate things in that I have not tested if Analyst checks those levels and decides whether to send the request or whether it just sends it and Spectrum Spatial gets to decide if it will render labels given the zoom range. The detail about zoom levels is all in the data that Spectrum Spatial processes.
Since Ott did not have that case, I have not tried that. You can see via Chrome debugger whether Analyst sends the request or not but it is mixed up with a bunch of other stuff.
Also note that there are 2 zoom levels. One for the layer and one for the labels. Generally we try to ensure that the zoom level for labels is within the bounds of the layers settings as that is what you would have seen in MapInfo Pro. But there are those 2 sets of zoom information if you have enabled both of them.
I can check tomorrow on this.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 18:43
From: Craig Marshall
Subject: Displaying labels on a map every time after signing in
HI Gents.
I can confirm that we have both Label Zooming and Set Extents..
Let us know if you need me to try anything...
Cheers
CM
------------------------------
Craig Marshall
Senior Infrastructure Planning Engineer
Adelaide Hills Council
Stirling SA
Original Message:
Sent: 05-06-2020 16:33
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
When you say main layers, do you mean they are the "base maps" or are they just the important business layers?
If you want to see what I am seeing you can try this:
Create a project with the Sample layer for USA_Capitals. Add it as the only layer in the project It has labels and if you change the extents from the whole world to North America and save the project, you should see the issues I have discovered. These will be addressed but can't be sure yet whether that is the source of your issues or not.
I did not ask about patches but I know of nothing so far that is relevant to this issue. My tests were done with the Spectrum Spatial patch but I had not yet applied the Analyst part of that. That is next.
------------------------------
Eric Blasenheim
Spectrum Spatial Technical Product Manager
Troy, NY
Original Message:
Sent: 05-06-2020 16:08
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
And few more things that I thought about now that could have some impact in this thing:
- These layers are main layers, that users are editing so they are changing a lot.
- One of these layers can be empty some times, and this can definitely cause this issue for that layer. The other one is never empty, so this is issue only for one layer.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 15:29
From: Ott Koik
Subject: Displaying labels on a map every time after signing in
Yes, I think you understood correctly. I changed the extent about year ago and after that, I haven't change it. Yes, right now the label property was true, but labels were also visible on map. I will check it again, when they disappear. Also, it's not like labels are not showing next time after saving project. Sometimes it takes two days to disappear, sometimes few hours, sometimes maybe longer. I haven't noticed any pattern there which makes it more difficult to understand.
------------------------------
Ott Koik
Ruumab OÛ
Tartu
Original Message:
Sent: 05-06-2020 12:48
From: Eric Blasenheim
Subject: Displaying labels on a map every time after signing in
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
------------------------------