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 providedbounds
number | undefined Map bounds
zoom
number | undefined Zoom. Ignored if
bounds
is providedcallbackFn
function Callback function
-
Returns:
Get Class name of object
-
Returns:
Unique Id.