MapPoint AutoZoom

masty
09-18-2006, 11:59 AM
I'm using mappoint to track car movements.
I would like to implement a dynamic autozoom in MapPoint:

When there are many roads around a location (lat/lon point) I would like to zoom at a level that I can see all those roads (at example in the center of a town). Otherwise, when I want to view around a location without so many roads the altitude (zoom level) should increase.

In other words.. is there any way to understand if a location belongs to a city center with many intersection near or not?
Thanks in advance.

Wilfried
09-19-2006, 09:49 AM
Hi,

I dont think you can. However as workaround you could have your own database with all cities in and eventually the radius per city. At every position you calculate the difference to the city center, and when you are in then change the zoom level.

masty
09-20-2006, 05:30 AM
Thank you Wilfried for your reply,

I think the database would be a solution even it would be too large to create... I thought to another solution which I post so it could help someone else. (not tested yet).

The goal is to know if around a given location there are many roads or not... so I can modify the zoom level.

The steps should be:
- Create a random set of location around the given location (the number of the location should be found experimentally)
- Get the address for all of these location, without any search alghorithm, just search in the given point.
- The number of found valid addresses could be a measure of how many roads are in the around of the given location.

I'll let you know if this can work... and if this would be enough fast.

Bye!

Wilfried
09-20-2006, 03:38 PM
Hi,

Yes this seems a good idea :) Set Altitude to some level to find out how meany streetAdresses you find and set zoom level. Looks a good method at first sight. Please feedback your resulsts.

 
Web mp2kmag.com
mapforums.com