private void FeatureLayer_MouseEnter(object sender, GraphicMouseEventArgs e) { MyMap.Cursor = Cursors.Hand; } private void FeatureLayer_MouseLeave(object sender, GraphicMouseEventArgs e) { MyMap.Cursor = Cursors.Arrow; }
private void MapMouseMove(object sender, MouseEventArgs mouseEventArgs) { MapPoint mapPoint = MyMap.ScreenToMap(mouseEventArgs.GetPosition(MyMap)); MyMap.Cursor = MyFeatureLayer.FullExtent.Intersects(mapPoint) ? Cursors.Hand : Cursors.Arrow; }
Map has a Cursor property, FeatureLayer has MouseEnter, MouseLeave events.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.