public class

GoogleMapProjection

extends Object
implements MapProjection
java.lang.Object
   ↳ com.microstrategy.web.app.maps.GoogleMapProjection

Class Overview

Google map projection, convert from LatLng object to world coordinate and from world coordinate to PixelPoint object.

Summary

Public Constructors
GoogleMapProjection(int tileSize)
GoogleMapProjection()
Public Methods
Point fromLatLngToPoint(LatLng latlng)
Converts the given LatLng to the world pixel coordinates, relative to the top-left of the map that provided this Projection
LatLng fromPointToLatLng(Point point)
Converts the world coordinate point to the LatLng coordinate.
PixelPoint fromPointToPixelPoint(Point point, int zoomLevel)
Converts the world coordinate point to the pixel point at a given zoom level.
int getTileSize()
The pixels of the tile in one dimension.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.microstrategy.web.app.maps.MapProjection

Public Constructors

public GoogleMapProjection (int tileSize)

public GoogleMapProjection ()

Public Methods

public Point fromLatLngToPoint (LatLng latlng)

Converts the given LatLng to the world pixel coordinates, relative to the top-left of the map that provided this Projection

Parameters
latlng The LatLng coordinate of the point.
Returns
  • The world coordinate of the point.

public LatLng fromPointToLatLng (Point point)

Converts the world coordinate point to the LatLng coordinate.

Parameters
point The world Point coordinate of the point.
Returns
  • The world coordinate of the point.

public PixelPoint fromPointToPixelPoint (Point point, int zoomLevel)

Converts the world coordinate point to the pixel point at a given zoom level. The point is relative to the top-left of the map.

Parameters
point The world coordinate point.
zoomLevel The current zoom level.
Returns
  • The pixel point of the given point.

public int getTileSize ()

The pixels of the tile in one dimension.

Returns
  • The size of a tile.