Users can color code the markers/pins that appear on the map either to be of the same color or different based on some condition.
Scenario 1—Change the default marker
Installing QB Maps in your app sets all the pins to appear as a Blue marker with the letter D on it by default: ![]()
This is because the value of the QBMaps Marker field in the locations table is set to D-Blue. We provide you with a number of different options that you can choose from to set the type of marker you want to use. The available options are:
Available pin colors
Blue
PaleBlue
Red
Green
DarkGreen
Brown
Yellow
Purple
Pink
Orange
Available letters/numbers
Letters A–Z and numbers 1–100 are available for each color.
You can use any combination of colors and letters/numbers—for example, A-DarkGreen
, 1-Purple
, or 11-Orange
.
Note
The value of the field must be in the format <letter/number>-<color>, with no space in between.
Scenario 2—Set marker/pin color dynamically
You can also change the color of the marker/pin dynamically based on the value of a field in that record. The example below illustrates how to do this, along with an explanation.
Say a client managing records of patients in a hospital wants to set the pins based on their blood types. One example of the formula that the client can use is:
If([Client Blood Type] = "O", "O-Red",
[Client Blood Type] = "A", "A-Orange",
[Client Blood Type] = "B", "B-Purple",
[Client Blood Type] = "AB", "C-Blue",
"N-Green")To learn more about how to create formulas in Quickbase, refer to the official documentation on the Quickbase Help Site.
If you have set up the QB Maps extension to show the legend on the map, you also need to edit the Legend Properties field in the QB Maps table, which is created in your app after installing the extension.
For the example above, the value of the Legend Properties field is:
"O-Red|Blood Group O
\nA-Orange|Blood Group A
\nB-Purple|Blood Group B
\nC-Blue|Blood Group AB"The Legend Properties field needs to be in the same format as the example above.