[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnuzilla] Icecat and Leaflet JS
From: |
rhymebub |
Subject: |
[Bug-gnuzilla] Icecat and Leaflet JS |
Date: |
Thu, 11 Feb 2016 16:17:33 -0000 |
Hi @all,
I tried to run a minimal leaflet code with icecat 38.5.2 on debian jessi
and it didn't execute. Here is the code:
<!DOCTYPE html>
<html>
<head>
<title>Leaflet Test</title>
<meta charset="utf-8"/>
<link rel="stylesheet"
href="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.css" />
</head>
<body>
<h1>Leaflet Test</h1>
<div id="map" style="width: 600px; height: 400px"></div>
<script
src="http://cdn.leafletjs.com/leaflet/v0.7.7/leaflet.js"></script>
<script>
// create a map in the "map" div, set view to given place, zoom
var map = L.map('map').setView([52.3760, 4.8978], 12);
// add an OpenStreetMap tile layer
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a
href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
</script>
</body>
</html>
The console of the browser (right click -> inspect element -> console) said:
ReferenceError: L is not defined.
It refers to this line:
var map = L.map('map').setView([52.3760, 4.8978], 12);
I found this very astonishing because as far as I know, L is an object (?)
defined in leaflet.js, which I included above. The same code executed fine
in iceweasel 38.6.0.
Best regards
rhymebub
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug-gnuzilla] Icecat and Leaflet JS,
rhymebub <=