3 Star 0 Fork 0

mirrors_ReneNyffenegger/OpenStreetMapWebkarten

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
index_ueb_webmap3.html 1.61 KB
一键复制 编辑 原始数据 按行查看 历史
Ŝeverin Fritschi 提交于 2017-05-03 11:03 . Minor path fix
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de-de">
<head>
<title>Webmap &Uuml;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 &Uuml;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>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_ReneNyffenegger/OpenStreetMapWebkarten.git
git@gitee.com:mirrors_ReneNyffenegger/OpenStreetMapWebkarten.git
mirrors_ReneNyffenegger
OpenStreetMapWebkarten
OpenStreetMapWebkarten
master

搜索帮助