PDA

View Full Version : [Multi pushpins selection ?]



Vincent BENNER
12-02-2002, 09:21 AM
Hello,

I'd like to make a multi pushpin selection.
It seems to be impossible (but I'm not sure).

So, I'd like to know if it's possible to draw a
shape and to know all the pushpins which are
inside those shape.

Regards,

Vincent BENNER

John Meyer
12-02-2002, 11:43 AM
There is not a way to select more than one pushpin but you can draw a shape and right click the shape, choose export to excel.

Programmatically you would use one of these tree methods:

QueryShape
QueryPolygon
QueryCircle

blackmap
01-29-2003, 10:33 AM
What is that?
Querybycircle not available for puspins???

The following code indeed shows no hits:

Set objRecords = objDataSet.QueryCircle(objLoc, 2000)
objRecords.MoveFirst
Do While Not objRecords.EOF
If TypeOf objRecords Is MapPoint.Pushpin Then
lngCount = lngCount + 1
End If
objRecords.MoveNext
Loop
List1.AddItem lngCount

I want to select the puspins (my own set) lying within that circle. Not possible?

Anonymous
01-29-2003, 02:23 PM
Hi, Peter:

I checked your code:

Set objRecords = objDataSet.QueryCircle(objLoc, 2000)
objRecords.MoveFirst
Do While Not objRecords.EOF
If TypeOf objRecords Is MapPoint.Pushpin Then
lngCount = lngCount + 1
End If
objRecords.MoveNext
Loop
List1.AddItem lngCount

Everything is fine but one place: the type of OBJRECORDS is MAPPOINT.Recordset, it is not a Pushpin. So you can't check its type to determine if the current record is a pushpin or not. :-)

blackmap
01-30-2003, 04:41 AM
Thanks!
I checked the Parent.Name of the records and there are several hits.
Next problem: Given a radius of 100 meters Querybycircle finds records which are outside of the circle. Is the Querybycircle method not exact?

Peter