karteeiinbinden-mit-toolip.php
Quell Code
<!doctype html>
<html lang="de">
<head>
<script src="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.js"></script>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.css">
<title>Text-Datei in HTML</title>
<style>
*{
margin:0;
padding:0;
}
#map{
border:1px solid black;
}
#map{
width:100vw;
height:100vh;
}
path:hover {
fill: green;
stroke-width: 15;
dd;
stroke: blue;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
lat='52.2900';
lng='8.9400';
zoom=9;
var map = L.map('map').setView([lat, lng], zoom);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
id: 'mapbox.streets'
}).addTo(map);
var polygon1 = L.circle([lat, lng], 1500, {
color: 'red',
fillColor: '#f03',
fillOpacity: 0.5
}).addTo(map).bindPopup(map).bindPopup("<b>Minden</b><br />lat "+lat+"<br>ing "+lng+" <br>").openPopup();
</script>
</body>
</html>
- <!doctype html>
- <html lang="de">
- <head>
- <script src="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.js"></script>
- <link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.css">
- <title>Text-Datei in HTML</title>
- <style>
- *{
- margin:0;
- padding:0;
- }
- #map{
- border:1px solid black;
- }
-
- #map{
- width:100vw;
- height:100vh;
- }
- path:hover {
- fill: green;
- stroke-width: 15;
- dd;
- stroke: blue;
- }
- </style>
- </head>
- <body>
-
- <div id="map"></div>
- <script>
- lat='52.2900';
- lng='8.9400';
- zoom=9;
- var map = L.map('map').setView([lat, lng], zoom);
- L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
- maxZoom: 18,
- id: 'mapbox.streets'
- }).addTo(map);
- var polygon1 = L.circle([lat, lng], 1500, {
- color: 'red',
- fillColor: '#f03',
- fillOpacity: 0.5
- }).addTo(map).bindPopup(map).bindPopup("<b>Minden</b><br />lat "+lat+"<br>ing "+lng+" <br>").openPopup();
-
-
- </script>
- </body>
- </html>
<!doctype html>
<html lang="de">
<head>
<script src="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.js"></script>
<link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.css">
<title>Text-Datei in HTML</title>
<style>
*{
margin:0;
padding:0;
}
#map{
border:1px solid black;
}
#map{
width:100vw;
height:100vh;
}
path:hover {
fill: green;
stroke-width: 15;
dd;
stroke: blue;
}
</style>
</head>
<body>
<div id="map"></div>
<script>
lat='52.2900';
lng='8.9400';
zoom=9;
var map = L.map('map').setView([lat, lng], zoom);
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
maxZoom: 18,
id: 'mapbox.streets'
}).addTo(map);
var polygon1 = L.circle([lat, lng], 1500, {
color: 'red',
fillColor: '#f03',
fillOpacity: 0.5
}).addTo(map).bindPopup(map).bindPopup("<b>Minden</b><br />lat "+lat+"<br>ing "+lng+" <br>").openPopup();
</script>
</body>
</html>