Class: TilePoiMap

cercalia.TilePoiMap

new cercalia.TilePoiMap(options)

Class constructor to draw Caercalia Map POIS.Para hacer una descarga de pois que no sea de Cercalia vease el ejemplo.

Name Type Description
options

TilePoiMap options'

Name Type Description
tileSize number | undefined optional

Tile size in pixels. Default: 256.

map cercalia.Map

Map where markers will be painted.

createMarkersFunction function | undefined optional

Custom function to create markers. This function must return an array of markers. Then automatically markers will be drawn.

iconBigZoomLevel number | undefined optional

Zoom level when the icon size is changed. Only used in the default download version. Default 15.

Methods

Remove painted markers, for all zoom levels.

Remove all markers except a specified zoom.

Name Type Description
zoomLevel number

Zoom level to mantain (not clean).

Removes the map layer.

Modify the Cercalia's categories list to paint on map.

Name Type Description
categories Array.<string>

Categories list to paint.