I have been trying to increase the size of my maptip frames on MacOS using Safari with limited luck. I have changed the size of the frames but have not been able to display text inside the frames. My knowledge of html is pretty basic .. about nil.

I have tried:

[% "LIGHT_COND"  ||  '\n'  || 'Persons ' ||  "TOTAL_PERS" %]
<iframe width=3000 height = 3000>
  • As far as I can tell, the maptip box adjusts to the contained text. Could you give an example why you need the box to be much bigger?
    – underdark
    Oct 22, 2016 at 10:16
  • Wouldn't you put your expressions between the <iframe> and </iframe>?
    – J M
    Oct 23, 2016 at 6:27

1 Answer 1


You can set the size of the map tip frame by including your expression inside of <div> tag in this way:

<div style="width:350;height:200">
[% "LIGHT_COND"  ||  '\n'  || 'Persons ' ||  "TOTAL_PERS" %]

And it's possible to go further with styling like that:

h3 { margin: 0px 0px 10px 10px; }

<div style="width:350;height:200; background-color: lightgrey">
<h3>A title:</h3>
 [% "LIGHT_COND"  ||  '\n'  || 'Persons ' ||  "TOTAL_PERS" %]
Other info: [% "LIGHT_COND" %]
<h3>And more info:</h3>
[% "TOTAL_PERS" %]

From there you may try to play around with the help of www.w3school.com

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.