public abstract class OpenLayersMap extends org.apache.wicket.markup.html.panel.GenericPanel<Map>
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 |
|---|
OpenLayersMap(String id,
org.apache.wicket.model.IModel<Map> model)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInteraction(org.apache.wicket.ajax.AjaxRequestTarget target,
Interaction interaction)
Adds the provided interaction to the map.
|
protected void |
onConfigure() |
void |
removeInteraction(org.apache.wicket.ajax.AjaxRequestTarget target,
Interaction interaction)
Removes provided interaction from the map.
|
String |
renderAfterConstructorJs()
Renders the Javascript after the construction of the map.
|
String |
renderBeforeConstructorJs()
Renders the Javascript before the construction of the map.
|
abstract void |
renderHead(org.apache.wicket.markup.head.IHeaderResponse response) |
String |
renderJs()
Renders the Javascript for this map.
|
void |
setViewCenter(org.apache.wicket.ajax.AjaxRequestTarget target,
Point point)
Sets the center of the map's current view.
|
void |
zoomToExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Extent extent)
Sets the extent for the map and zooms to that extent.
|
void |
zoomToFeatureExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Vector vector)
Zooms the map to an extent that includes all of the features on the provided vector layer.
|
void |
zoomToFeatureExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Vector vector,
Number buffer)
Zooms the map to an extent that includes all of the features on the provided vector layer.
|
getModel, getModelObject, setModel, setModelObjectgetRegionMarkup, newMarkupSourcingStrategygetWebPage, getWebRequest, getWebResponse, getWebSessionadd, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, 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, onAfterRender, onBeforeRender, onComponentTag, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, 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, wrapprotected void onConfigure()
onConfigure in class org.apache.wicket.Componentpublic void zoomToFeatureExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Vector vector)
target - Ajax request targetvector - Vector layer containing featurespublic void zoomToFeatureExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Vector vector,
Number buffer)
target - Ajax request targetvector - Vector layer containing featuresbuffer - Buffer around the calculated extentpublic void setViewCenter(org.apache.wicket.ajax.AjaxRequestTarget target,
Point point)
target - Ajax request targetpoint - New center location for the mappublic void addInteraction(org.apache.wicket.ajax.AjaxRequestTarget target,
Interaction interaction)
target - Ajax request targetinteraction - Interaction to addpublic void removeInteraction(org.apache.wicket.ajax.AjaxRequestTarget target,
Interaction interaction)
target - Ajax request targetinteraction - Interaction to addpublic void zoomToExtent(org.apache.wicket.ajax.AjaxRequestTarget target,
Extent extent)
target - Ajax request targetextent - Extent to which the map will be zoomedpublic abstract void renderHead(org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IHeaderContributorrenderHead in class org.apache.wicket.Componentpublic String renderBeforeConstructorJs()
public String renderAfterConstructorJs()
public String renderJs()
Copyright © 2015. All rights reserved.