Select to view content in your preferred language

Mapview Bug? - HitTest

1118
4
Jump to solution
04-03-2018 11:28 AM
mingleidi
Emerging Contributor

I'm using Arcgis api for javascript 4.5,  and got following issue after mouse over on the map a few times:

Here's my mouse over handler:

this.config.view.on("pointer-move", (event) => this._pointerMoveHandler(event));

_pointerMoveHandler(event: any) {
// the hitTest() checks to see if any graphics in the view
// intersect the given screen x, y coordinates
this.config.view.hitTest(event)
.then((event) => this._showGraphicTooltip(event))
.otherwise((event) => this._closeToolTipDialog());
}

Here's MapView source code:

Could anyone please help? It's an urgent issue.

Much appreciated!

0 Kudos
1 Solution

Accepted Solutions
KenBuja
MVP Esteemed Contributor

It should be sometime this month. The API is available now, but until it's officially released, there could be changes.

View solution in original post

4 Replies
KenBuja
MVP Esteemed Contributor

This apparently is a bug in hitTest that is fixed in 4.7

https://community.esri.com/message/759086-4x-hittest-issue 

mingleidi
Emerging Contributor

Thanks Ken, do you know when 4.7 will be released? My project will go-live soon.

0 Kudos
KenBuja
MVP Esteemed Contributor

It should be sometime this month. The API is available now, but until it's officially released, there could be changes.

mingleidi
Emerging Contributor

Thanks Ken, hopefully no delays.

0 Kudos