mirror of
https://github.com/enzet/map-machine.git
synced 2025-08-06 10:09:52 +02:00
Fix readme.
This commit is contained in:
parent
23bb69b653
commit
66a57678d9
2 changed files with 4 additions and 2 deletions
|
@ -251,7 +251,9 @@ roentgen server
|
||||||
Use JavaScript code for [Leaflet](https://leafletjs.com/):
|
Use JavaScript code for [Leaflet](https://leafletjs.com/):
|
||||||
|
|
||||||
```js
|
```js
|
||||||
zxy', {
|
var map = L.map('mapid').setView([48.8555, 2.3655], 18);
|
||||||
|
|
||||||
|
L.tileLayer('http://127.0.0.1:8080/tiles/{z}/{x}/{y}', {
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Map data © ' +
|
attribution: 'Map data © ' +
|
||||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
||||||
|
|
|
@ -260,7 +260,7 @@ Use JavaScript code for \ref {https://leafletjs.com/} {Leaflet}\:
|
||||||
|
|
||||||
\code {var map = L.map('mapid').setView([48.8555, 2.3655], 18);
|
\code {var map = L.map('mapid').setView([48.8555, 2.3655], 18);
|
||||||
|
|
||||||
L.tileLayer('http://127.0.0.1:8080/tiles/{z}/{x}/{y}', \{
|
L.tileLayer('http://127.0.0.1:8080/tiles/\{z\}/\{x\}/\{y\}', \{
|
||||||
maxZoom: 19,
|
maxZoom: 19,
|
||||||
attribution: 'Map data © ' +
|
attribution: 'Map data © ' +
|
||||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue