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
    ------------------------------



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

    Posted 05-06-2020 16:33
    Edited by Eric Blasenheim 05-06-2020 16:45
    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
    ------------------------------



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

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



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

    Posted 05-06-2020 20:41
    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 th​at 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
    ------------------------------



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

    Posted 05-07-2020 11:48

    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
    ------------------------------



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

    Posted 05-07-2020 13:01
    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
    ------------------------------



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

    Posted 05-24-2020 20:27
    Edited by William Dean 05-24-2020 20:27
    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.

    Labels don't display/won't retain On state on load after any change is made to the map project.This is reflected in the Project XML, where the  labelVisibilityEnabled="false". 
    </mxp:ProjectSettings>
    <mxp:BusinessMapGroupList>
    			<mxp:Group name="House Numbers">
    				<mxp:MappingBusinessMap friendlyName="House Numbers" resourceID="/CairnsPlan/NamedMaps/House numbers" visible="true" name="House numbers" opacity="1.0" tileHeight="512" tileWidth="512" fmnCategory="House numbers" cacheAge="3600">
    					<mxp:Copyright/>
    					<mxp:BusinessMapLayerList>
    						<mxp:BusinessFeatureLayer name="House Number Labels" visible="true" searchWidth="10" resourceID="/CairnsPlan/NamedLayers/House numbers_NM_HouseNumber" labelVisibilityEnabled="false" queryEnabled="false" csvExportEnabled="false" mapInformationEnabled="false" caseSensitiveSearchEnabled="false">
    							<mxp:FMNOptions friendlyName="House Number Labels" fmnCategoryEnabled="false">
    								<mxp:Bitmap data removed from code sample>
    </mxp:Bitmap>							</mxp:FMNOptions>
    							<mxp:NamedTableRef resourceID="/CairnsPlan/NamedTables/House Number Labels"/>
    						</mxp:BusinessFeatureLayer>
    					</mxp:BusinessMapLayerList>
    				</mxp:MappingBusinessMap>
    			</mxp:Group>
    			<mxp:Group name="Road names">
    				<mxp:MappingBusinessMap friendlyName="Road names" resourceID="/CairnsPlan/NamedMaps/Road names" visible="true" name="Road names" opacity="1.0" tileHeight="512" tileWidth="512" fmnCategory="Road names" cacheAge="3600">
    					<mxp:Copyright/>
    					<mxp:BusinessMapLayerList>
    						<mxp:BusinessFeatureLayer name="Road Name Labels" visible="true" searchWidth="10" resourceID="/CairnsPlan/NamedLayers/Road names_NM_Road Name Labels" labelVisibilityEnabled="false" queryEnabled="false" csvExportEnabled="false" mapInformationEnabled="false" caseSensitiveSearchEnabled="false">
    							<mxp:FMNOptions friendlyName="Road Name Labels" fmnCategoryEnabled="false">

    Overwrite that tag to read labelVisibilityEnabled="true" for 'Road names' and 'House Numbers'. Save XML and reload Infrastructure Services project in browser.

    Changes in project XML reflected with labels now enabled and visible. Label tag icon, not in snip, is dark.

    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


    Friendly Name change has been reflected and labels have been removed.

    Back in the Project XML, confirms the friendly name has been written to the project settings and labelVisibilityEnabled="false" has returned.
    <mxp:BusinessMapGroupList>
    			<mxp:Group name="House Numbers">
    				<mxp:MappingBusinessMap friendlyName="House Numbers" resourceID="/CairnsPlan/NamedMaps/House numbers" visible="true" name="House numbers" opacity="1.0" tileHeight="512" tileWidth="512" fmnCategory="House numbers" cacheAge="3600">
    					<mxp:Copyright/>
    					<mxp:BusinessMapLayerList>
    						<mxp:BusinessFeatureLayer name="House Number Labels" visible="true" searchWidth="10" resourceID="/CairnsPlan/NamedLayers/House numbers_NM_HouseNumber" labelVisibilityEnabled="false" queryEnabled="false" csvExportEnabled="false" mapInformationEnabled="false" caseSensitiveSearchEnabled="false">
    							<mxp:FMNOptions friendlyName="House Number Labels" fmnCategoryEnabled="false">
    								<mxp:Bitmap uri="data:image/png;base64,……
    							</mxp:FMNOptions>
    							<mxp:NamedTableRef resourceID="/CairnsPlan/NamedTables/House Number Labels"/>
    						</mxp:BusinessFeatureLayer>
    					</mxp:BusinessMapLayerList>
    				</mxp:MappingBusinessMap>
    			</mxp:Group>
    			<mxp:Group name="Road Names">
    				<mxp:MappingBusinessMap friendlyName="Road Names" resourceID="/CairnsPlan/NamedMaps/Road names" visible="true" name="Road names" opacity="1.0" tileHeight="512" tileWidth="512" fmnCategory="Road names" cacheAge="3600">
    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
    ------------------------------



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

    Posted 05-26-2020 08:46
    The removing of the label settings when saving the project from project settings has definitely been ​recognized as a bug. So far as I know, saving from the map view works ok but make sure you refresh the map so that you can see if any settings were lost, reset them and save from the map.
    I don't have any information on a fix yet.

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



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

    Posted 06-22-2020 02:25

    Hi Eric,

    Any news on this, I get messages from users all the time that are wondering where the labels have gone.

    What is the date for the 19.2 release do you know?

    Cheers
    Craig​



    ------------------------------
    Craig Marshall
    Senior Infrastructure Planning Engineer
    Adelaide Hills Council
    Stirling SA
    ------------------------------



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

    Employee
    Posted 06-22-2020 03:22
    Hi Craig,

    Apologies for the problems caused by this issue. This issue can be reproduced on saving the map project via project settings. If an admin uses the "save project" option available in the legend, the label state gets saved correctly.   

    We have now fixed it (SSS-4583) and it has been released as part of version2019.1 S13 patch.

    If you have not received notification about the release, please let me know.

    Regards,
    Vishwas

    ------------------------------
    Vishwas Gupta
    Pitney Bowes Software India Pvt. Lt
    NOIDA
    ------------------------------



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

    Posted 06-22-2020 19:37

    ​Hi Vishwas,

    Thanks for the update.

    Can you flick the link through so I can get the update happening.

    Cheers
    CM



    ------------------------------
    Craig Marshall
    Senior Infrastructure Planning Engineer
    Adelaide Hills Council
    Stirling SA
    ------------------------------



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

    Posted 06-22-2020 19:51
    While this particular item might not be dependent on the Spatial Server patch, other code running in the patch would depend on changes at the Spatial server end. So make sure to apply both s12 and s13.  The  unified customer communication was supposed to go out last week and referenced both patches. Let me see what I can find out.

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



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

    Posted 06-23-2020 05:47
    According to my sources,  email communications went out yesterday containing the links for both s12 and s13 for Windows, Linux and a separate one for just release notes. Release notes are included in the code patches.

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



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

    Posted 06-23-2020 07:38
    Edited by - Toelke 06-23-2020 07:46
    Hello everyone,

    Spectrum Spatial 2019.1 S12 and Spectrum Spatial Analyst 2019.1 S13 patches are available on our Spectrum Technology Platform Updates site on the 2019.1.0 Updates page.

    Here are the download links:



    Regards,
    Ursula

    ------------------------------


    Ursula Toelke
    Spectrum Spatial Information Developer
    Toronto, ON
    ------------------------------