Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this tutorial, we will add markers to the project.

...

IdentifierTitleData type
store_idStore IDinteger
addressStore addressstring
store_typeStore typestring

opening_hours

Opening hours

string
monthly_rentMonthly rentinteger
contactContact emailstring
linkStore web linkstring
parkingDesignated parking lotstring
employeesNumber of employeesinteger
latStore's latitudelatitude
lngStore's longitudelongitude

...

Code Block
titleStores dataset syntax
{
    "name": "stores",
    "type": "dataset",
    "title": "Stores",
    "description": "All blue and green stores.",
    "properties": {
        "featureTitle": {
            "type": "function",
            "value": "concat",
            "content": [
                {
                    "type": "text",
                    "value": "Store n."
                },
                {
                    "type": "property",
                    "value": "store_id"
                }
            ]
        },
        "featureSubtitle": {
            "type": "property",
            "value": "address"
        },
        "featureAttributes": [
            {
                "type": "property",
                "value": "opening_hours",
                "layout": "primary"
            },
            {
                "type": "property",
                "value": "monthly_rent",
                "format": {
                    "type": "number",
                    "fraction": 0,
                    "symbol": "CZK"
                },
                "layout": "primary"
            },
            {
                "type": "property",
                "value": "parking",
                "layout": "secondary"
            },
            {
                "type": "property",
                "value": "employees",
                "layout": "secondary"
            },
            {
                "type": "property",
                "value": "contact",
                "format": {
                    "type": "email"
                },
                "layout": "secondary"
            },
            {
                "type": "property",
                "value": "link",
                "format": {
                    "type": "link"
                },
                "layout": "secondary"
            }
        ]
    },
    "ref": {
        "type": "dwh",
        "subtype": "geometryPoint",
        "primaryKey": "store_id",
        "categorizable": true,
        "fullTextIndex": true,
        "properties": [
            {
                "name": "store_id",
                "title": "Store ID",
                "column": "store_id",
                "type": "integer",
                "filterable": false
            },
            {
                "name": "address",
                "title": "Store address",
                "column": "address",
                "type": "string",
                "filterable": false
            },
            {
                "name": "store_type",
                "title": "Store type",
                "column": "store_type",
                "type": "string",
                "filterable": true
            },
            {
                "name": "opening_hours",
                "title": "Opening hours",
                "column": "opening_hours",
                "type": "string",
                "filterable": true
            },
            {
                "name": "monthly_rent",
                "title": "Monthly rent",
                "column": "monthly_rent",
                "type": "integer",
                "filterable": true
            },
            {
                "name": "contact",
                "title": "Contact email",
                "column": "contact",
                "type": "string",
                "filterable": false
            },
            {
                "name": "link",
                "title": "Store web link",
                "column": "link",
                "type": "string",
                "filterable": false
            },
            {
                "name": "parking",
                "title": "Designated parking lot",
                "column": "parking",
                "type": "string",
                "filterable": true
            },
            {
                "name": "employees",
                "title": "Number of employees",
                "column": "employees",
                "type": "integer",
                "filterable": true
            },
            {
                "name": "lat",
                "title": "Store's latitude",
                "column": "lat",
                "type": "latitude",
                "filterable": false
            },
            {
                "name": "lng",
                "title": "Store's longitude",
                "column": "lng",
                "type": "longitude",
                "filterable": false
            }
        ]
    }
}


...