SiteWatch API Help

setMaplayer

setMaplayer

Previous topic Next topic  

setMaplayer

Previous topic Next topic  

A method to show/hide a maplayer on the map.

 

Parameter

Value

id: string

Identity of object.

show: boolean

Show the maplayer on the map.

opacity: number (optional)

Transparency of the maplayer on the map (0 = No transparency, 1 = Full transparency).

 

Example:

map.setMaplayer("my_maplayer_identity", false, 0.5);