I create new MapObject and I want to show sensor's name and sensor's message on the same line, but every sort of html format doesn't work.. It's always showed on two lines! here the code:

<div class="map_object map_icon" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">">
<#mapobject type="objectgrip" mode="<@editmode>">
<#mapobject type="htmlbefore" subid="<@subid>">
<span>
	<#objectproperty name="Name" id="<@objectid>">: <#objectstatus name="message" id="<@objectid>"> 
</span>
<#mapobject type="htmlafter" subid="<@subid>">		                       
</div>

Thanks a lot!

Gianluca


Article Comments

Try using a <table>:

<div class="map_object map_icon" id="<@itemid>" objectid="<@objectid>" subid="<@subid>" style="<#mapobject type="topleftcoordinates" subid="<@subid>" mode="<@editmode>">"> <#mapobject type="objectgrip" mode="<@editmode>"> <#mapobject type="htmlbefore" subid="<@subid>"> <span> <table><tr><td><#objectproperty name="Name" id="<@objectid>">:</td><td><#objectstatus name="message" id="<@objectid>"> </td></tr></table> </span> <#mapobject type="htmlafter" subid="<@subid>"> </div>


Feb, 2011 - Permalink

It works great! But I don't understand why if I show the "message" field, the mapobject is always transparent and it shows a strange grey line in the bottom.. Any suggestions to have a white mapobject and/or no lines?

Gianluca


Feb, 2011 - Permalink

How about adding a

style="background:#fff"

to your <TD> cells?


Feb, 2011 - Permalink