Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arcgis 穿透地图点击事件 #6

Open
q2434006 opened this issue Feb 20, 2017 · 1 comment
Open

Arcgis 穿透地图点击事件 #6

q2434006 opened this issue Feb 20, 2017 · 1 comment

Comments

@q2434006
Copy link

你好:
源代码如下
n.style.height = e.height + "px",
n.style.width = e.width + "px",
n.style.top = 0,
n.style.left = 0,
---- e.__container.appendChild(n)
---- e.__container.children[0].appendChild(n),
this._init(e, t)
使用 e.__container.appendChild(n) 时 arcgis 地图图层内的点无法点击(无法触发点击事件),
使用 e.__container.children[0].appendChild(n) 时 arcgis地图图层内可以点击,但是 ECharts 无法触发鼠标移上去事件(ToolTips)

@SCLGIS
Copy link

SCLGIS commented Aug 31, 2018

不需要穿透事件的,你把加载图标的画布顺序调整一下就行。
this._map = e;
var n = this._echartsContainer = document.createElement("div");
n.style.position = "absolute",
n.id = "echarts_for_esri_maps",
n.style.height = e.height + "px",
n.style.width = e.width + "px",
n.style.top = 0,
n.style.left = 0,
e.container.querySelector('.esri-view-root').querySelector('.esri-view-surface').appendChild(n),
this._init(e, t)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants