Module: cercaliagl/control/LayerRegionsOptions


Members

LayerRegionsOptions{Object.<string, string>}

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);