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, getWebSessionadd, 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, visitChildrenadd, 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, wrappublic 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 IOpenLayersMappublic boolean isExternalControls()
isExternalControls in interface IOpenLayersMappublic void setBounds(Bounds bounds)
setBounds in interface IOpenLayersMappublic Bounds getBounds()
getBounds in interface IOpenLayersMappublic void setCenter(LonLat center)
setCenter in interface IOpenLayersMappublic LonLat getCenter()
getCenter in interface IOpenLayersMappublic void setZoom(Integer zoom)
setZoom in interface IOpenLayersMappublic Integer getZoom()
getZoom in interface IOpenLayersMappublic void setCenter(LonLat center, Integer zoom)
setCenter in interface IOpenLayersMappublic IOpenLayersMap addControl(IJavascriptComponent control)
addControl in interface IOpenLayersMapcontrol - control to addpublic IOpenLayersMap addOverlay(Overlay overlay)
addOverlay in interface IOpenLayersMapoverlay - 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 IOpenLayersMapprotected String getJSinit()
public String getJSinvoke(String invocation)
getJSinvoke in interface IOpenLayersMapinvocation - The JavaScript call to invoke on this AjaxOpenLayersMap.public String getJSinvokeNoLineEnd(String invocation)
getJSinvokeNoLineEnd in interface IOpenLayersMappublic IOpenLayersMap removeControl(IJavascriptComponent control)
removeControl in interface IOpenLayersMapcontrol - control to removepublic IOpenLayersMap removeOverlay(Overlay overlay)
removeOverlay in interface IOpenLayersMapoverlay - overlay to removepublic IOpenLayersMap removeFeature(Feature feature)
feature - feature to removepublic void update(org.apache.wicket.ajax.AjaxRequestTarget target)
update in interface IOpenLayersMappublic List<Layer> getLayers()
getLayers in interface IOpenLayersMappublic List<IJavascriptComponent> getControls()
getControls in interface IOpenLayersMappublic String getJSInstance()
getJSInstance in interface IOpenLayersMappublic List<Overlay> getOverlays()
getOverlays in interface IOpenLayersMappublic void setLayers(List<Layer> layers)
setLayers in interface IOpenLayersMappublic void setOverlays(List<Overlay> overlays)
setOverlays in interface IOpenLayersMappublic void setBusinessLogicProjection(String businessLogicProjection)
setBusinessLogicProjection in interface IOpenLayersMappublic String getBusinessLogicProjection()
getBusinessLogicProjection in interface IOpenLayersMappublic void setMarkersLayerName(String markersLayerName)
public String getMarkersLayerName()
public void setVisibleOnlyLayers(String... names)
public void toggleLayer(String name)
Copyright © 2015. All rights reserved.