how to skip wrong pushpinsymbol and map style, using datamap

Anonymous
09-10-2002, 01:49 PM
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

John Meyer
09-10-2002, 02:44 PM
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/discussion/viewtopic.asp?t=3377

Anonymous
09-11-2002, 06:15 AM
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

John Meyer
09-11-2002, 07:18 PM
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,

 
Web mp2kmag.com
mapforums.com