João Paulo Figueira
12/30/2021, 12:45 PMPolylineOptions
class, but there is no apparent method to create a polyline object. Do I need to extend the existing code?Robert Jaros
12/30/2021, 12:57 PMJoão Paulo Figueira
12/30/2021, 1:45 PMio.kvision.MapsModule.leaflet
is internal, so not visible to other modules. What do you think / suggest?Robert Jaros
12/30/2021, 2:46 PMval leaflet = require("leaflet")
and it should be exactly the same object.Robert Jaros
12/30/2021, 2:47 PMJoão Paulo Figueira
12/30/2021, 2:51 PMRobert Jaros
12/30/2021, 3:19 PMRobert Jaros
12/30/2021, 3:24 PMJoão Paulo Figueira
12/30/2021, 3:27 PMJoão Paulo Figueira
12/30/2021, 3:28 PMAdam S
12/30/2021, 3:29 PMAdam S
12/30/2021, 3:54 PMJoão Paulo Figueira
12/30/2021, 5:24 PMadd*
functions return a handle to the created object. One possible use-case for this would be the process of user editing of a geo-fence.Adam S
12/30/2021, 9:13 PMadd
functions aren't that useful, they're simple helper functions. I think I'll remove them.
the equivalent is
configureMap {
val line = MapsModule
.createPolyline(
listOf(
LatLng(55, 2),
LatLng(65, 2),
LatLng(65, 20),
LatLng(55, 20),
)
) {
noClip = true
}
addLayer(line)
}
the Polyline can be created anywhere, it just needs to be added inside the configureMap{}
block