MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




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 2006/2009 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 ...


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
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 09-10-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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 09-11-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 09-11-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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,
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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

Tags
datamap, map, pushpinsymbol, skip, style, wrong


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
Skip the pushpin view with DisplayDataMap Keter MapPoint 2006/2009 Discussion 0 06-28-2005 11:34 AM
Getting shapes from DataMap Anonymous MapPoint 2006/2009 Discussion 0 01-16-2005 06:36 PM
Can you change the style of a map? sparky MapPoint Web Service and Virtual Earth 0 10-27-2004 12:23 PM
Can one say me how to change color of DataMap to white!! Anonymous MapPoint 2006/2009 Discussion 0 04-09-2003 10:15 AM
DataMap object Anonymous MapPoint 2006/2009 Discussion 2 08-30-2002 05:04 AM


All times are GMT -5. The time now is 12:27 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Menorca Holiday
Enjoy a Menorca holiday at a great rate when booked through UlookUbook!



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