Constructor Summary
Public Constructor | ||
public |
map popup constructor |
Method Summary
Public Methods | ||
public |
addMapClickFunction(func: function) Add a function to be called when the map is clicked but before any popups are implemented |
|
public |
addMapServicePopup(lyr: LayerEsriMapServer, selectionStyle: object): object |
|
public |
addMapServicePopupContent(feature: ol.Feature, lyr: LayerEsriMapServer, popupContent: string, esriName: string) |
|
public |
addPopupChangedFunction(chgFunction: popupChangedFunction) |
|
public |
addVectorPopup(lyr: LayerBase | *, popupContentFunction: popupCallback, selectionStyle: object): object Add popup to the map |
|
public |
|
|
public |
|
|
public |
init(theMap: ol.Map) map popup initialization |
|
public |
removeVectorPopup(lyr: LayerBase) |
Inherited Summary
From class MapInteractionBase | ||
public get |
initialized: boolean: * get if is initialized |
|
public get |
map: ol.Map: * get reference to the ol map object |
|
public |
Check the initialization status and throw exception if not valid yet |
|
public |
base initializer, returns true for already initialized |
|
protected |
Check the initialization status and throw exception if not valid yet |
Public Constructors
Public Methods
public addMapClickFunction(func: function) source
Add a function to be called when the map is clicked but before any popups are implemented
Params:
Name | Type | Attribute | Description |
func | function | the map click function |
public addMapServicePopup(lyr: LayerEsriMapServer, selectionStyle: object): object source
Params:
Name | Type | Attribute | Description |
lyr | LayerEsriMapServer | map server layer |
|
selectionStyle | object |
|
the selection style configuration |
selectionStyle.color | string |
|
the selection color |
selectionStyle.width | number |
|
the selection width for linear features |
selectionStyle.olStyle | object | function |
|
an openlayers style object or function |
public addMapServicePopupContent(feature: ol.Feature, lyr: LayerEsriMapServer, popupContent: string, esriName: string) source
Params:
Name | Type | Attribute | Description |
feature | ol.Feature | the ol feature |
|
lyr | LayerEsriMapServer | the map server layer |
|
popupContent | string | popup content |
|
esriName | string | esri layer name |
public addPopupChangedFunction(chgFunction: popupChangedFunction) source
Params:
Name | Type | Attribute | Description |
chgFunction | popupChangedFunction | popup change function |
public addVectorPopup(lyr: LayerBase | *, popupContentFunction: popupCallback, selectionStyle: object): object source
Add popup to the map
Params:
Name | Type | Attribute | Description |
lyr | LayerBase | * | The layer that the popup with act on |
|
popupContentFunction | popupCallback | popup content function that makes popup info |
|
selectionStyle | object |
|
the selection style configuration |
selectionStyle.color | string |
|
the selection color |
selectionStyle.width | number |
|
the selection width for linear features |
selectionStyle.olStyle | object | function |
|
an openlayers style object or function |
public clearSelection() source
public init(theMap: ol.Map) source
map popup initialization
Override:
MapInteractionBase#initParams:
Name | Type | Attribute | Description |
theMap | ol.Map | the ol map |