ChangeMapLayerOpacityRequest RPC
Allows user to change map layer opacity on a map.
Use cases
- change map layer opacity
Description
Requests a map layer opacity to be changed on a map.
Parameters
(* means the parameter is required)
Name | Type | Description | Default value |
---|---|---|---|
\* mapLayerId | String | id for maplayer to be modified (Oskari.mapframework.service.MapLayerService) | |
\* opacity | Number | desired opacity of the map layer (0-100) |
Examples
Change map layer opacity to 50 %.
var sb = Oskari.getSandbox();
var new_opacity = 50;
sb.postRequestByName('ChangeMapLayerOpacityRequest', [layer.id, new_opacity]);