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 mapcercalia.Map Map
callbackFnfunction 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 staticMapParamsParameters static image
Name Type Description widthnumber | undefined Width image
heightnumber | undefined Height image
centernumber | undefined Center. Ignored if
boundsis providedboundsnumber | undefined Map bounds
zoomnumber | undefined Zoom. Ignored if
boundsis providedcallbackFnfunction Callback function
-
Returns:
Get Class name of object
-
Returns:
Unique Id.