public class Map extends JavascriptObject implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Map.RenderType
Provides an enumeration of the valid render types.
|
counter, JS_GLOBAL, objectIds
Constructor and Description |
---|
Map(List<Layer> layers)
Creates a new instance.
|
Map(List<Layer> layers,
List<Overlay> overlays)
Creates a new instance.
|
Map(List<Layer> layers,
List<Overlay> overlays,
View view)
Creates a new instance.
|
Map(List<Layer> layers,
View view)
Creates a new instance.
|
Map(Map.RenderType renderer,
List<Layer> layers)
Creates a new instance.
|
Map(Map.RenderType renderer,
List<Layer> layers,
List<Overlay> overlays,
View view)
Creates a new instance.
|
Map(Map.RenderType renderer,
List<Layer> layers,
List<Overlay> overlays,
View view,
List<Interaction> interactions)
Creates a new instance.
|
Map(Map.RenderType renderer,
List<Layer> layers,
View view)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
List<Interaction> |
getInteractions() |
String |
getJsId()
Returns a String with the unique ID used to identify this object.
|
String |
getJsType()
Returns a String with the type of Javascript object that this object represents.
|
List<Layer> |
getLayers()
Returns the layers for this map.
|
List<Overlay> |
getOverlays()
Returns the overlays for this map.
|
Map.RenderType |
getRenderer()
Returns the renderer for this map.
|
String |
getTarget()
Returns the target element ID to which this map is tied.
|
View |
getView()
Returns the view for this map.
|
Map |
interactions(List<Interaction> interactions) |
Map |
Layers(List<Layer> layers)
Sets the layers for this map.
|
Map |
overlays(List<Overlay> overlays)
Sets the overlays for this map.
|
Map |
renderer(Map.RenderType renderer)
Sets the renderer for this map.
|
String |
renderJs()
Returns a String with containing the rendered Javascript code for this object.
|
void |
setInteractions(List<Interaction> interactions) |
void |
setLayers(List<Layer> layers)
Sets the layers for this map.
|
void |
setOverlays(List<Overlay> overlays)
Sets the overlays for this map.
|
void |
setRenderer(Map.RenderType renderer)
Sets the renderer for this map.
|
void |
setTarget(String target)
Sets the target Wicket element for this map.
|
void |
setView(View view)
Sets the view for this map.
|
Map |
view(View view)
Sets the view for this map.
|
escapeQuoteJs, getJsIdWithSuffix
public Map(Map.RenderType renderer, List<Layer> layers)
renderer
- The renderer for this maplayers
- Layers for this mappublic Map(List<Layer> layers, View view)
layers
- The layers for this mapview
- The view for this mappublic Map(Map.RenderType renderer, List<Layer> layers, View view)
renderer
- The renderer for this maplayers
- The layers for this mapview
- The view for this mappublic Map(List<Layer> layers, List<Overlay> overlays, View view)
layers
- The layers for this mapoverlays
- The overlays for this mapview
- The view for this mappublic Map(List<Layer> layers, List<Overlay> overlays)
layers
- The layers for this mapoverlays
- The overlays for this mappublic Map(Map.RenderType renderer, List<Layer> layers, List<Overlay> overlays, View view)
renderer
- The renderer for this maplayers
- The layers for this mapoverlays
- The overlays for this mapview
- The view for this mappublic Map(Map.RenderType renderer, List<Layer> layers, List<Overlay> overlays, View view, List<Interaction> interactions)
renderer
- The renderer for this maplayers
- The layers for this mapoverlays
- The overlays for this mapview
- The view for this mapinteractions
- Interactions for the mappublic String getTarget()
public void setTarget(String target)
target
- Target Wicket element IDpublic Map.RenderType getRenderer()
public void setRenderer(Map.RenderType renderer)
renderer
- Rendererpublic void setLayers(List<Layer> layers)
layers
- List of layerspublic List<Overlay> getOverlays()
public void setOverlays(List<Overlay> overlays)
overlays
- List of overlayspublic View getView()
public void setView(View view)
view
- View for this mappublic Map view(View view)
view
- View for this mappublic Map overlays(List<Overlay> overlays)
overlays
- List of overlayspublic Map renderer(Map.RenderType renderer)
renderer
- Render for this mappublic Map Layers(List<Layer> layers)
layers
- List of layerspublic List<Interaction> getInteractions()
public void setInteractions(List<Interaction> interactions)
public Map interactions(List<Interaction> interactions)
public String getJsType()
JavascriptObject
getJsType
in interface IJavascriptObject
getJsType
in class JavascriptObject
public String getJsId()
JavascriptObject
getJsId
in interface IJavascriptObject
getJsId
in class JavascriptObject
public String renderJs()
JavascriptObject
renderJs
in interface IJavascriptObject
renderJs
in class JavascriptObject
Copyright © 2015. All rights reserved.