new CRS(type, properties) [source]
Parameter | Type | Description |
---|---|---|
type
|
String | type of the CRS |
properties
|
Object | CRS's properties |
Members
(static, constant) WGS84 :CRS
Predefined CRS of well-known WGS84 (aka EPSG:4326)
Type:
(static, constant) EPSG4326 :CRS
Alias for CRS.WGS84
Type:
(static, constant) EPSG3857 :CRS
Projected Coordinate System used by google maps that has the following alias: 'EPSG:3785', 'GOOGLE', 'EPSG:900913'
Type:
(static, constant) IDENTITY :CRS
A CRS represents a simple Cartesian coordinate system.
Maps x, y directly, is useful for maps of flat surfaces (e.g. indoor maps, game maps).
Maps x, y directly, is useful for maps of flat surfaces (e.g. indoor maps, game maps).
Type:
(static, constant) CGCS2000 :CRS
Official coordinate system in China (aka EPSG:4490), in most cases, it can be considered the same with WGS84.
Type:
(static, constant) EPSG4490 :CRS
Alias for CRS.CGCS2000
Type:
(static, constant) BD09LL :CRS
Projection used by Baidu Map, a popular web map service in China.
Type:
(static, constant) GCJ02 :CRS
A encrypted CRS usded in the most online map services in China..
Type:
Static Methods
(static) createProj4(proj) [source]
Create a proj4 style CRS used by maptalks
{
"type" : "proj4",
"properties" : {
"proj" : "+proj=longlat +datum=WGS84 +no_defs"
}
}
var crs_wgs84 = CRS.createProj4("+proj=longlat +datum=WGS84 +no_defs");
Parameter | Type | Description |
---|---|---|
proj
|
String | a proj4 projection string. |