I’m trying to define custom colors for active places in Web API but I don’t want to create multiple “if” for each ID.
In MapEditor every place has something called “Tags” and I have no Idea how to use it, if it’s possible because I didn’t found anything even in documentation.
I’ll be happy for any help, thanks.
Tags are used within VisioMapEditor to help differentiate objects (e.g. display/hide them when editing the map, exclude/include them for a given target). They are not embedded in the generated bundle when building the map for web.
This kind of feature usually relies on the category of each object. This information is best kept outside of the map itself, in a Content Management System or an external resource like an Excel sheet, managed by the client.
For now, I would suggest creating a table that would record all place IDs and qualify them with a tag or directly associate them to a color code. You can then refer to that table when setting the active place and use the corresponding color.
Hope this helps
thanks for the answer, It’s not what I wanted to hear but thanks for explanation. So “Tags” are useless for now, good to know.
Don’t you know if there is a chance in the future to make it useful? Maybe one checkbox “Include in map bundle”?
For the record, tags are not useless but their use is focused on map edition and bundle generation.
They are not included in the bundle, that’s true and that might help developers like you so I added a feature request in our system.
+1 for having tags included in a bundle.
Meanwhile, you can use categories to achieve the same. You can be pretty creative on how you use categories as long as you are using the web SDK. With mobile SDK categories are a less elegant solution.