Package com.microstrategy.web.app.maps
Class GoogleMapProjection
- java.lang.Object
-
- com.microstrategy.web.app.maps.GoogleMapProjection
-
- All Implemented Interfaces:
MapProjection
public class GoogleMapProjection extends java.lang.Object implements MapProjection
Google map projection, convert fromLatLngobject to world coordinate and from world coordinate to PixelPoint object.
-
-
Constructor Summary
Constructors Constructor Description GoogleMapProjection()GoogleMapProjection(int tileSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PointfromLatLngToPoint(LatLng latlng)Converts the givenLatLngto the world pixel coordinates, relative to the top-left of the map that provided this ProjectionLatLngfromPointToLatLng(Point point)Converts the world coordinate point to theLatLngcoordinate.PixelPointfromPointToPixelPoint(Point point, int zoomLevel)Converts the world coordinate point to the pixel point at a given zoom level.intgetTileSize()The pixels of the tile in one dimension.
-
-
-
Method Detail
-
getTileSize
public int getTileSize()
Description copied from interface:MapProjectionThe pixels of the tile in one dimension.- Specified by:
getTileSizein interfaceMapProjection- Returns:
- The size of a tile.
-
fromPointToLatLng
public LatLng fromPointToLatLng(Point point)
Description copied from interface:MapProjectionConverts the world coordinate point to theLatLngcoordinate.- Specified by:
fromPointToLatLngin interfaceMapProjection- Parameters:
point- The worldPointcoordinate of the point.- Returns:
- The world coordinate of the point.
-
fromLatLngToPoint
public Point fromLatLngToPoint(LatLng latlng)
Description copied from interface:MapProjectionConverts the givenLatLngto the world pixel coordinates, relative to the top-left of the map that provided this Projection- Specified by:
fromLatLngToPointin interfaceMapProjection- Parameters:
latlng- TheLatLngcoordinate of the point.- Returns:
- The world coordinate of the point.
-
fromPointToPixelPoint
public PixelPoint fromPointToPixelPoint(Point point, int zoomLevel)
Description copied from interface:MapProjectionConverts the world coordinate point to the pixel point at a given zoom level. The point is relative to the top-left of the map.- Specified by:
fromPointToPixelPointin interfaceMapProjection- Parameters:
point- The world coordinate point.zoomLevel- The current zoom level.- Returns:
- The pixel point of the given point.
-
-