diff options
Diffstat (limited to 'kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt')
-rw-r--r-- | kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt b/kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt index 5fb39d42..b5925901 100644 --- a/kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt +++ b/kvision-modules/kvision-maps/src/main/kotlin/pl/treksoft/kvision/KVManagerMaps.kt @@ -21,6 +21,8 @@ */ package pl.treksoft.kvision +import pl.treksoft.kvision.utils.obj + internal val kVManagerMapsInit = KVManagerMaps.init() /** @@ -34,5 +36,14 @@ internal object KVManagerMaps { internal val leaflet = require("leaflet/dist/leaflet.js") + init { + leaflet.Icon.Default.imagePath = "./" + leaflet.Icon.Default.mergeOptions(obj { + iconRetinaUrl = require("leaflet/dist/images/marker-icon-2x.png") + iconUrl = require("leaflet/dist/images/marker-icon.png") + shadowUrl = require("leaflet/dist/images/marker-shadow.png") + }) + } + internal fun init() {} } |