Skip to content

Commit

Permalink
Update example to use the leaflet CDN. Change the position of the con…
Browse files Browse the repository at this point in the history
…trol (topright doesn't work in oldIE).
  • Loading branch information
jacobtoye committed Oct 7, 2012
1 parent 388ce20 commit 59afc0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/drawing.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<head>
<title>Leaflet Draw</title>

<link rel="stylesheet" href="../lib/leaflet/leaflet.css" />
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet.ie.css" /><![endif]-->
<link rel="stylesheet" href="../dist/leaflet.draw.css" />
<!--[if lte IE 8]><link rel="stylesheet" href="../ib/leaflet/leaflet.ie.css" /><![endif]-->

<script src="../lib/leaflet/leaflet-src.js"></script>
<script src="http://cdn.leafletjs.com/leaflet-0.4.4/leaflet-src.js"></script>
<script src="../src/ext/LineUtil.js"></script>
<script src="../src/ext/Polygon.js"></script>
<script src="../src/ext/Polyline.js"></script>
Expand All @@ -30,7 +30,7 @@
map = new L.Map('map', {layers: [cloudmade], center: new L.LatLng(-37.7772, 175.2756), zoom: 15 });

var drawControl = new L.Control.Draw({
position: 'topright',
position: 'topleft',
polygon: {
title: 'Draw a sexy polygon!',
allowIntersection: false,
Expand Down

0 comments on commit 59afc0a

Please sign in to comment.