Package com.microstrategy.web.app.maps
Interface MapProjection
-
- All Known Implementing Classes:
GoogleMapProjection
public interface MapProjection
The interface for Map projection system. All the implementation of map projection system must provide the following interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Point
fromLatLngToPoint(LatLng latLng)
Converts the givenLatLng
to the world pixel coordinates, relative to the top-left of the map that provided this ProjectionLatLng
fromPointToLatLng(Point point)
Converts the world coordinate point to theLatLng
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.
-
-
-
Method Detail
-
fromLatLngToPoint
Point fromLatLngToPoint(LatLng latLng)
Converts the givenLatLng
to the world pixel coordinates, relative to the top-left of the map that provided this Projection- Parameters:
latLng
- TheLatLng
coordinate of the point.- Returns:
- The world coordinate of the point.
-
fromPointToLatLng
LatLng fromPointToLatLng(Point point)
Converts the world coordinate point to theLatLng
coordinate.- Parameters:
point
- The worldPoint
coordinate of the point.- Returns:
- The world coordinate of the point.
-
getTileSize
int getTileSize()
The pixels of the tile in one dimension.- Returns:
- The size of a tile.
-
fromPointToPixelPoint
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.
-
-