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

how to skip wrong pushpinsymbol and map style, using datamap

This is a discussion on how to skip wrong pushpinsymbol and map style, using datamap within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I would like to show my recorded gps locations on a normal GeoMapStyleRoad map. I like to use some ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    how to skip wrong pushpinsymbol and map style, using datamap

    Hi,

    I would like to show my recorded gps locations on a normal GeoMapStyleRoad map.
    I like to use some special pushpinsymbols.

    It works, but when mappoint is doing this, at first I get the normal black pushpins, then the datatype map ,and then everything starts to change like I want it, meaning other pushpin symbols (selected in arrayofpushpinsymbols) and the routestyle map (GeoMapStyleRoad)

    Can anyone tell me how to skip this "unwanted view"????

    Thanks for your advice,

    wim


    Set objdataset = objmap.datasets.ImportData("c:\gps\pushpinall.txt" , xfieldarray, geoCountryTheNetherlands, geoDelimiterSemicolon, geoImportFirstRowIsHeadings)
    Set objfield = objdataset.Fields("speed")
    Set objdatamap = objdataset.DisplayDataMap(geoDataMapTypeMultipleSy mbol, _
    objfield, geoShowByLatLong, geoCombineByNone, geoRangeTypeDiscreteEqualRanges, _
    geoRangeOrderDefault, , 8, arrayofcustomvalues, , , , arrayofpushpinsymbols)
    objdataset.zoomto
    objmap.MapStyle = geoMapStyleRoad

  2. #2
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    You should be able to put the "objmap.MapStyle = geoMapStyleRoad" at the top of your code sample. Not sure how you could stop the pushpins from being drawn as the defaut pushpin for the dataset before your custom pushpin but you could lock the form or control from being redrawn or updated until the import is complete.

    Here is a link I gave to someone that was trying suspend the redraw of the map.

    http://www.mp2kmag.com/mappoint/disc...pic.asp?t=3377

  3. #3
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137
    Dear John,

    Thanks for your advice!!!

    putting mapstyle "roadmap" on top of code doesn't work, in fact this is default style for mappoint.
    Using display datamap, automatically changes to the datamap style.

    But your advice to lock the windowupdate solves my problem perfect.

    I never used DLL call before but it works!
    Do you think this DLL call will work if somebody use my program in other windows version? (I use win 98 now)

    Regards,

    wim

  4. #4
    John Meyer's Avatar
    John Meyer is offline Senior Member Blue Belt
    Join Date
    Jul 2002
    Posts
    478
    I'm glad it worked for you, its very nice to get the feedback too!

    Good point about the Display Datamap.

    I've used the LockWindowUpdate with Win2000Pro but I think it will work with all Windows versions above Win95...

    Take Care,

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Skip the pushpin view with DisplayDataMap
    By Keter in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 06-28-2005, 11:34 AM
  2. Getting shapes from DataMap
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-16-2005, 06:36 PM
  3. Can you change the style of a map?
    By sparky in forum Bing Maps and MapPoint Web Service
    Replies: 0
    Last Post: 10-27-2004, 12:23 PM
  4. Can one say me how to change color of DataMap to white!!
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-09-2003, 10:15 AM
  5. DataMap object
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 08-30-2002, 05:04 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