private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e) { MyMap.Cursor = Cursors.Hand; } private void FeatureLayer_MouseLeave(object sender, GraphicMouseEventArgs e) { MyMap.Cursor = Cursors.Arrow; }
Map has a Cursor property, FeatureLayer has MouseEnter, MouseLeave events.
private void MapMouseMove(object sender, MouseEventArgs mouseEventArgs) { MapPoint mapPoint = MyMap.ScreenToMap(mouseEventArgs.GetPosition(MyMap)); MyMap.Cursor = MyFeatureLayer.FullExtent.Intersects(mapPoint) ? Cursors.Hand : Cursors.Arrow; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.