new View(layer)
An interface for managing views on layers
Parameters:
Name | Type | Description |
---|---|---|
layer |
cartodb.CartoDBLayer.SubLayer | The layer whose view will be managed |
- Source:
Methods
(abstract) update(filterValues, descriptionValues)
Update the view by modifying the data for the layer
Parameters:
Name | Type | Description |
---|---|---|
filterValues |
Object.<string, Object.<string, string>> | The values object used to modify the query for this view |
descriptionValues |
Object.<string, string> | The values objects for replacing tokens in the descriptionTemplate |
- Source:
visibility(visible)
Change the visibility of the view's layer
Parameters:
Name | Type | Description |
---|---|---|
visible |
boolean |
- Source:
Events
updated
Legend HTML generated after a view modifies the data for its layer
Type:
- string
- Source: