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

name: string

Name 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_name", false, 0.5);