Maptips for invisible layer(s) in HTML5 Viewer
In the Silverlight Viewer, for the maptips module, we could control whether maptips displayed for a visible layer, or also those that were invisible. I don't see this in the HTML5 viewer.
The reason I ask, is because I have a feature class that contains all attributes for a series of layers in my map list. I'd like the maptip to show these attributes when the map is clicked, without needing to have the layer displayed in the map, or even included in the layer list.
0
-
Bump... Still wondering if this would be possible. 0 -
You don't have to a have a layer in your layer list for map tips to works in the GVH, but the layer does have to be checked as visible. The easiest workaround for this is to publish your layer with no symbology. That way you can configure its settings in GE, have it turned on in your map but not in your layer list, and your users will be able to view its map tips without actually seeing it. 0 -
Thanks John,
I actually tried this and it does work. I'm just concerned about the resources that it consumes. This is a very large dataset with over a million features. We have cached the map, but want to utilize maptips. The workaround requires that this large featureclass be published in another service. Even though there is no symbology, I've found that performance is still slow and it consumes server i/o and memory.
This is not entirely what my question was aimed at initially... But the workaround as you mention, comes at a cost. If we could apply maptips to our cache, our problems would be solved.0 -
AH! I take it back, it looks like I CAN enable maptips on my cached map service.
It was a little confusing how it was added to the layer list. I couldn't add the feature of the map service, I could only add the map service, but it automatically hides the feature from the layer list. I'm able to adjust properties of the feature of the cached map service, it's just not added the same was as layers from a regular map service.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
4 kommentarer