Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

MapPoint AutoZoom

This is a discussion on MapPoint AutoZoom within the MapPoint Desktop Discussion forums, part of the Map Forums category; I'm using mappoint to track car movements. I would like to implement a dynamic autozoom in MapPoint: When there are ...

  1. #1
    masty is offline Junior Member White Belt
    Join Date
    Sep 2006
    Posts
    6

    Question MapPoint AutoZoom

    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.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

  3. #3
    masty is offline Junior Member White Belt
    Join Date
    Sep 2006
    Posts
    6
    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!

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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