public interface

MapProjection

com.microstrategy.web.app.maps.MapProjection
Known Indirect Subclasses

Class Overview

The interface for Map projection system. All the implementation of map projection system must provide the following interface.

Summary

Public Methods
abstract 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
abstract LatLng fromPointToLatLng(Point point)
Converts the world coordinate point to the LatLng coordinate.
abstract PixelPoint fromPointToPixelPoint(Point point, int zoomLevel)
Converts the world coordinate point to the pixel point at a given zoom level.
abstract int getTileSize()
The pixels of the tile in one dimension.

Public Methods

public abstract 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 abstract 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 abstract 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 abstract int getTileSize ()

The pixels of the tile in one dimension.

Returns
  • The size of a tile.