MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




find city name & state name on mouse move event

This is a discussion on find city name & state name on mouse move event within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How do you find name of the city and the corresponding state on mousemove event (using the mouse coordinates). I ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-05-2004
Junior Member
White Belt
 
Join Date: Sep 2004
Posts: 6
find city name & state name on mouse move event

How do you find name of the city and the corresponding state on mousemove event (using the mouse coordinates). I have tried using method ObjectsfromPoint(x,y) but it doesnt seem to help much. Moreover to properties City & State can only be obtained if you have Street Address.

Thanks
Atzy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 10-11-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,291
Blog Entries: 1
This really isn't supported.. you could explore and use one of the Reverse Geocoding techniques, there are three articles on the topic on this web site.

I think it might involve a timer and periodically creating and destroying a temporary pushpin. Note that the reverse geocoding techniques can take .25 to 1 second, so it's not exactly instantaneous..

Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 10-15-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
to match a place when the mouse move

try this

Dim objResults As MapPoint.FindResults
Dim objResult As Object
Dim i As Integer

Set objResults = objMap.ObjectsFromPoint(X, Y)

If objResults.Count > 1 Then
For i = 2 To objResults.Count
Set objResult = objResults.Item(i)
If objResult.Type = 12 Then
strCP = objResult.Name
lblCP = objResult.Name
ElseIf objResult.Type = 16 Then
lblCommune = objResult.Name
End If
Next i
end if

I use it in a beforclick event to disply the postal code and the county name (Commune) on a labels on a form (12 and 16 types)
It's working fine but.. when the cursor pass on thematic map. th findResults collection seems to "change" in her behavior.. so the "type" property is NOT allowed. An error ocurred. For me the model object of Mappoint is lacking of consistency .
Anyone as a solution?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
ActiveX MapPointControl: How to find county from City, State UncleJaz MapPoint 2006/2009 Discussion 13 09-12-2006 03:34 PM
How do you find the territory for a given city and state UncleJaz MapPoint 2006/2009 Discussion 0 04-05-2006 10:50 AM
Finding Longs and Lats on mouse Move Anonymous MapPoint 2006/2009 Discussion 1 11-22-2004 03:12 AM
Capture the Pushpin move event Maverick MapPoint 2006/2009 Discussion 1 04-14-2003 01:34 AM
Ist it possible to get X, Y from mouse move blackmap MapPoint 2006/2009 Discussion 1 12-16-2002 03:54 PM


All times are GMT -5. The time now is 09:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5
MP2K Magazine
Visitor Map

Cheap Flight to Tenerife
Get a cheap flight to Tenerife and a cheap hotel in Tenerife giving you a great value holiday in Tenerife. Holiday Hypermarket can make it happen.

Honeymoon Holidays
Book your Honeymoon holiday with Travel Counsellors. A personal advisor will help you plan the perfect honeymoon holiday.

Holidays to Thailand
The best cultures and backgrounds make Thailand an interesting and memorable country to visit. Book great value holidays to Thailand online at dealchecker.co.uk.

Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.

Holidays
For bargain holidays to destinations including Mexico, South Africa, India and more, visit ULookUBook online today. Check out our free travel guides to help you make an informed decision for your holidays.

Travel Tickets
Travel tickets need not always be expensive. Check out your best travel comparison site, Travel.co.uk

Holidays in Gran Canaria
Have some fun in the sun on the Canary Islands! See On The Beach for information on holidays in Gran Canaria.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51