public class AjaxOpenLayersMap extends org.apache.wicket.markup.html.WebMarkupContainer implements IOpenLayersMap
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
AjaxOpenLayersMap(String id,
List<Layer> layers) |
AjaxOpenLayersMap(String id,
List<Layer> layers,
HashMap<String,String> options) |
AjaxOpenLayersMap(String id,
List<Layer> layers,
HashMap<String,String> options,
List<Feature> features) |
AjaxOpenLayersMap(String id,
List<Layer> layers,
HashMap<String,String> options,
List<Feature> features,
List<FeatureStyle> featureStyles) |
Modifier and Type | Method and Description |
---|---|
IOpenLayersMap |
addControl(IJavascriptComponent control)
Add a control.
|
IOpenLayersMap |
addFeature(Feature feature)
Add a feature.
|
IOpenLayersMap |
addFeatureStyle(FeatureStyle featureStyle)
Add a feature style.
|
IOpenLayersMap |
addLayer(Layer layer)
Add a layer.
|
IOpenLayersMap |
addOverlay(Overlay overlay)
Add an overlay.
|
IOpenLayersMap |
clearOverlays()
Clear all overlays.
|
Bounds |
getBounds() |
String |
getBusinessLogicProjection() |
LonLat |
getCenter() |
List<IJavascriptComponent> |
getControls() |
Vector |
getFeatureVector(String name) |
protected String |
getJSinit()
Generates the JavaScript used to instantiate this AjaxOpenLayersMap as an JavaScript class on
the client side.
|
String |
getJSInstance() |
String |
getJSinvoke(String invocation)
Convenience method for generating a JavaScript call on this AjaxOpenLayersMap with the given
invocation.
|
String |
getJSinvokeNoLineEnd(String invocation) |
List<Layer> |
getLayers() |
String |
getMarkersLayerName() |
List<Overlay> |
getOverlays() |
Integer |
getZoom() |
boolean |
isExternalControls() |
static void |
onPageRenderHead(org.apache.wicket.markup.head.IHeaderResponse response,
String pathToOpenLayersJS) |
IOpenLayersMap |
removeControl(IJavascriptComponent control)
Remove a control.
|
IOpenLayersMap |
removeFeature(Feature feature)
Remove an feature.
|
IOpenLayersMap |
removeFeatureStyle(FeatureStyle featureStyle) |
IOpenLayersMap |
removeOverlay(Overlay overlay)
Remove an overlay.
|
void |
setBounds(Bounds bounds) |
void |
setBusinessLogicProjection(String businessLogicProjection) |
void |
setCenter(LonLat center) |
void |
setCenter(LonLat center,
Integer zoom) |
void |
setExternalControls(boolean externalControls) |
void |
setLayers(List<Layer> layers) |
void |
setMarkersLayerName(String markersLayerName) |
void |
setOverlays(List<Overlay> overlays) |
void |
setVisibleOnlyLayers(String... names) |
void |
setZoom(Integer zoom) |
void |
toggleLayer(String name) |
void |
update(org.apache.wicket.ajax.AjaxRequestTarget target)
Update state from a request to an AJAX target.
|
getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onComponentTag, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
public AjaxOpenLayersMap(String id, List<Layer> layers, HashMap<String,String> options)
public AjaxOpenLayersMap(String id, List<Layer> layers, HashMap<String,String> options, List<Feature> features)
public static void onPageRenderHead(org.apache.wicket.markup.head.IHeaderResponse response, String pathToOpenLayersJS)
public void setExternalControls(boolean externalControls)
setExternalControls
in interface IOpenLayersMap
public boolean isExternalControls()
isExternalControls
in interface IOpenLayersMap
public void setBounds(Bounds bounds)
setBounds
in interface IOpenLayersMap
public Bounds getBounds()
getBounds
in interface IOpenLayersMap
public void setCenter(LonLat center)
setCenter
in interface IOpenLayersMap
public LonLat getCenter()
getCenter
in interface IOpenLayersMap
public void setZoom(Integer zoom)
setZoom
in interface IOpenLayersMap
public Integer getZoom()
getZoom
in interface IOpenLayersMap
public void setCenter(LonLat center, Integer zoom)
setCenter
in interface IOpenLayersMap
public IOpenLayersMap addControl(IJavascriptComponent control)
addControl
in interface IOpenLayersMap
control
- control to addpublic IOpenLayersMap addOverlay(Overlay overlay)
addOverlay
in interface IOpenLayersMap
overlay
- overlay to addpublic IOpenLayersMap addLayer(Layer layer)
layer
- layer to addpublic IOpenLayersMap addFeature(Feature feature)
feature
- feature to addpublic IOpenLayersMap addFeatureStyle(FeatureStyle featureStyle)
featureStyle
- featureStyle to addpublic IOpenLayersMap removeFeatureStyle(FeatureStyle featureStyle)
public IOpenLayersMap clearOverlays()
clearOverlays
in interface IOpenLayersMap
protected String getJSinit()
public String getJSinvoke(String invocation)
getJSinvoke
in interface IOpenLayersMap
invocation
- The JavaScript call to invoke on this AjaxOpenLayersMap.public String getJSinvokeNoLineEnd(String invocation)
getJSinvokeNoLineEnd
in interface IOpenLayersMap
public IOpenLayersMap removeControl(IJavascriptComponent control)
removeControl
in interface IOpenLayersMap
control
- control to removepublic IOpenLayersMap removeOverlay(Overlay overlay)
removeOverlay
in interface IOpenLayersMap
overlay
- overlay to removepublic IOpenLayersMap removeFeature(Feature feature)
feature
- feature to removepublic void update(org.apache.wicket.ajax.AjaxRequestTarget target)
update
in interface IOpenLayersMap
public List<Layer> getLayers()
getLayers
in interface IOpenLayersMap
public List<IJavascriptComponent> getControls()
getControls
in interface IOpenLayersMap
public String getJSInstance()
getJSInstance
in interface IOpenLayersMap
public List<Overlay> getOverlays()
getOverlays
in interface IOpenLayersMap
public void setLayers(List<Layer> layers)
setLayers
in interface IOpenLayersMap
public void setOverlays(List<Overlay> overlays)
setOverlays
in interface IOpenLayersMap
public void setBusinessLogicProjection(String businessLogicProjection)
setBusinessLogicProjection
in interface IOpenLayersMap
public String getBusinessLogicProjection()
getBusinessLogicProjection
in interface IOpenLayersMap
public void setMarkersLayerName(String markersLayerName)
public String getMarkersLayerName()
public void setVisibleOnlyLayers(String... names)
public void toggleLayer(String name)
Copyright © 2015. All rights reserved.