Skip to content

Commit

Permalink
Workon #10. Upgrade leaflet.draw
Browse files Browse the repository at this point in the history
  • Loading branch information
radumas committed Sep 10, 2017
1 parent c31f166 commit 8845137
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
<html>
<head>
<title>Leaflet to CartoDB - Point Collection Tool Beta</title>
<link rel="stylesheet" href="//cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.0/leaflet.draw.css"/>
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha384-99ZJFcuBCh9c/V/+8YwDX/TUGG8JWMG+gKFJWzk0BZP3IoDMN+pLGd3/H0yjg4oa"
crossorigin=""/>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.12/leaflet.draw.css"/>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
Expand Down Expand Up @@ -36,9 +38,12 @@ <h1>Leaflet Draw Collection Tool</h1>
</form>
</div>

<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.0/leaflet.draw.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha384-Lh7SNUss9JoImCvc96eCUnLX3HvY4kb0UZCWZbYWvceJ+o5CJeOJqqNoheaGkNHT"
crossorigin=""></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/leaflet.draw/0.4.12/leaflet.draw.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="//cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>

<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script>

Expand Down Expand Up @@ -119,8 +124,8 @@ <h1>Leaflet Draw Collection Tool</h1>
}


map.on('draw:created', function (e) {
var layer = e.layer;
map.on(L.Draw.Event.CREATED, function (e) {
var layer = e.layer;
map.addLayer(drawnItems);
drawnItems.addLayer(layer);
dialog.dialog("open");
Expand Down

0 comments on commit 8845137

Please sign in to comment.