Feature Property
A feature property is every piece of data you specify for your feature.
In a Google Sheet, each column that is not one of the reserved ones for features (
title
,country
,region
andcity
for Geographic Area, andtitle
,type
andcoordinates
for Geographic Location) represents a feature property.
For example:
In apps of subtype Geographic Area, your feature can have properties
fill_color
,risk_rating
,population
,majority_age
, etc, that represent a piece of data for your country, state/region or city.In apps of subtype Geographic Location, your feature can have properties
phone
,address
,contact_email
,capacity
, etc, that represent some metadata for your desired feature type.
A feature property belongs to a feature. A feature can have many feature properties.
Fields
A feature property has a name
, a value
and a dataType
.
Field | Description | Example |
---|---|---|
| The name of your feature property. |
|
| The data type of the value of your feature property, to be converted later in our end. |
|
| The value of your feature property. |
|
Reserved Names
Custom Style: Color
Name | Description | Validation | Default value | Example |
---|---|---|---|---|
fill_color | Fill color of your polygons/markers. | Valid hexadecimal colors (see Color codes). |
|
|
line_color | Stroke color of your polygons/markers. | Valid hexadecimal colors (see Color codes). |
|
|
Custom Style: Shape
Name | Description | Validation | Default value | Example |
---|---|---|---|---|
circle_radius | Radius of the circle (only apps of subtype | An integer between 1 and 30. |
|
|
circle_border_width | Border width of the circle (only apps of subtype | An integer between 1 and 30. |
|
|
Custom Style: Legend
Name | Description | Validation | Default value | Example |
---|---|---|---|---|
legend_title | Title of the legends to be displayed on the map. | None. | None. |
|
legend_description | Description of the legends. | None. | None. |
|
photos | An array of picture URLs to display in the legend. | Valid array of strings. | None. |
|
Hotel Data
Name | Required | Description | Validation | Example |
---|---|---|---|---|
country_name | Either country (feature) or country_name. | The country name, in case you haven't specified the ISO code in field | Non-empty string values. |
|
bcom_id | Either address (feature) or bcom_id. | The ID of the hotel in Booking.com. We will use it to fetch the hotel details from the Booking.com API, such as the chain name, the stars, the number of rooms, the link or the thumbnail.
If you specify | Valid integer. |
|
city_name | true | City name. | Non-empty string values. |
|
green_score | true | The green score of the hotel. | Valid integer. |
|
green_score_icon | false | Any icon you want to display in the hotel card, in SVG format. | Valid SVG object. |
|
Examples
In apps of subtype Geographic Area:
In apps of subtype Geographic Location:
Pictures in the legend, defined in feature property with name photos
:
In the hotel card:
Color Codes
We support hexadecimal color codes to customize the map. Hexadecimal color codes can be picked from a design software or an online tool like the Colour Picker from Google.
Last updated