Class: StaticMap

cercalia.service.StaticMap


new cercalia.service.StaticMap()

src/cercalia/service/staticmap.js, line 15

Constructor del servei Service StaticMap

Extends

Methods

createFromMap(map, callbackFn)

src/cercalia/service/staticmap.js, line 109

Create a static map from parameter map. This map includes markers and features drawn.
There is a restriction for markers: Icon markers will be drawn if icon image is accessible from Internet.
Callback function will receive an HTMElement ` with generated image

Name Type Description
map cercalia.Map

Map

callbackFn function

Callback function

createFromParams(staticMapParams, callbackFn)

src/cercalia/service/staticmap.js, line 235

Create a static map from parameters. Callback function will receive an HTMElement with generated image

Name Type Description
staticMapParams

Parameters static image

Name Type Description
width number | undefined

Width image

height number | undefined

Height image

center number | undefined

Center. Ignored if bounds is provided

bounds number | undefined

Map bounds

zoom number | undefined

Zoom. Ignored if bounds is provided

callbackFn function

Callback function

getClass(){string} inherited

src/cercalia/object.js, line 41
Returns:
Get Class name of object

getId(){string} inherited

src/cercalia/object.js, line 33
Returns:
Unique Id.