# Having Difficulty Identifying points

**URL:** <https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849>\
**Category:** Uncategorized\
**Created:** [December 29, 2020, 6:37am UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849 "2020-12-29T06:37:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [December 29, 2020, 6:37am UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/1 "2020-12-29T06:37:50Z")

</div>

Hello

I am having difficulty identifying points. The points have lines above or below them. I have to Zoom in real close to where the point is away from the line, then I am able t Identify the point.

 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/653ca12a78c78e621682f0508c219c7a9454cfb8.png)

my code is as follows:

```
Private Sub Idenfify_Toggle_Button_Click()

'------------------------------------------
' Button - Identify Toggle Button
'------------------------------------------

    Select Case Me.Idenfify_Toggle_Button.Value

           Case True
           
                    Map0.Identifier.IdentifierMode = imAllLayersStopOnFirst
                    Map0.Identifier.OutlineColor = vbYellow
                    Map0.Identifier.HotTracking = True
                   
                    Map0.CursorMode = tkCursorMode.cmIdentify
    
           Case False
           
                    Map0.CursorMode = tkCursorMode.cmZoomIn
                    Map0.SetFocus
    
    End Select

End Sub

```

```auto
Private Sub Map0_ShapeIdentified(ByVal LayerHandle As Long, ByVal shapeIndex As Long, ByVal pointX As Double, ByVal pointY As Double)

    '------------------------------------------
    ' Event code for mouse button click
    ' and display message box of assets
    ' description and Spatial ID
    '------------------------------------------

        If LayerHandle = -1 Then End
                 
        Dim sf As New MapWinGIS.Shapefile
        
            Set sf = Map0.Shapefile(LayerHandle)
                        
        If sf.CellValue(Spatial_ID_Field(LayerHandle), shapeIndex) = "" Then End
                      
        search_string = "SpatialID = '" & sf.CellValue(Spatial_ID_Field(LayerHandle), shapeIndex) & "'"
    
        DoCmd.OpenForm "FRM Map Inventory PopUp", , , search_string
            
End Sub

```

---

<div class="post-metadata">

**Author:** ![jerryfaust](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/jerryfaust/32/378_2.png) [@jerryfaust](https://mapwindow.discourse.group/u/jerryfaust)\
**Post date:** [December 29, 2020, 8:02am UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/2 "2020-12-29T08:02:05Z")

</div>

Hello stu.

Do you need to be able to Identify all of the layers? Because you could just specify

```
Map0.Identifier.IdentifierMode = imSingleLayer

```

Then use the `ChooseLayer` event to specify the Layer Handle of the point layer. Then it should only identify the points even when in close quarters.

In the mean time, I’ll think about a response if indeed you need to be able to Identify any of the layers.

Regards,  
Jerry.

---

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [December 30, 2020, 8:07pm UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/3 "2020-12-30T20:07:51Z")

</div>

Hi Jerry

Yes, I need to identify all layers. They are:

- lines are roads
- points are bridges

Thanks for your help

stu

---

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [December 31, 2020, 6:14am UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/4 "2020-12-31T06:14:54Z")

</div>

I found a solution!!

I found [MouseTollerance](https://mapwindow.org/documentation/mapwingis4.9/class_global_settings.html#abef2327b11112d8493cd9b8d9df0f237) in the GlobalSettings. This function gets or sets a value which determines how close to a particular object mouse cursor should be in order to select it with mouse click. The default value is 20 (Pixels I assume)

I changed the value to 5 and I now can select the points from a much larger scale of 5 km compared to 18 m before.

This works for me!

Thanks again for your support

Have a Happy New Year

Stu

---

<div class="post-metadata">

**Author:** ![stu](https://avatars.discourse-cdn.com/v4/letter/s/3ec8ea/32.png) [@stu](https://mapwindow.discourse.group/u/stu)\
**Post date:** [December 31, 2020, 6:22am UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/5 "2020-12-31T06:22:35Z")

</div>

I thought I would add an example of how far I can Zoom out and select a point.

I am able to select any point on the following map. I love it!

 ![image](https://global.discourse-cdn.com/free1/uploads/mapwindow1/original/1X/e496d9fc7f4f0852692a38b284465aaa55045846.png)

stu

---

<div class="post-metadata">

**Author:** ![pmeems](https://yyz2.discourse-cdn.com/free1/user_avatar/mapwindow.discourse.group/pmeems/32/9_2.png) [@pmeems](https://mapwindow.discourse.group/u/pmeems)\
**Post date:** [January 5, 2022, 3:30pm UTC](https://mapwindow.discourse.group/t/having-difficulty-identifying-points/849/6 "2022-01-05T15:30:08Z")

</div>


