Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chemzqm/geomap
- Owner: chemzqm
- Created: 2013-09-04T09:33:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-03-12T19:01:58.000Z (almost 9 years ago)
- Last Synced: 2024-10-29T10:08:22.611Z (about 2 months ago)
- Language: JavaScript
- Size: 493 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
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