new MapMarkerView(config)
modules/mapMarker/view.js, line 30
The view reacts to the backbone radio and hides or shows the marker.
Name | Type | Description |
---|---|---|
config |
Object | Config for mapMarker model. |
Fires:
- Addon#event:RadioRequestAddonGetMarkerPosition
- Core#event:RadioRequestMapViewGetResolutions
- Core#event:RadioTriggerMapViewSetCenter
- Core#event:RadioTriggerMapZoomToExtent
- Core.ModelList#event:RadioTriggerModelListShowModelInTree
- Core.ModelList#event:RadioTriggerModelListAddModelsByAttributes
- Core.ModelList#event:RadioTriggerModelListSetModelAttributesById
- Tools.Filter#event:RadioTriggerFilterResetFilter
- Core#event:RadioTriggerMapRender
- MapMarker#event:RadioTriggerMapMarkerShowMarker
- Core#event:RadioRequestUtilIsViewMobile
Listens to Events:
Extends
Methods
-
hideMarker(){void}
modules/mapMarker/view.js, line 283 -
Hide Map marker
-
hidePolygon(){void}
modules/mapMarker/view.js, line 307 -
Hides Polygon
-
hideWktFeature(){void}
modules/mapMarker/view.js, line 335 -
Hides a feature
-
render(){object}
modules/mapMarker/view.js, line 72 -
renders
-
setLayerFeatureCoords(marker, coordinate){void}
modules/mapMarker/view.js, line 274 -
If the marker is an layer, set the coordinates of its first (and single) feature.
Name Type Description marker
ol/VectorLayer The marker as an ol/VectorLayer.. coordinate
* Coordinate. -
setOverlayPosition(marker, coordinate)
modules/mapMarker/view.js, line 256 -
If the marker is an overlay the position of the overlay is set.
Name Type Description marker
ol/Overlay The marker as an ol/Overlay. coordinate
Array.<Number> The coordinate. Fires:
-
showMarker(coordinate){void}
modules/mapMarker/view.js, line 236 -
Shows the marker depending on the marker type.
Name Type Description coordinate
Array.<Number> The coordinate. -
showPolygon(){void}
modules/mapMarker/view.js, line 300 -
Shows Polygon
-
showStartMarker(){void}
modules/mapMarker/view.js, line 345 -
todo
Fires:
-
showWktFeature(wktFeature){void}
modules/mapMarker/view.js, line 316 -
Shows a feature from WKT String
Name Type Description wktFeature
String WKT of feature -
zoomTo(hit){void}
modules/mapMarker/view.js, line 92 -
Zooms to hit from searchbar.
Name Type Description hit
Object hit coming from Searchbar Fires:
- Core#event:RadioRequestMapViewGetResolutions
- Core#event:RadioTriggerMapZoomToExtent
- Core#event:RadioTriggerMapViewSetCenter
- Core#event:RadioRequestUtilIsViewMobile
- Core.ModelList#event:RadioTriggerModelListShowModelInTree
- Core.ModelList#event:RadioTriggerModelListAddModelsByAttributes
- Core.ModelList#event:RadioTriggerModelListSetModelAttributesById
- Tools.Filter#event:RadioTriggerFilterResetFilter
-
zoomToBKGSearchResult(data){void}
modules/mapMarker/view.js, line 219 -
Getriggert von bkg empfängt diese Methode die XML der gesuchten Adresse
Name Type Description data
string Die Data-Object des request. Fires: