Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chemzqm/geomap

svg geomap using jquery and raphael
https://github.com/chemzqm/geomap

Last synced: about 1 month ago
JSON representation

svg geomap using jquery and raphael

Awesome Lists containing this project

README

        

# geomap

svg geomap using jquery and raphael

DEMO:

## Installation

Install with [component(1)](http://component.io):

$ component install chemzqm/geomap

## API

## Example

``` js
var Geomap = require('geomap');
var $ = require('jquery');
var map = new Geomap({
//指定地图渲染位置
container: '#map',
mapStyle: {
stroke: '#fff'
},
//指定横纵缩放比
scale: {
x: 9,
y: 9
}
});
$.ajax({
url: '/china-province.geojson',
dataType: 'json'
}).done(function(json) {
map.load(json);
map.render();
});
```

## License

MIT