Skip to main content

HTML5 Viewer - Dynamic Layer Not Drawing When Adding Basemap Service

Comments

4 comments

  • Permanently deleted user
    Are these public?
    0
  • Permanently deleted user

    Mike, 

    The sites are not public. 

    However, I just figured out the problem. It is something to do my existing Map Themes on the other sites. I removed the Map Themes, added my Topographic Mask and then the ESRI Topographic layers, recreated my Map Themes and it works perfectly. 

     

    I guess I'll be removing and recreating all my Map Themes on the remaining sites. 

     

    -Justin 
    0
  • Permanently deleted user
    There has been a problem with Layer Themes and layers not showing up... See GVH-15088.  In an email on a support case, Amanda from LG told me:

     

    The best way to test quickly for this bug is to see if creating a brand new theme and enabling the layer there, or using the default "all available layers" theme works for that service.  GVH-15088 will normally affect any layer themes that were created before the date that the map service in question was added to the site.

     

    The way to fix the issue through the site xml is copying the themesettings tags from a working map service into the new one.  I've done this in the attached site xml that you sent, but if you have saved changes to your site xml in the last few days that you don't want to lose, we can easily fix it over a screen share or you can follow these steps:

     

    1. Back up your site.xml file and edit the original in a text editor like notepad

     

    2. Search for "CityDynamicBoundary"

     

    3. Scroll down to find the </MapService> closing tag for this map service

     

    4. Right before that tag (should be somewhere after </Layers>), paste the ThemeSettings tags from a working service.  For example: 

     

            <ThemeSettings>

     

              <ThemeSetting ID="3" />

     

              <ThemeSetting ID="6" />

     

              <ThemeSetting ID="10" />

     

              <ThemeSetting ID="7" />

     

              <ThemeSetting ID="0" />

     

              <ThemeSetting ID="4" />

     

              <ThemeSetting ID="2" />

     

              <ThemeSetting ID="8" />

     

              <ThemeSetting ID="1" />

     

            </ThemeSettings>

     

    5.  Save the file.  The layers should now correctly follow their settings in manager for any of the themes matching the ids that were pasted into the site xml.  

     

     

     
    0
  • Permanently deleted user

    Mike, 

     

    That's perfect. Save me some time replacing the ThemeSettings in the site xml rather then going through each individual site in Site Manager. 

     

    Thanks again. 

     

    -Justin
    0

Please sign in to leave a comment.