Forum Home › Forums › Understanding the Software › Map location icon
Tagged: map icon
- This topic has 11 replies, 2 voices, and was last updated 1 month, 1 week ago by
oley.
-
AuthorPosts
-
September 5, 2025 at 1:35 pm #16958
oley
ParticipantHi,
I do not understand how to set custom icons for the map plugin locations.
I have my custom icon(s) in c:\Program Files\SCADA\ScadaWeb\wwwroot\plugins\Map\images\
pv-icon-error.png
pv-icon-normal.png
pv-icon-unbound.png
pv-icon-undefined.pngIn my view I have:
<Location>
<Name>Test</Name>
<Descr></Descr>
<Icon>pv-icon-{status}</Icon>
<Lat>54.4213</Lat>
<Lon>21.174</Lon>
<StatusCnlNum>0</StatusCnlNum>
<Links>
<Link viewID=”281″ />
</Links>
</Location>I tried different name schemes in Icon tag (with and without extension), but the map shows only standard markers.
Best regards
September 5, 2025 at 2:45 pm #16961
MikhailModeratorHi,
Custom icons are configured in PlgMap.xml. Then they can be used in map views. Use the existing Site icon as an example.September 6, 2025 at 6:57 am #16963oley
ParticipantHi,
thank you, it works like a charm, but…
Every upload of the configuration rewrite my PlgMap.xml file.
What to do to prevent this?September 8, 2025 at 11:08 am #16980
MikhailModeratorHi,
PlgMap.xml must be located in the project as a part of it.September 8, 2025 at 12:29 pm #16987oley
ParticipantHi,
of course. Now it works fine. Thanks.
September 10, 2025 at 9:01 am #17004oley
ParticipantHi,
I have some other questions according the state.
In the documentation I read:Icons of the Classic type icons are based on an image file. The file name has a suffix corresponding to the object status: undefined, normal, error, and unbound (the status is not bound to a channel).
Than later:
StatusCnlNum – the number of the input channel that shows the object status. Equals 0 if the channel is not specified. Valid channel data: channel status equal to 0 means that the object status is not defined, channel value equal to 0 means the object is normal, channel value equal to 1 means the object is in an error state;So I have to define a channel to visualize the status?
When the unbound icon is displayed?September 10, 2025 at 12:25 pm #17009
MikhailModeratorHi,
You can see it in Live Demo.
Blue marker is unbound, while green (or red) marker is bound to a channel.
Yes, a channel is needed to define marker status.September 10, 2025 at 12:27 pm #17010
MikhailModeratorFor example,
<Location> <Name>Eiffel Tower</Name> <Descr>Avenue Anatole France, Paris, France</Descr> <Icon></Icon> <Lat>48.858222</Lat> <Lon>2.2945</Lon> <StatusCnlNum>104</StatusCnlNum> <DataItems> <DataItem cnlNum="101" /> <DataItem cnlNum="105">My text</DataItem> </DataItems> <Links> <Link viewID="2" /> <Link viewID="2">My link</Link> </Links> </Location>September 19, 2025 at 2:21 pm #17087oley
ParticipantHi,
I can not set the undefined icon.
Status channel equals 1 (and every positive) shows error icon, 0 and -1 (or any negative) shows normal.September 22, 2025 at 9:49 am #17095
MikhailModeratorHi,
From the manual: Valid channel data: channel status equal to 0 means that the object status is not defined, channel value equal to 0 means the object is normal, channel value equal to 1 means the object is in an error stateSo you need to set the channel status to undefined (0).
September 22, 2025 at 9:49 am #17096
MikhailModeratorChannel data contains value and status.
September 23, 2025 at 11:53 am #17101oley
ParticipantHi, got it! Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.