Configuration

Edit Configuration

PUT https://ushahididocs.api.ushahidi.io/api/v3/config/map

Request Body

Name
Type
Description

lat

Integer

Map latitude

default_view

Object

This object contains more data on the map view

location_precision

Integer

location precision

cluster_radius

Integer

The cluster radius

clustering

Boolean

True for clustering and false for not clustering

url

String

Configuration URL

id

String

Body Identifier for configuration. E.g. Map

fit_map_boundaries

Boolean

Set True to fit map boundaries and false not to fit boundaries

baselayer

String

View base area

zoom

integer

Map zoom

lon

Integer

Map longitude

color

String

view color

icon

String

map icon name

allowed_privileges

Objects

The configuration privilege

{
    "id": "map",
    "url": "http://localhost:8000/api/v3/config/map",
    "clustering": false,
    "cluster_radius": 80,
    "location_precision": 2,
    "default_view": {
        "lat": -1.3048035,
        "lon": 36.8473969,
        "zoom": 3,
        "baselayer": "MapQuestAerial",
        "fit_map_boundaries": true,
        "icon": "map-marker",
        "color": "blue"
    },
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}