more tiles stuff working...
This commit is contained in:
parent
a7a095ecbf
commit
6fe3132f23
8 changed files with 66 additions and 21 deletions
|
|
@ -1,8 +1,10 @@
|
|||
package dev.adamko.kafkatorio.webmap
|
||||
|
||||
import io.kvision.maps.DefaultTileLayers
|
||||
import io.kvision.maps.externals.leaflet.geo.CRS
|
||||
import io.kvision.maps.externals.leaflet.geo.LatLng
|
||||
import io.kvision.maps.Maps
|
||||
import io.kvision.maps.Maps.Companion.L
|
||||
import io.kvision.utils.px
|
||||
|
||||
//
|
||||
|
|
@ -24,9 +26,16 @@ fun createFactorioMap() = Maps {
|
|||
margin = 10.px
|
||||
|
||||
configureLeafletMap {
|
||||
setView(LatLng(0, 0), 13)
|
||||
setView(LatLng(0, 0), 1)
|
||||
|
||||
// DefaultTileLayers.OpenStreetMap.addTo(this)
|
||||
L.tileLayer(
|
||||
"""http://localhost:9073/tiles/s1/z1/x{x}/y{y}.png"""
|
||||
) {
|
||||
attribution = "kafkatorio"
|
||||
tms = true
|
||||
minZoom = 1
|
||||
}.addTo(this)
|
||||
|
||||
with(options) {
|
||||
crs = CRS.Simple
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue