|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.war.tools.MapProviderAdapter org.opengts.war.maps.JSMap org.opengts.war.maps.jsmap.Mapstraction
public class Mapstraction
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_PROVIDER
|
static java.lang.String[] |
PROP_LOCAL_JS
|
static java.lang.String[] |
PROP_provider
|
static java.lang.String |
PROVIDER_CLOUDMADE
|
static java.lang.String |
PROVIDER_ESRI
|
static java.lang.String |
PROVIDER_FREEEARTH
|
static java.lang.String |
PROVIDER_GOOGLE
|
static java.lang.String |
PROVIDER_GOOGLEV3
|
static java.lang.String |
PROVIDER_LEAFLET
|
static java.lang.String |
PROVIDER_MAP24
|
static java.lang.String |
PROVIDER_MAPQUEST
|
static java.lang.String |
PROVIDER_MICROSOFT
|
static java.lang.String |
PROVIDER_MICROSOFT7
|
static java.lang.String |
PROVIDER_MULTIMAP
|
static java.lang.String |
PROVIDER_OPENLAYERS
|
static java.lang.String |
PROVIDER_OPENMQ
|
static java.lang.String |
PROVIDER_OPENSPACE
|
static java.lang.String |
PROVIDER_OPENSTREETMAP
|
static java.lang.String |
PROVIDER_OVI
|
static java.lang.String |
PROVIDER_YAHOO
|
Fields inherited from class org.opengts.war.maps.JSMap |
---|
DEFAULT_MAP_ID |
Constructor Summary | |
---|---|
Mapstraction(java.lang.String name,
java.lang.String key)
|
Method Summary | |
---|---|
protected java.lang.String |
_getAuthKey(java.lang.String provider,
java.lang.String dftKey)
|
java.lang.String |
getApiVersion()
Gets the API version |
java.lang.String[] |
getGeozoneInstructions(int type,
java.util.Locale loc)
Returns instructions for manipulating a Geozone |
boolean |
isFeatureSupported(long feature)
Returns true if the specified map feature is supported |
boolean |
isVersion1()
Return true if using Mapstraction API v1 |
boolean |
isVersion2()
Return true if using Google API v3 |
protected void |
writeJSIncludes(java.io.PrintWriter out,
RequestProperties reqState)
|
protected void |
writeJSVariables(java.io.PrintWriter out,
RequestProperties reqState)
|
void |
writeStyle(java.io.PrintWriter out,
RequestProperties reqState)
Writes any required CSS to the specified PrintWriter. |
Methods inherited from class org.opengts.war.maps.JSMap |
---|
_skipPropKey, getMapID, writeJavaScript, writeJSIncludes, writeMapUpdate, writePushpinArray |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROVIDER_OPENLAYERS
public static final java.lang.String PROVIDER_GOOGLEV3
public static final java.lang.String PROVIDER_CLOUDMADE
public static final java.lang.String PROVIDER_MICROSOFT
public static final java.lang.String PROVIDER_MICROSOFT7
public static final java.lang.String PROVIDER_MAPQUEST
public static final java.lang.String PROVIDER_OPENMQ
public static final java.lang.String PROVIDER_ESRI
public static final java.lang.String PROVIDER_OPENSPACE
public static final java.lang.String PROVIDER_LEAFLET
public static final java.lang.String PROVIDER_OVI
public static final java.lang.String PROVIDER_GOOGLE
public static final java.lang.String PROVIDER_YAHOO
public static final java.lang.String PROVIDER_MULTIMAP
public static final java.lang.String PROVIDER_MAP24
public static final java.lang.String PROVIDER_OPENSTREETMAP
public static final java.lang.String PROVIDER_FREEEARTH
public static final java.lang.String DEFAULT_PROVIDER
public static final java.lang.String[] PROP_provider
public static final java.lang.String[] PROP_LOCAL_JS
Constructor Detail |
---|
public Mapstraction(java.lang.String name, java.lang.String key)
Method Detail |
---|
public java.lang.String getApiVersion()
public boolean isVersion1()
public boolean isVersion2()
public boolean isFeatureSupported(long feature)
MapProviderAdapter
isFeatureSupported
in interface MapProvider
isFeatureSupported
in class MapProviderAdapter
feature
- The feature tested for support
protected void writeJSVariables(java.io.PrintWriter out, RequestProperties reqState) throws java.io.IOException
writeJSVariables
in class JSMap
java.io.IOException
public void writeStyle(java.io.PrintWriter out, RequestProperties reqState) throws java.io.IOException
MapProviderAdapter
writeStyle
in interface MapProvider
writeStyle
in class JSMap
out
- The PrintWriterreqState
- The session RequestProperties
java.io.IOException
protected java.lang.String _getAuthKey(java.lang.String provider, java.lang.String dftKey)
protected void writeJSIncludes(java.io.PrintWriter out, RequestProperties reqState) throws java.io.IOException
writeJSIncludes
in class JSMap
java.io.IOException
public java.lang.String[] getGeozoneInstructions(int type, java.util.Locale loc)
MapProviderAdapter
getGeozoneInstructions
in interface MapProvider
getGeozoneInstructions
in class MapProviderAdapter
type
- The Geozone typeloc
- The current Locale
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |