Fix broken vector-simple debug/testbed page

`Uncaught TypeError: Cannot read property 'intersects' of undefined`, so rearrange order for an earlier `map.setView()`
This commit is contained in:
Steve 2016-08-14 10:20:46 -05:00 committed by GitHub
parent 09937e39b0
commit 1a0b08226b

View File

@ -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.")
@ -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);