This commit is contained in:
thinkinggis 2019-11-14 20:28:30 +08:00
parent 9e3242be2c
commit 1dd2e53b8e
2 changed files with 4 additions and 2 deletions

View File

@ -65,7 +65,7 @@ const colorObj = {
'#F5E4EF', '#F7CDDF', '#F5E4EF', '#F7CDDF',
'#ED9CBE', '#D1749B' '#ED9CBE', '#D1749B'
], ],
color4: [ '#F7B74A', '#FF4818', '#FFF598', '#F27DEB', '#8C1EB2', '#421EB2' ] color4: [ '#421EB2', '#8C1EB2', '#F27DEB', '#FFF598', '#F7B74A', '#FF4818' ]
} }
fetch('https://gw.alipayobjects.com/os/basement_prod/d3564b06-670f-46ea-8edb-842f7010a7c6.json') fetch('https://gw.alipayobjects.com/os/basement_prod/d3564b06-670f-46ea-8edb-842f7010a7c6.json')

View File

@ -24,7 +24,9 @@ export default class LayerService implements ILayerService {
public add(layer: ILayer) { public add(layer: ILayer) {
this.layers.push(layer); this.layers.push(layer);
// layer.init(); debugger
this.initPlugin(layer);
layer.init();
} }
public initLayers() { public initLayers() {