forked from 0x2620/oxjs
[wip] create LeafletMap using leaflet instead of google maps
This commit is contained in:
parent
4189c740b5
commit
ae2b1854aa
8 changed files with 2443 additions and 3 deletions
|
|
@ -5,7 +5,7 @@
|
|||
<meta http-equiv="Keywords" content="Lists"/>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="shortcut icon" type="image/png" href="../../../source/UI/themes/oxlight/png/icon16.png"/>
|
||||
<script type="text/javascript" src="../../../min/Ox.js"></script>
|
||||
<script type="text/javascript" src="../../../dev/Ox.js"></script>
|
||||
<script type="text/javascript" src="js/example.js"></script>
|
||||
<script>window.addEventListener('message', function(e) { e.origin == window.location.origin && eval('(' + e.data + ')'); });</script>
|
||||
</head>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ on a world map.
|
|||
|
||||
Ox.load(['UI', 'Geo'], function() {
|
||||
|
||||
var $map = Ox.Map({
|
||||
var $map = Ox.LeafletMap({
|
||||
keys: ['region'],
|
||||
markerColor: function(place) {
|
||||
return Ox.getGeoColor(place.region);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue