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:
parent
09937e39b0
commit
1a0b08226b
@ -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 = '© <a href="http://openstreetmap.org/copyright">OpenStreetMap</a> contributors',
|
||||
osm = L.tileLayer(osmUrl, {maxZoom: 18, attribution: osmAttrib}).addTo(map);
|
||||
|
Loading…
Reference in New Issue
Block a user