-
Notifications
You must be signed in to change notification settings - Fork 107
Graphics Layer Events Not Raised #338
Comments
This is possible using this repo and we have some docs pages that can shed some light on achieving this. If you're using Esri JSAPI v3.x: https://arcgis.github.io/angular-esri-map-site-v1/#/patterns If you're using Esri JSAPI v4.x: https://esri.github.io/angular-esri-map/#/patterns We'll need more information to go on if the docs don't point you in the right direction. As per the new issue guidelines for this repo:
|
@bbehling adding onto @jwasilgeo comments above, click events do work using ArcGIS JS API 4.x. What you are noticing is there are no mouse events on the 4.x The events are available on To capture click events in
And in your controller code:
Here's an example app that prototypes one approach for determining if a graphic is near a click event: http://jsbin.com/tuqagop |
Sorry, I should have specified some more information.... I have an Angular app that is not using this repo, but using the ESRI JSAPI v3.x. In that app, we create our own Angular ESRI directives. I contacted ESRI support about this issue and was given the information this isn't supported, so I wasn't sure where else to post this question (also posted on the geonet forum). For a work around, I used the click event on the map. When I get some extra time, I will post a plunkr similar to what we are doing in our app. Everything else in our custom ESRI directives is working perfectly, its just these Graphic Layer events seem to be an issue. I tested the graphic-add event, and that event is raised. |
Hi @bbehling, hopefully things are all good now? I'll close because it has been awhile since we've had activity on this issue, but feel free to reopen if anything else related comes up. Thanks. |
I have found a few Graphic Layer events not raised when used in an Angular app; Load ,Click, and Mouse Over.
I was told by an ESRI analyst that this is not supported in Angular.
Any idea on what I need to do to get at least the mouse events on a Graphics layer working in Angular?
The text was updated successfully, but these errors were encountered: