Skip to main content

Fixed Size for Maptip

Comments

9 comments

  • Cattyann Campbell

    +1 I'm looking to do the same any thoughts?

    0
  • Permanently deleted user

    I started fooling around with DIV and setting the width and height but there's still difficulties. I'm going to try altering the CSS to enable text wrapping for now and see if that works out better!

    0
  • Permanently deleted user

    + 1 for me also

    0
  • Permanently deleted user

    Maybe format all of the content of the popup into a table with a fixed width?

    0
  • Cattyann Campbell

    The ArcGIS Online maptips (pop-ups)  work pretty well < http://doc.arcgis.com/en/arcgis-online/use-maps/view-pop-ups.htm#ESRI_SECTION1_DAA22E89DF67448E8F3682309F39BE5D >

    would be nice to see something similar next round esp on HTML viewer.

     

    0
  • Permanently deleted user

    Hi, Lauren,

    Do you manage to update the CSS file to control the size of the maptip?

    I am facing the same problem now. Please shed some light for me on which css file and which class I should update?

    Thanks

     

    0
  • Permanently deleted user
    Thanks Lauren, I managed to fing a session in the common.css for map tip. I wrote my own CSS to overwrite that.
    0
  • Permanently deleted user

    @Helen mind sharing your css or website? I'd be curious to see how it looks! :)

    0
  • Permanently deleted user

    The following is the example I changed. Didn't change much. The main purpose is to control the max-width and max-height so they are not overflow outside of frame which is only 650px * 350px. the overflow control is added in case the content is too much for the max-size.

     

    .map-callout-header {

     

        position: relative;

     

        padding: 0.75em;

     

        padding-right: 40px;

     

        font-size: 1em;

     

     font-weight: bold;

     

     text-overflow: ellipsis;

     

     overflow: hidden;

     

        color: #000000;

     

    }

    .map-callout-header h2 {

     

        font-size: 1.1em;

     

    }

    .map-callout-header span {

     

        font-weight: 700;

     

        text-overflow: ellipsis;

     

    }

     

    .map-callout-contents {

     

        padding: 0 .75em .75em .75em;

     

     max-height:300px;

     

        overflow: auto;

     

        color: #666666;

     

    }

    .map-callout-wrapper {

     

        margin-top: -26px;

     

     max-width: 400px;

     

    }
    0

Please sign in to leave a comment.