createAlarmIcon
dojox.gfx.Group
createAlarmIcon([radius=21], [color='red'], [root=getCreator()])
- Parameters:
-
[radius=21] <number> -
[color='red'] <string|number[]|dojo.Color> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group
createArrowIcon
dojox.gfx.Group
createArrowIcon([scale=8], [color='blue'], [root=getCreator()])
todo: should perhaps create a "real" shape (inherit from dojox.gfx.Shape)
so we could set stroke etc on it as any other shape
(create "clipart shape factory"?)
todo: could expose more params
- Parameters:
-
[scale=8] <number> -
[color='blue'] <string|number[]|dojo.Color> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group
createBitmapIcon
dojox.gfx.Group
createBitmapIcon(urlOrImage, [anchor='center'], [root=getCreator()])
- Parameters:
-
urlOrImage <string|Image>(todo: support dojox.gfx.Image also?) -
[anchor='center'] <string|function|(x,y)> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group
createFatPointIcon
dojox.gfx.Shape
createFatPointIcon(fp, [root=getCreator()])
to be used with the standard Franson.Map.Marker
- Parameters:
-
fp <Franson.Fatpoint> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Shape
createNeedleIcon
dojox.gfx.Group
createNeedleIcon([size=8], [color='blue'], [root=getCreator()])
- Parameters:
-
[size=8] <number> -
[color='blue'] <string|number[]|dojo.Color> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group
createPinIcon
dojox.gfx.Group
createPinIcon([color='red'], [root=getCreator()])
creates a default icon, something resembling the standard google marker.
- Parameters:
-
[color='red'] <string|number[]|dojo.Color> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group
createSimplifiedTrack
dojox.gfx.Shape
createSimplifiedTrack(points, [options], [root=getCreator()])
todo: create a base version of this that only generates a simplified polyline
todo: chould separate this even more and create a non-graphics aware simplifier
todo: should this be in this module?
- Parameters:
-
points <Iterable> -
[options] <literal> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Shape
createTextLabel
dojox.gfx.Group
createTextLabel(text, [options], [root=getCreator()])
- Parameters:
-
text <string> -
[options] <literal> -
[root=getCreator()] <dojox.gfx.Group>
- Returns:
dojox.gfx.Group