Module: cercaliagl/control/LayerRegions


Classes

LayerRegions

Members

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

Type Definitions

LayerServers{Object}

Properties:
Name Type Description
servers Array.<string>

Servers

layer number

Layer