Git Product home page Git Product logo

ru-svg-map's Introduction

Карта России и мира в формате 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/

ru-svg-map's People

Contributors

harut avatar kalloc avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.