Extends
Methods
-
Disable and remove layer.
-
Options available for regions.
- cercaliagl.control.LayerRegionsOptions.NONE: No layer region option. Value:
none
- cercaliagl.control.LayerRegionsOptions.NEIGHBORHOODS: Layer neighborhoods. Value:
neighborhoods
- cercaliagl.control.LayerRegionsOptions.POSTALCODES: Layer postal codes. Value:
postalcodes
- cercaliagl.control.LayerRegionsOptions.MUNICIPALITIES: Layer municipalities. Value:
municipalities
Example: Enable postal codes feature layer.
const map = new cercaliagl.Map({ target: 'map' }); const control = map.getControlByName(cercaliagl.control.MapControls.LAYER_REGIONS); control.enableOption(cercaliagl.control.LayerRegionsOptions.POSTALCODES);
Name Type Description option
string Option to enable. See above
- cercaliagl.control.LayerRegionsOptions.NONE: No layer region option. Value:
-
Returns
cercalia
Map objectReturns:
Cercalia map.
-
Get class name.
Returns:
Class name.
-
Get control HTML Element
Returns:
HTML Element
-
Get control id.
Returns:
Id.
-
Returns
mapboxgl
Map object -
Get control name. Null if control has not defined name.
Returns:
Class name.
-
Hide control.
-
Show control.