Package org.teamapps.ux.component.map
Class MapView2<RECORD>
- java.lang.Object
-
- org.teamapps.ux.component.AbstractComponent
-
- org.teamapps.ux.component.map.MapView2<RECORD>
-
- All Implemented Interfaces:
ClientObject,Component
public class MapView2<RECORD> extends AbstractComponent
-
-
Field Summary
Fields Modifier and Type Field Description Event<LocationChangedEventData>onLocationChangedEvent<Location>onMapClickedEvent<Marker<RECORD>>onMarkerClickedEvent<AbstractMapShape>onShapeDrawnEvent<java.lang.Float>onZoomLevelChanged-
Fields inherited from class org.teamapps.ux.component.AbstractComponent
DELETED_ATTRIBUTE, onRendered
-
-
Constructor Summary
Constructors Constructor Description MapView2(java.lang.String baseApiUrl, java.lang.String accessToken, java.lang.String styleUrl)
-
Method Summary
-
Methods inherited from class org.teamapps.ux.component.AbstractComponent
createUiReference, getDebuggingId, getId, getParent, getSessionContext, isRendered, isVisible, mapAbstractUiComponentProperties, queueCommandIfRendered, render, reRenderIfRendered, setAttribute, setCssStyle, setDebuggingId, setParent, setVisible, toggleCssClass, toString, unrender
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teamapps.ux.component.ClientObject
handleUiQuery
-
Methods inherited from interface org.teamapps.ux.component.Component
setAttribute, setCssStyle, setMargin, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setShadow, toggleCssClass
-
-
-
-
Field Detail
-
onLocationChanged
public final Event<LocationChangedEventData> onLocationChanged
-
onZoomLevelChanged
public final Event<java.lang.Float> onZoomLevelChanged
-
onShapeDrawn
public final Event<AbstractMapShape> onShapeDrawn
-
-
Method Detail
-
createUiComponent
public org.teamapps.dto.UiComponent createUiComponent()
- Specified by:
createUiComponentin classAbstractComponent
-
handleUiEvent
public void handleUiEvent(org.teamapps.dto.UiEvent event)
-
addPolyLine
public void addPolyLine(MapPolyline polyline)
-
addShape
public void addShape(AbstractMapShape shape)
-
removeShape
public void removeShape(AbstractMapShape shape)
-
clearShapes
public void clearShapes()
-
clearMarkerCluster
public void clearMarkerCluster()
-
getBaseApiUrl
public java.lang.String getBaseApiUrl()
-
getAccessToken
public java.lang.String getAccessToken()
-
getStyleUrl
public java.lang.String getStyleUrl()
-
setStyleUrl
public void setStyleUrl(java.lang.String styleUrl)
-
setZoomLevel
public void setZoomLevel(int zoomLevel)
-
setLocation
public void setLocation(Location location)
-
setLocation
public void setLocation(double latitude, double longitude)
-
setLocation
public void setLocation(Location location, long animationDurationMillis, int targetZoomLevel)
-
setLatitude
public void setLatitude(double latitude)
-
setLongitude
public void setLongitude(double longitude)
-
getZoomLevel
public float getZoomLevel()
-
getLocation
public Location getLocation()
-
clearMarkers
public void clearMarkers()
-
getDefaultTemplate
public Template getDefaultTemplate()
-
setDefaultMarkerTemplate
public void setDefaultMarkerTemplate(Template defaultTemplate)
-
getTemplateDecider
public TemplateDecider<Marker<RECORD>> getTemplateDecider()
-
setMarkerTemplateDecider
public void setMarkerTemplateDecider(TemplateDecider<Marker<RECORD>> templateDecider)
-
getMarkerPropertyProvider
public PropertyProvider<RECORD> getMarkerPropertyProvider()
-
setMarkerPropertyProvider
public void setMarkerPropertyProvider(PropertyProvider<RECORD> propertyProvider)
-
setMarkerPropertyExtractor
public void setMarkerPropertyExtractor(PropertyExtractor<RECORD> propertyExtractor)
-
isDisplayAttributionControl
public boolean isDisplayAttributionControl()
-
setDisplayAttributionControl
public void setDisplayAttributionControl(boolean displayAttributionControl)
-
-