org.wicketstuff.openlayers.api.layer
Class Layer

java.lang.Object
  extended by org.wicketstuff.openlayers.api.layer.Layer
Direct Known Subclasses:
GMap, OSM, Vector, WFS, WMS

public abstract class Layer
extends Object

Author:
Nino Martinez Wael (nino.martinez@jayway.dk)

Constructor Summary
Layer()
           
 
Method Summary
 void bindHeaderContributors(Component c)
           
protected abstract  void bindHeaderContributors(org.apache.wicket.markup.head.IHeaderResponse response)
           
 String getId()
           
 String getJSAddLayer(IOpenLayersMap map)
           
abstract  String getJSconstructor()
           
protected  String getJSconstructor(String javascriptTypeName, List<String> parameterList)
          A convience method for the common initialization case.
protected  String getJSOptionsMap(Map<String,String> options)
          A helper to build the { ...
 String getName()
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Layer

public Layer()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getId

public String getId()

getJSAddLayer

public final String getJSAddLayer(IOpenLayersMap map)

bindHeaderContributors

public final void bindHeaderContributors(Component c)

bindHeaderContributors

protected abstract void bindHeaderContributors(org.apache.wicket.markup.head.IHeaderResponse response)

getJSconstructor

public abstract String getJSconstructor()

getJSOptionsMap

protected String getJSOptionsMap(Map<String,String> options)
A helper to build the { ... } options list from a map.

Parameters:
options -
Returns:

getJSconstructor

protected String getJSconstructor(String javascriptTypeName,
                                  List<String> parameterList)
A convience method for the common initialization case.

Parameters:
javascriptTypeName -
options -
Returns:
the contextualized contstructor for the layer.


Copyright © 2008-2012. All Rights Reserved.