Custom map pins: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 27: Line 27:
===Example: Custom map pins for active and inactive accounts===
===Example: Custom map pins for active and inactive accounts===


In this example, we add a custom map pins for the account entity and differentiate between the active and inactive acounts.
In this example, we add custom map pins for the account entity and differentiate between the active and inactive accounts.


First, we have to define the style for the map pin. Go to the Account entity and open a view that is used in the map. In the style editor, click '''Add''' while ImageCellStyle is selected. This creates a new child style. We name it MapPin. The format string is defined as follows: ''Map_pins.{0}.png''. The Map_pins part describes the folder where the map pin images are stored. The following .{0} part represents the value. This is a placeholder for the map pin types mentioned above. It's either for Value or Raw Value.
First, we have to define the style for the map pin. Go to the Account entity and open a view that is used in the map. In the style editor, click '''Add''' while ImageCellStyle is selected. This creates a new child style. We name it MapPin. The format string is defined as follows: ''Map_pins.{0}.png''. Map_pins describes the folder where the map pin images are stored. The following .{0} represents the value. This is a placeholder for the map pin types mentioned above. It's either for Value or Raw Value.


[[File:Mappin style.PNG|alt=Style we define for the custom map pins|600px]]
[[File:Mappin style.PNG|alt=Style we define for the custom map pins|600px]]


The next step is to add the map pin to the view. Click '''Add Map Pin'''. As a type, we select Raw Vale. As we want to differentiate the records by their status code, set the field as statuscode. As a style, select the MapPin.
The next step is to add the map pin to the view. Click '''Add Map Pin'''. As a type, we select Raw Value. As we want to differentiate the records by their status code, set the field as statuscode. As a style, select the MapPin.


[[File:Configure mappin.PNG|alt=configure map pin window Raw value|600px]]
[[File:Configure mappin.PNG|alt=configure map pin window Raw value|600px]]
1,214

edits

Navigation menu