Zum Hauptinhalt springen

SaveMapCss

Class Description

Update the current MapCss of a guide. It will be automatically compiled to all target formats.

RPC Configuration

Rpc Name:

Plain: SaveMapCss
Sha1: d63c0b819f0244459abc77f1d9d0f62a31441eba
Rpc Call

RPCs can be called by their plain name or their SHA1 representation.

Rpc Parameters:

"building_id" : int,
"style" : string

Requires Login:

true

Requires Context:

Context

The context providing parameter can either be a contagt-id (8-Bytes, Alphaumeric) or an integer as a building id. The context parameter name should make the choice obviouse, the type has not to be defined manually.

true

Requires contextParamName:

building_id

Requires WriteAccess:

WriteAccess

Only accounts that have an explicit write access to the defined context can execute this RPC, no matter if the authentication level matches or not.

true

Requires AuthenticationLevel:

Context

Authentication levels allow the SuperUser to define a by-RPC granular access configuration. If RPCs are chained in a single unified call and lenient is enabled, all allowed RPCs will be executed, while execution will fail entirely with lenient set to false.

LOCAL_ADMINISTRATOR

Requires Subbuilding Merge Strategy:

SUBBUILDING_ONLY

Cache Configuration

Response Cache

All writing RPCs are not Cacheable, also Caching will be disabled by the paramters nocache and readonly.

Cache enabled:

false

Sample Request

->

{
"building_id": 131,
"style": "\n \n canvas {\n fill-color: #FFFFFF\n }\n \n area[surface=background] {\n fill-color: #FFFFFF;\n fill-opacity: 1;\n z-index: 1;\n }\n \n area|z18-[surface=floor] {\n fill-color: #F5F4FF;\n fill-opacity: 1;\n z-index: 31;\n }\n \n area|z18-[surface=steps] {\n fill-color: #FFA384;\n fill-opacity: 1;\n opacity: 1;\n z-index: 33;\n width: 1.5;\n }\n \n area|z18-[surface=elevator] {\n fill-color: #CCA384;\n fill-opacity: 1;\n width: 1.5;\n opacity: 1;\n z-index: 31;\n }\n \n area|z18-[surface=elevator] {\n fill-color: #CCA384;\n fill-opacity: 1;\n z-index: 31;\n }\n \n area|z19-[surface=door] {\n fill-color: #607F84;\n fill-opacity: 0.6;\n color: #000000;\n z-index: 39;\n }\n \n area|z18-[surface=balcony] {\n fill-color: #875646;\n fill-opacity: 0.6;\n z-index: 33;\n }\n \n area|z15-[surface=solid] {\n fill-color: #0B0811;\n fill-opacity: 0.9;\n z-index: 30;\n }\n \n area|z15-[surface=transparent] {\n fill-color: #FFFFFF;\n fill-opacity: 0.4;\n z-index: 30;\n }\n \n area|z15-[surface=plant] {\n fill-color: #83DF60;\n fill-opacity: 0.9;\n z-index: 30;\n }\n \n area|z15-[surface=sand] {\n fill-color: #FDD485;\n color: #000000;\n opacity: 0.8;\n fill-opacity: 0.9;\n width: 1.5;\n z-index: 30;\n dashes: 9, 9;\n }\n \n area|z0-[surface=concrete] {\n fill-color: #DDDDDD;\n fill-opacity: 0.9;\n z-index: 30;\n color: #222222;\n width: 1.5;\n opacity: 0.6;\n dashes: 9, 3;\n }\n \n way|z0-[surface=concrete] {\n fill-opacity: 0.9;\n z-index: 30;\n color: #222222;\n width: 1.5;\n opacity: 0.6;\n dashes: 9, 3;\n }\n \n area|z0-[surface=paving_slab] {\n fill-color: #E0D0DB;\n color: #222222;\n fill-opacity: 0.6;\n width: 1.5;\n z-index: 30;\n dashes: 5, 2;\n }\n \n way|z0-[surface=paving_slab] {\n color: #222222;\n fill-opacity: 1;\n width: 1.5;\n z-index: 30;\n dashes: 5, 2;\n }\n \n area|z0-[surface=green] {\n fill-color: #88C037;\n fill-opacity: 0.2;\n z-index: 30;\n }\n \n area|z19-[surface=window] {\n fill-color: #13C5CF;\n fill-opacity: 0.3;\n color: #000000;\n width: 1.5;\n z-index: 35;\n }\n \n area|z19-[surface=sanitary] {\n fill-color: #EECFFC;\n fill-opacity: 1;\n width: 1.5;\n z-index: 36;\n }\n \n area|z19-[surface=beverages] {\n fill-color: #E3EFEA;\n fill-opacity: 1;\n width: 1.5;\n z-index: 36;\n }\n \n area|z19-[surface=room] {\n fill-color: #E9E9E9;\n fill-opacity: 1;\n width: 1.5;\n z-index: 36;\n }\n \n area|z18-[wall=yes] {\n color: #000000;\n fill-color: #E9E9E9;\n fill-opacity: 2;\n z-index: 22;\n }\n \n way|z19-[handrail=yes] {\n color: #111111;\n width: 1.0;\n z-index: 27;\n dashes: 5, 5;\n }\n \n area[building=yes] {\n fill-color: #DDDAD3;\n fill-opacity: 0.8;\n opacity:0.5;\n color: #CCC9C4;\n width: 1.5;\n z-index: 2;\n }\n \n way|z0-15[wall=yes] {\n color: #000000;\n width: 0.3;\n z-index: 50;\n }\n \n way|z15-18[wall=yes] {\n color: #000000;\n width: 0.5;\n z-index: 50;\n }\n \n way|z18-[wall=yes] {\n color: #000000;\n width: 1.0;\n z-index: 50;\n }\n \n way|z19-[surface=door] {\n color: #DBDBDB;\n width: 1.0;\n z-index: 40;\n }\n "
}

<-

true