forked from MapComplete/MapComplete
Merge master
This commit is contained in:
commit
c358a4c415
72 changed files with 5113 additions and 1023 deletions
|
@ -422,6 +422,9 @@ export class MapLibreAdaptor implements MapProperties, ExportableMap {
|
|||
map.addSource(background.id, MapLibreAdaptor.prepareWmsSource(background))
|
||||
}
|
||||
if (!map.getLayer(background.id)) {
|
||||
addLayerBeforeId ??= map
|
||||
.getStyle()
|
||||
.layers.find((l) => l.id.startsWith("mapcomplete_"))?.id
|
||||
console.log(
|
||||
"Adding background layer",
|
||||
background.id,
|
||||
|
|
|
@ -513,7 +513,7 @@ export default class ShowDataLayer {
|
|||
const l = new LineRenderingLayer(
|
||||
map,
|
||||
features,
|
||||
this._options.layer.id + "_linerendering_" + i,
|
||||
"mapcomplete_" + this._options.layer.id + "_linerendering_" + i,
|
||||
lineRenderingConfig,
|
||||
doShowLayer,
|
||||
fetchStore,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue