Constructor
new ShapesFactory(viewer, title)
Parameters:
Name | Type | Description |
---|---|---|
viewer |
Viewer | an instance of class Viewer |
title |
string | a string describing the type of shape |
Members
mode
A mutator defining the kind of subclass.
mode
A getter to obtain the kind of object created by a subclass.
Methods
close()
Close this factory. Disable its interaction processor.
hide()
Hide all the objects created by one subclass. (e.g. all the markers)
open(interaction, cursor)
Make this factory active.
Displays a cursor ( expectedly characteristic of the factory subclass ) and define
the interaction in use as long as it's active.
Parameters:
Name | Type | Description |
---|---|---|
interaction |
Interaction in the OpenLayers meaning | |
cursor |
string | A name picked in the standard CSS - Cursors list |
- Source:
- See:
remove(feature)
Remove one object created by a subclass.
Parameters:
Name | Type | Description |
---|---|---|
feature |
* | the object to remove. |
selected(feature)
Modify the look of feature to show that it's been selected. ( e.g. highlite it )
Parameters:
Name | Type | Description |
---|---|---|
feature |
An instance created by a subclass |
show()
Make visible all the objects created by one subclass. (e.g. all the markers)
unselected(feature)
Modify the look of feature to show that it's been unselected. ( e.g. display it normally )
Parameters:
Name | Type | Description |
---|---|---|
feature |
an instance created by a subclass. |