Skip to main content

Map Tips in HTML5 viewer

Comments

4 comments

  • Jeff Siemens

    Hi Nick,

    The map tips in the beta release do support the feature description from the layer in the site, but the caveat is that they are fixed size.  This is resolved in the current build, and so for the 1.0 final, the map tips will automatically size to their content.  For now, what you can do is explicitly set the size of the map tip using either Desktop.css (for Index.html) or Handheld.css (for Handheld.html).  When you load it on the iPad, you'll be looking at Handheld.html.  The section to look for is this:

    .map-callout-contents

    {     width: 12em;     height: 3em; }  

    Jeff

    0
  • Permanently deleted user

    I tried resizing it and it is still not respecting the img source tags in my description. I know these are valid because they are working in the Silverlight viewer. Just to let you know how my config is for this I basically have a url in my camera layer and I am using that as the link for each camera. Overall I like what I am seeing for the 1.0 beta release I am looking forward to using these sites a lot more as we now have a lot more IPAD users these will be extremely beneficial going forward.

    0
  • Jeff Siemens

    Hi Nick,

    There could be a problem with the feature-value substitution.  The browser should do a much better job of rendering HTML than our Silverlight Viewer does.  If it's not showing, then I wonder if our parse code might be messing things up.

    Could you post the exact HTML that you have for your feature description, along with a sample value from the data-fields referenced in the HTML?  Also, the resultant HTML after substitution would be handy if you can get it.  You can do this by using an HTML inspector like the ones found in the Chrome developer toolbar, IE developer toolbar, or Firebug.

    Jeff

    0
  • Chris Dunlop

    Hi, I just started porting to the HTML 5 viewer (v2.3.3) and noticed a problem with map tips using IE11.  I have a long description that includes an image.  When I click on the feature to open the map tip, more often than not, the map tip is not wide enough to show all the image, and has a horizontal scroll bar.  In some cases, it does resize it wide enough...

    In Chrome, it works fine, so I'm guessing it's IE-specific.

    Chris

    0

Please sign in to leave a comment.