mirror of https://gitee.com/antv-l7/antv-l7
fix marker css
This commit is contained in:
parent
cb81e4c66e
commit
ed7de0b402
|
@ -48,7 +48,17 @@
|
||||||
.render();
|
.render();
|
||||||
});
|
});
|
||||||
$.getJSON('https://gw.alipayobjects.com/os/basement_prod/0b96cca4-7e83-449a-93d0-2a77053e74ab.json', function(data) {
|
$.getJSON('https://gw.alipayobjects.com/os/basement_prod/0b96cca4-7e83-449a-93d0-2a77053e74ab.json', function(data) {
|
||||||
console.log(data);
|
scene.PointLayer()
|
||||||
|
.source(data.nodes,{
|
||||||
|
parser:{
|
||||||
|
type:'json',
|
||||||
|
coordinates:'coordinates',
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.shape('circle')
|
||||||
|
.color('#f00')
|
||||||
|
.size(8)
|
||||||
|
.render();
|
||||||
data.nodes.forEach(item=>{
|
data.nodes.forEach(item=>{
|
||||||
const el = document.createElement('div');
|
const el = document.createElement('div');
|
||||||
const total = item.gdp.Agriculture + item.gdp.Industry + item.gdp.Service;
|
const total = item.gdp.Agriculture + item.gdp.Industry + item.gdp.Service;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.l7-marker {
|
.l7-marker {
|
||||||
position: absolute;
|
position: absolute !important;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
|
|
|
@ -110,7 +110,7 @@ export default class GaodeMap extends Base {
|
||||||
this.amapContainer = this.map.getContainer().getElementsByClassName('amap-maps')[0];
|
this.amapContainer = this.map.getContainer().getElementsByClassName('amap-maps')[0];
|
||||||
this.renderDom = document.createElement('div');
|
this.renderDom = document.createElement('div');
|
||||||
this.renderDom.style.cssText +=
|
this.renderDom.style.cssText +=
|
||||||
'position: absolute;top: 0; z-index:1;height: 100%;width: 100%;pointer-events: none;';
|
'position: absolute;top: 0;height: 100%;width: 100%;pointer-events: none;';
|
||||||
this.renderDom.id = 'l7_canvaslayer';
|
this.renderDom.id = 'l7_canvaslayer';
|
||||||
|
|
||||||
this.amapContainer.appendChild(this.renderDom);
|
this.amapContainer.appendChild(this.renderDom);
|
||||||
|
|
Loading…
Reference in New Issue