Skip to content

JavaScript HTML5 Canvas+SVG vector map with Proj4js transformations.

License

Notifications You must be signed in to change notification settings

evgenlesnoy/dbCartajs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbCartajs

HTML5 Canvas+SVG vector map viewer. Pure JavaScript and serverless. It uses Proj4js transformations. Supported projections:

  • espg:4326, longlat;
  • epsg:3875, Mercator projection;
  • mill, Miller Cylindrical projection;
  • laea, Lambert Azimuthal Equal Area;
  • nsper, General Vertical Near-Side Perspective projection (missing in original Proj4js code, ported from gctpc project);
  • ortho, Orthographic projection;
  • moll, Mollweide projection.

Starry Sky demo include satellite-js module.
Demos at http://dbcartajs.appspot.com/. Docs in wiki at https://github.com/egaxegax/dbCartajs/wiki.

![ortho-ns.gif] (http://img-fotki.yandex.ru/get/9066/136640652.0/0_bf3ee_cde97104_orig "ortho-ns.gif") ![ortho-ew.gif] (http://img-fotki.yandex.ru/get/9167/136640652.0/0_bf3ed_d4a4a2c3_orig "ortho-ew.gif")

Usage

Simply download and unpack an archive, open index.html from demo folder in any browser with HTML5 support.

Controls

  • drag to move map;
  • use Ctrl+Left-Mouse-Button to draw zoom box;
  • use mouse wheel or right bar buttons to zoom;
  • touch support (move, zoom) on Tablet PC.

Screenshots

Mercator Projection:

![merc.jpg] (https://img-fotki.yandex.ru/get/5624/136640652.1/0_12331d_b190b78a_orig "Mercator")

Mollweide Projection:

![moll.png] (http://img-fotki.yandex.ru/get/9065/136640652.1/0_e6dd4_24ef9d71_orig "Mollweide")

Starry Sky. Featured, copmlicated demo like Orbitron, Marble, Xephem but more lightweight.

![starry.png] (http://img-fotki.yandex.ru/get/9802/136640652.0/0_df04b_fbe77af7_XL.png "Starry Sky")

Moscow Rail Map:

![mosrails.png] (http://habrastorage.org/files/5aa/e52/1b3/5aae521b3a02452d8ab24e25ac7c1c4d.png "Moscow Rail Map")

Image Viewer:

![imgviewer.png] (https://img-fotki.yandex.ru/get/9064/136640652.1/0_12331c_48691622_orig "Image Viewer")

About

JavaScript HTML5 Canvas+SVG vector map with Proj4js transformations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 79.9%
  • HTML 20.1%