govdesign / map

SVG map engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Карта России и мира в формате SVG

Этот репозиторий содержит карты в формате SVG и JavaScript для работы с картой.

Основные возможности JavaScript библиотеки:

  • Формирование SVG с использованием переданных фрагментов карты
  • Поддержка VML для IE (стандарт, более старый, чем SVG)
  • Поддержка изменения размера карты
  • Поддержка мобильных устройств
  • Добавление теней
  • Подключение итоговой карты как элемент страницы

Репозиторий включает себя:

  • vector.js: универсальная библиотека для работы с SVG
  • map-jquery.js and map-mootools.js: два примера работы с vector.js на двух популярных библиотеках (JQuery и MooTools)
  • исходный набор полигонов для карты мира и России.

Вы можете посмотреть пример использования на странице http://smarttelemax.github.com/ru-svg-map/

SVG maps of Russia and the world

Draft

This package contains JavaScript for generation of intercative SVG maps. Main features are:

  • Generation of SVG according to given set of path coordinates
  • Downgrading to VML for IE, common interface for styles manipulation in SVG and VML (setColor, setStroke, setOpacity)
  • Support of map resizing (by buttons and by mouse wheel) and dragging
  • Support of touch events: resize and drag gestures, element click emulation
  • Included inner shadow style for elements
  • Support of fitting to selected element
  • Native browser events can be attached to SVG/VML nodes without any troubles

The package contains:

  • vector.js: universal framework-independent core, providing basic SVG manipulation methods
  • map-jquery.js and map-mootools.js: two example implementations of the map based to vector.js working with two popular frameworks. They can be hacked and customized.
  • path packs for maps of Russia and the world. Paths are verified by %institutename% as corresponding official recognized by Russian Federation state borders

You can see examples at http://smarttelemax.github.com/ru-svg-map/

About

SVG map engine

License:MIT License


Languages

Language:JavaScript 100.0%