Skip to content

Commit

Permalink
Fix broken vector-simple debug/testbed page
Browse files Browse the repository at this point in the history
`Uncaught TypeError: Cannot read property 'intersects' of undefined`, so rearrange order for an earlier `map.setView()`
  • Loading branch information
snkashis committed Aug 14, 2016
1 parent 09937e3 commit 1a0b082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug/vector/vector-simple.html
Expand Up @@ -17,6 +17,8 @@

<script>
var map = L.map('map');

map.setView([51.505, -0.09], 13);

var marker = L.marker([51.5, -0.09])
.bindPopup("<b>Hello world!</b><br />I am a popup.")
Expand All @@ -33,8 +35,6 @@
.bindPopup("I am a polygon.")
.addTo(map);

map.setView([51.505, -0.09], 13);

var osmUrl = 'http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
osmAttrib = '&copy; <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}).addTo(map);
Expand Down

0 comments on commit 1a0b082

Please sign in to comment.