Hello!

How I can make a fixed-size map object in maps?

For example, I created map icon, when I added a table to them it looks cool, but every time, when I switch to Map Designer there are is opening a "properties" field right on my cool custom map object, and this makes impossible to work and move them across map.

My custom object code:

<!--Status Icons: Name and Status (StatusBased)-->

<div class="map_object map_icon mapicon_status_transparent <#sensor type="colorclassofstate" prefix="map_iconcolor_" id="<@objectid>">" 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 height=24 width=400>
	<tr>
		<td allign=left><b>
		<#objectproperty name="Name" id="<@objectid>">
		</td>
		<td width=150 allign=right>

			<#objectstatus name="downsens" id="<@objectid>">
			<#objectstatus name="partialdownsens" id="<@objectid>">
			<#objectstatus name="warnsens" id="<@objectid>">
			<#objectstatus name="unusualsens" id="<@objectid>">
			<#objectstatus name="upsens" id="<@objectid>">
			<#objectstatus name="lastvalue" id="<@objectid>"> 

		<td>
	</tr>
<table>

	</span>
	<#mapobject type="htmlafter" subid="<@subid>">
</div>

How can I make a fixed-size map object like this table?


Article Comments

ADD:

I mean when i add my object it looks like i want (top of the picture). But when I switch to View Map and back to Map Designer it looks like at the bottom of picture.

My object


Sep, 2014 - Permalink

Hi Makc,

your second table tag should be a closing table tag!

</table> not <table>

;)

Another hint: the allign property should be align with only one L.

Regards, Daniel


Sep, 2014 - Permalink

Hello Daniel,

Thank you! It works! =)


Sep, 2014 - Permalink