Skip to content

Commit

Permalink
testing leaflet.js
Browse files Browse the repository at this point in the history
  • Loading branch information
morgajel committed Sep 25, 2014
1 parent 82b277f commit cdd686e
Show file tree
Hide file tree
Showing 11 changed files with 9,730 additions and 299 deletions.
478 changes: 478 additions & 0 deletions megacosm/static/css/leaflet.css

Large diffs are not rendered by default.

Binary file added megacosm/static/images/layers-2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added megacosm/static/images/layers.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added megacosm/static/images/marker-icon-2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added megacosm/static/images/marker-icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added megacosm/static/images/marker-shadow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9,180 changes: 9,180 additions & 0 deletions megacosm/static/js/leaflet-src.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions megacosm/static/js/leaflet.js

Large diffs are not rendered by default.

File renamed without changes.
63 changes: 63 additions & 0 deletions megacosm/static/maptest.html
@@ -0,0 +1,63 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<style>
#map { height: 300px; width:600px }
</style>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>

</head>
<body>
<div id="map"></div>

<script>
var map = L.map('map').setView([0, 0], 13);

var marker = L.marker([0.0, -0.00]).addTo(map);
var citylimit = L.polygon([
[-0.006, 0.0],
[-0.01, 0.01],
[0.0, 0.013],
[0.01, 0.01],
[0.014, 0.0],
[0.01, -0.01],
[0.003, -0.014],
[-0.01, -0.01],
],
{
stroke: true,
color: '#333',
weight:1,
dashArray:'1,10',
fillColor: '#EEE5DE',
fillOpacity: 0.5,
}
).addTo(map);

var regionroads = L.polyline([
[1,-9],
[0.01,-0.02],
[0,0],
[0.001,0.011],
[0,9],
],
{
stroke: true,
color: '#603311',
weight:6,
}

).addTo(map);


marker.bindPopup("Welcome to the City of Townsville.");


</script>

</body>


</html>
299 changes: 0 additions & 299 deletions static/sphere.html

This file was deleted.

0 comments on commit cdd686e

Please sign in to comment.