Community of VE/MapPoint Users and Developers
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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| how to skip wrong pushpinsymbol and map style, using datamap 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 |
| ||||
|
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 |
| |||
|
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 |
| ||||
|
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 |
![]() |
| Tags |
| datamap, map, pushpinsymbol, skip, style, wrong |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |
Flights from Aberdeen
Get great value flights from Aberdeen online at Holiday Hypermarket. Find out all the key Aberdeen Airport information in just a few clicks at Holiday Hypermarket.
Honeymoon Holidays
Book your Honeymoon holiday with Travel Counsellors. A personal advisor will help you plan the perfect honeymoon holiday.
Jamaica Holidays
Jamaica Holidays can include world class business hotels, upscale shopping and top entertainment and dining. Alternatively, hit the beach or hike in the hills. Book online with us.
Holidays to Barbados
Holidays to Barbados have so much to offer. Enjoy the beauty of this Caribbean island for less by booking your holiday through us.
Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.
Price Compare
Visit Travel.co.uk for and compare not only price, but also the wide variety of options available.
Cheap Holidays in Gran Canaria
Would you like to visit the Canary Islands, but you're on a budget? Get information on cheap holidays in Gran Canaria at On The Beach.