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>
  1. <!doctype html>
  2. <html lang="de">
  3. <head>
  4. <script src="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.js"></script>
  5. <link rel="stylesheet" href="https://api.mapbox.com/mapbox.js/v2.3.0/mapbox.css">
  6. <title>Text-Datei in HTML</title>
  7. <style>
  8. *{
  9. margin:0;
  10. padding:0;
  11. }
  12. #map{
  13. border:1px solid black;
  14. }
  15. #map{
  16. width:100vw;
  17. height:100vh;
  18. }
  19. path:hover {
  20. fill: green;
  21. stroke-width: 15;
  22. dd;
  23. stroke: blue;
  24. }
  25. </style>
  26. </head>
  27. <body>
  28. <div id="map"></div>
  29. <script>
  30. lat='52.2900';
  31. lng='8.9400';
  32. zoom=9;
  33. var map = L.map('map').setView([lat, lng], zoom);
  34. L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
  35. maxZoom: 18,
  36. id: 'mapbox.streets'
  37. }).addTo(map);
  38. var polygon1 = L.circle([lat, lng], 1500, {
  39. color: 'red',
  40. fillColor: '#f03',
  41. fillOpacity: 0.5
  42. }).addTo(map).bindPopup(map).bindPopup("<b>Minden</b><br />lat "+lat+"<br>ing "+lng+" <br>").openPopup();
  43. </script>
  44. </body>
  45. </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>

vConsole
04:42:35
Uncaught TypeError: Cannot read properties of null (reading 'style')
/Kurze-Scripte-und-Codeschnipsel/index.php?name=karteeiinbinden-mit-toolip.php:2751:53
04:42:37
2132
04:42:35
WeChatLib: 0 (xxxx.xx.xx)
04:42:37
System: Unknown
04:42:37
Protocol: HTTPS
04:42:37
UA: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
04:42:37
navigationStart: 1744000955136
04:42:37
navigation: 10ms
04:42:37
dns: 105ms
04:42:37
tcp (ssl): 238ms (130ms)
04:42:37
request: 215ms
04:42:37
response: 109ms
04:42:37
domComplete (domLoaded): 1810ms (1382ms)
04:42:37
loadEvent: 17ms
04:42:37
total (DOM): 2399ms (2382ms)