Class: MapMarkerModel

Core.MapMarker MapMarkerModel

MapMarkerModel

new MapMarkerModel(marker, polygon, wkt, markers, zoomLevel, type, mapMarkerStyleId)

modules/mapMarker/model.js, line 62
Model for MapMarker and Highlighting
Name Type Default Description
marker Object {} The marker. May be an olOverlay or an olVectorLayer. Depends on config.
polygon VectorLayer The polygon vector layer.
wkt String "" The wkt.
markers Array.<Object> [ An array containing multiple markers.
zoomLevel Number 7 The zoomLevel for marker.
type String "Overlay". The type of the marker, can be "Overlay" or "Layer".
mapMarkerStyleId String "mapMarkerStyle". The styleId of the mapMarker. used for type="Layer".
Fires:

Extends

Methods

createLayerMarker(){void}

modules/mapMarker/model.js, line 119
Creates the layerMarker.
Fires:

createMarker(type){void}

modules/mapMarker/model.js, line 85
Creates the mapMarker based on the configured type.
Name Type Description
type String Type of Marker coming from Config.js. Possible values are "Overlay" or "Layer".

createOverlayMarker(){void}

modules/mapMarker/model.js, line 104
Creates the overlayMarker.
Fires:

featureIsPoint(){Boolean}

modules/mapMarker/model.js, line 274
Checks if wkt is a point geometry
Returns:
if wkt is a point, false if it is another geometry, undefined if no feature given

getCenterFromExtent(extent){Array.<Number>}

modules/mapMarker/model.js, line 181
creates the center coordinate from a given extent
Name Type Description
extent Array.<Number> extent
Returns:
coordinate

getExtent(){ol/Extent}

modules/mapMarker/model.js, line 169
Returns the extent of the feature.
Returns:
the extent.

getFeature(){Feature}

modules/mapMarker/model.js, line 158
Returns the feature from wkt.
Returns:
The feature from wkt.

getWKTGeom(type, geom){string}

modules/mapMarker/model.js, line 196
Help function for determining a feature with textual description
Name Type Description
type string Geometrietype
geom Array.<number> Array with coordinate values
Returns:
WellKnownText-Geom

hideFeature(){void}

modules/mapMarker/model.js, line 265
Deletes the polygon

setMapMarkerPointStyle(markerLayer, styleId){void}

modules/mapMarker/model.js, line 145
Sets the point style of the marker if its type is "Layer".
Name Type Description
markerLayer VectorLayer The markerLayer.
styleId String The style id.

setMapMarkerPolygonStyle(mapMarkerStyleId){void}

modules/mapMarker/model.js, line 287
SetMapMarkerPolygonStyle styles the mapMArker polygon via the style model from the stylelist.
Name Type Description
mapMarkerStyleId string styleId for the mapMarker polygon to find the style model
Fires:

setMarker(value){void}

modules/mapMarker/model.js, line 321
setter for marker
Name Type Description
value * todo

setMarkerFromParamUrl(value){void}

modules/mapMarker/model.js, line 366
setter for startMarker
Name Type Description
value * todo

setMarkers(value){void}

modules/mapMarker/model.js, line 330
setter for markers
Name Type Description
value * todo

setPolygon(value){void}

modules/mapMarker/model.js, line 339
setter for polygon
Name Type Description
value * todo

setProjectionFromParamUrl(value){void}

modules/mapMarker/model.js, line 357
setter for projectionFromParamUrl
Name Type Description
value * todo

setStyle(value){void}

modules/mapMarker/model.js, line 348
setter for style
Name Type Description
value * todo

setType(value){void}

modules/mapMarker/model.js, line 375
Setter for attribute "type".
Name Type Description
value String Type of mapMarker.

setWkt(type, geom){void}

modules/mapMarker/model.js, line 310
setter for wkt
Name Type Description
type * todo
geom * todo

setZoomLevel(value){void}

modules/mapMarker/model.js, line 300
setter for zoomLevel
Name Type Description
value * todo

showFeature(){void}

modules/mapMarker/model.js, line 254
Creates a polygon around the WKT feature