代码拉取完成,页面将自动刷新
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de-de">
<head>
<title>Webmap Übung 3 - GeoJSON mit Castles</title>
<meta charset="UTF-8">
<meta http-equiv="content-script-type" content="text/javascript" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="content-language" content="en" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.3/dist/leaflet.css" />
<link rel="stylesheet" type="text/css" href="map.css"></link>
<script src="https://unpkg.com/leaflet@1.0.3/dist/leaflet.js"></script>
<script src='https://api.mapbox.com/mapbox-gl-js/v0.34.0/mapbox-gl.js'></script>
<script src='https://api.mapbox.com/mapbox.js/v3.0.1/mapbox.js'></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="JS/config.js"></script>
<script type="text/javascript" src="JS/geojsonHandler.js"></script>
</head>
<body>
<p>Webmap Übung 3 - GeoJSON mit Castles</p>
<div id="castleMap"></div>
<script>
var map = L.map('castleMap', {
center: [47.22320, 8.81744],
zoom: 10,
layers: [mapboxSatellite, mapboxStreets]
});
var castleJSON = "data/castles.geojson";
var castleIcon = "img/Castle.png";
var castles = new L.LayerGroup(),
layerIcon = L.icon({
iconUrl: castleIcon,
iconSize: [18, 18]
}),
castles = loadGeojson(castleJSON, castles, layerIcon);
castles.addTo(map);
var overlayMaps = {
"Castles": castles
};
L.control.layers(baseMaps, overlayMaps).addTo(map);
</script>
</body>
</html>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。