Spectrum Spatial (SSA/LIM)

 View Only
Expand all | Collapse all

Displaying labels on a map every time after signing in

  • 1.  Displaying labels on a map every time after signing in

    Posted 05-03-2020 14:14
    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
    ------------------------------


  • 2.  RE: Displaying labels on a map every time after signing in

    Posted 05-04-2020 19:23
    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
    ------------------------------



  • 3.  RE: Displaying labels on a map every time after signing in

    Posted 05-05-2020 04:50
    Edited by Ott Koik 05-06-2020 08:51

    
    
    
    
    Hi!

    No, I don't see any errors. Labels are just turned off.


  • 4.  RE: Displaying labels on a map every time after signing in

    Posted 05-05-2020 17:41
    Ott,
    A few questions for you.
    What version of Spectrum Spatial and Analyst are you using?
    Is your project using a named map in the project or 2 separate layers?
    This is what I have tried so far.
    Uploaded from MapInfo Pro a map with 2 point layers both with labels enabled.  ​Added this map to a project. The map displays, I turn on the "map" which displays both point layers and labels. I then save the project.
    Thereafter both layers show up with labels. I can still turn them off and on separately. I simulated another user by logging in from my laptop as I created the project and tried it on the server itself. 
    I am using 2019.1
    I will try using separate layers instead of the named map.


    ------------------------------
    Eric Blasenheim
    Spectrum Spatial Technical Product Manager
    Troy, NY
    ------------------------------



  • 5.  RE: Displaying labels on a map every time after signing in

    Posted 05-05-2020 17:46
    It made no difference with 2 separate layers. I will also note that my server has the latest Spatial patches installed. Not sure that matters.  ​

    ------------------------------
    Eric Blasenheim
    Spectrum Spatial Technical Product Manager
    Troy, NY
    ------------------------------



  • 6.  RE: Displaying labels on a map every time after signing in

    Posted 05-05-2020 19:42

    Hi Duri/Ott,

    We have the same problem.

    Since upgrading to Spectrum SpatialAnalyst   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
    ------------------------------



  • 7.  RE: Displaying labels on a map every time after signing in

    Posted 05-05-2020 20:40
    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
    ------------------------------



  • 8.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 08:50
    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
    ------------------------------



  • 9.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 09:32
    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
    ------------------------------



  • 10.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 09:40
    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
    ------------------------------



  • 11.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:04
    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
    ------------------------------



  • 12.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:11
    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
    ------------------------------



  • 13.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:21
    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
    ------------------------------



  • 14.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:26
    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
    ------------------------------



  • 15.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:43
    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
    ------------------------------



  • 16.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 10:49
    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
    ------------------------------



  • 17.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 11:06
    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
    ------------------------------



  • 18.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 11:34
    Project extents in EPSG:3301 are 351435.98593140056, 6346089.323958006, 775915.6795131115, 6628420.840183219

    ------------------------------
    Ott Koik
    Ruumab OÛ
    Tartu
    ------------------------------



  • 19.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 12:49
    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 projec​t 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
    ------------------------------



  • 20.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 15:29
    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
    ------------------------------



  • 21.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 16:02
    Are you the only admin?​ Can someone else change the project?
    In either case, when the labels are not showing up, can you check the visibility setting of the layer in the project at that moment.
    I have not had time to try this with data for Estonia. I don't think that has anything to do with it but perhaps the narrow extents in a coordinate system not designed for the whole world might be a factor. So far I can always correct the issue with a pan/zoom and project save.

    ------------------------------
    Eric Blasenheim
    Spectrum Spatial Technical Product Manager
    Troy, NY
    ------------------------------



  • 22.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 16:11
    I'm not the only admin in Spectrum, but the only one who has access to project XML's. And thanks for your help, I guess the only thing to do is to teach users how to turn on labels and check it frequently myself.

    ------------------------------
    Ott Koik
    Ruumab OÛ
    Tartu
    ------------------------------



  • 23.  RE: Displaying labels on a map every time after signing in

    Posted 05-06-2020 16:08
    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
    ------------------------------