Class Index

Global Variables

Classes


Class MVGoogleTileLayer

MVGoogleTileLayer defines a map tile layer that displays Google Maps using Google Maps Javascript API.

To use Google Maps as a tile layer, your usage of the maps must meet the Terms of Service defined by Google. You must sign up for a Google Maps API key before you can display Google Maps with this class. In your application web page, you must use a script tag to import Google Maps API library using your API key as shown below.

<script src="http://maps.google.com/maps?file=api&v=2&key=[your_api_key]" type="text/javascript"></script>
   

You should also call the GUnload function in the onunload listener to handle Google Maps related cleanups.

<body load="showMap()" onunload="GUnload()">
;

Google Maps tiles are rendered in a projection system known as Spherical Mercator. If you need to overlay your own spatial data on top of the Google Maps tile layer, you must setup the database to properly handle coordinate system transformation between the Google Maps coordinate system and your own data coordinate system if they are not the same. Please refer to MapViewer User's guide for more information.

Class Summary
Constructor Attributes Constructor Name and Description
 
MVGoogleTileLayer(mapType, key, library)
Field Summary
Field Attributes Field Name and Description
<static> <constant>  
MVGoogleTileLayer.TYPE_HYBRID
Hybrid map type.
<static> <constant>  
MVGoogleTileLayer.TYPE_ROAD
Road map type.
<static> <constant>  
MVGoogleTileLayer.TYPE_SATELLITE
Satellite map type.
<static> <constant>  
MVGoogleTileLayer.TYPE_SHADED
Shaded map type.
Method Summary
Method Attributes Method Name and Description
 
This method gets the current type of the map, which can be one of the following predefined MVGoogleTileLayer types, MVGoogleTileLayer.TYPE_ROAD, MVGoogleTileLayer.TYPE_SATELLITE, MVGoogleTileLayer.TYPE_HYBRID and MVGoogleTileLayer.TYPE_SHADED.
 
setKey(key)
This method sets the Google Maps key that you've obtained for your application.
 
setMapType(mapType)
This method sets the type of the map, which can be one of the following predefined MVGoogleTileLayer types, MVGoogleTileLayer.TYPE_ROAD, MVGoogleTileLayer.TYPE_SATELLITE, MVGoogleTileLayer.TYPE_HYBRID and MVGoogleTileLayer.TYPE_SHADED.
Class Detail
MVGoogleTileLayer(mapType, key, library)
Parameters:
{mapType} mapType
your Google Maps type.
{key} key
your Google Maps key.
{libURL} library
library URL if it is different from the default google map library URL.
Returns:
The newly created MVGoogleTileLayer object.
Field Detail
<static> <constant> MVGoogleTileLayer.TYPE_HYBRID
Hybrid map type.

<static> <constant> MVGoogleTileLayer.TYPE_ROAD
Road map type.

<static> <constant> MVGoogleTileLayer.TYPE_SATELLITE
Satellite map type.

<static> <constant> MVGoogleTileLayer.TYPE_SHADED
Shaded map type.
Method Detail
getMapType()
This method gets the current type of the map, which can be one of the following predefined MVGoogleTileLayer types, MVGoogleTileLayer.TYPE_ROAD, MVGoogleTileLayer.TYPE_SATELLITE, MVGoogleTileLayer.TYPE_HYBRID and MVGoogleTileLayer.TYPE_SHADED.
Returns:
current map type

{void} setKey(key)
This method sets the Google Maps key that you've obtained for your application.
Parameters:
{String} key
your Google Maps key.
Returns:
none

{void} setMapType(mapType)
This method sets the type of the map, which can be one of the following predefined MVGoogleTileLayer types, MVGoogleTileLayer.TYPE_ROAD, MVGoogleTileLayer.TYPE_SATELLITE, MVGoogleTileLayer.TYPE_HYBRID and MVGoogleTileLayer.TYPE_SHADED.
Parameters:
{GMapType} mapType
the MVGoogleTileLayer constant that specifies the map type.
Returns:
None

Documentation generated by JsDoc Toolkit 2.1.0 on Fri Feb 25 2011 12:34:45 GMT-0500 (EST)