|
|||||||||
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.GoogleMaps
public class GoogleMaps
Field Summary |
---|
Fields inherited from class org.opengts.war.maps.JSMap |
---|
DEFAULT_MAP_ID |
Constructor Summary | |
---|---|
GoogleMaps(java.lang.String name,
java.lang.String key)
|
Method Summary | |
---|---|
java.lang.String |
getApiVersion()
Gets the API version |
java.lang.String[] |
getGeozoneInstructions(int type,
java.util.Locale loc)
Gets the Geozone usage instructions |
int |
getGeozoneSupportedPointCount(int type)
Returns the number of supported points for the specified Geozone type |
java.lang.String |
getMapInitCallback()
Gets the map initialization callback (may be null) |
java.lang.String |
getMapOptions()
Gets the override map options |
boolean |
isVersion2()
Return true if using Google API v2 |
boolean |
isVersion3()
Return true if using Google API v3 |
boolean |
isVersionJS()
Return true if using Google API "js" |
void |
postInit()
Called after initialization of this MapProvider. |
boolean |
validate()
Validates this map provider configuration |
protected void |
writeJSIncludes(java.io.PrintWriter out,
RequestProperties reqState)
Writes the JavaScript required for this map provider |
protected void |
writeJSVariables(java.io.PrintWriter out,
RequestProperties reqState)
Writes mapping support JS to stream |
void |
writeMapCell(java.io.PrintWriter out,
RequestProperties reqState,
MapDimension mapDim)
Writes the map table view to the http output stream |
Methods inherited from class org.opengts.war.maps.JSMap |
---|
_skipPropKey, getMapID, writeJavaScript, writeJSIncludes, writeMapUpdate, writePushpinArray, writeStyle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GoogleMaps(java.lang.String name, java.lang.String key)
Method Detail |
---|
public java.lang.String getApiVersion()
public boolean isVersion2()
public boolean isVersion3()
public boolean isVersionJS()
public java.lang.String getMapOptions()
public java.lang.String getMapInitCallback()
public void postInit()
postInit
in class MapProviderAdapter
public boolean validate()
validate
in class MapProviderAdapter
public void writeMapCell(java.io.PrintWriter out, RequestProperties reqState, MapDimension mapDim) throws java.io.IOException
writeMapCell
in interface MapProvider
writeMapCell
in class MapProviderAdapter
out
- The http output streamreqState
- The current session statemapDim
- The specified map dimensions
java.io.IOException
protected void writeJSVariables(java.io.PrintWriter out, RequestProperties reqState) throws java.io.IOException
writeJSVariables
in class JSMap
java.io.IOException
protected void writeJSIncludes(java.io.PrintWriter out, RequestProperties reqState) throws java.io.IOException
writeJSIncludes
in class JSMap
java.io.IOException
public int getGeozoneSupportedPointCount(int type)
getGeozoneSupportedPointCount
in interface MapProvider
getGeozoneSupportedPointCount
in class MapProviderAdapter
type
- The Geozone type
public java.lang.String[] getGeozoneInstructions(int type, java.util.Locale loc)
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 |