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 3 of 3

Display Moving objects on Map in ASP.net

This is a discussion on Display Moving objects on Map in ASP.net within the Bing Maps and MapPoint Web Service forums, part of the Map Forums category; I am building an ASP.net web application using the Mappoint Web service 4.1 to display a map with a moving ...

  1. #1
    whenry6000 is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    1

    Display Moving objects on Map in ASP.net

    I am building an ASP.net web application using the Mappoint Web service 4.1 to display a map with a moving vehicle shown on the map. This requires the data for the vehicle to update every 3-6 seconds, but without refeshing the map itself (until the vehicle scrolls to a certain point). Can someone explain how they would go about doing this, or point me towards an example??

    Thanks,
    Wallace

  2. #2
    Mark - MSFT is offline Junior Member Yellow Belt
    Join Date
    Dec 2005
    Posts
    22

    Re: Display Moving objects on Map in ASP.net

    Hey whenry6000

    Consider using AJAX to handle the graphic on top of the map, that will handle your requirement for not refreshing the page. You can put a graphic (icon) in a div tag and just update the positional information based on your vehicle’s Lat/Long which can then be converted into an x,y (then plotted on the map image) coordinate using the convertToPoint() method. The bounding box your map is in has known coordinates, so you can set your map to pan when you are x pixels from the edge.

    Hope that helps,

    Mark - MSFT

  3. #3
    kirkdybvik is offline Junior Member White Belt
    Join Date
    Aug 2005
    Posts
    3

    Re: Display Moving objects on Map in ASP.net

    Is there any sample code that could be shared regarding this? Seems simple in concept but that it might get tricky to keep the two images in sync (zoom in/out, pan or possible differences in map projection when zoomed out and trying to draw a polygon).

    I wonder how hard it would be to "intercept" the image from MapPoint and draw whatever you wanted on top of the background map? Are there any examples of this type of custom drawing available?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Textboxes Without Borders or Label Objects
    By malejo in forum Wish List
    Replies: 0
    Last Post: 08-17-2005, 11:31 AM
  2. How to tell if an objects location is visible?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-28-2004, 09:15 AM
  3. limiting objects in collection
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-27-2004, 08:52 AM
  4. specify label to all the objects of a layer
    By Anonymous in forum Wish List
    Replies: 0
    Last Post: 08-28-2002, 08:22 AM
  5. Mappoint2002 vs. ESRI Map Objects
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-07-2002, 09:15 AM

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 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96