alexus
04-04-2008, 12:46 PM
Hey all
me again
So I want (in my castom app) to show my curent GPS position and keep updating it as I move along... is there any ready code for it or should i just get LAT LOng and refreshe pin position every half second? seams crapy isea to me ... will use too much resources... there should be some better way
any ideas ?
tnx
Wilfried
04-05-2008, 03:07 AM
Hi,
This is the way to go. Not much recourses, you can move the pushpin every time.
alexus
04-05-2008, 11:47 AM
damn, MS could of do the better job....
Do you know if there are any potrntial memory leaks if I will apdate location of the pushpin with the rate that GPS sends its data? its like 10 times a sec...
Also kind of similar question if I have pushpin with the sahpe of the triangle how can I rotate it to show the direction of the movement and how can I highlight the road where I have drove? Does MP supports vector overlies like google maps?
alexus
04-06-2008, 11:17 AM
well there is definetly some memory leaks in the code that i made, but its only creationg and focusing on the pin
When i start my gps app my app takes 0-1% of cpu and about 8mb of ram, while mappoint object takes 35% CPU and 35mb of ram, but over 5 hours of ime that changed too 100% of cpu and 400mb of ram :( while my app (the core) doesnt take anything
Wilfried
04-07-2008, 04:07 AM
Hi,
Do you know if there are any potrntial memory leaks if I will apdate location of the pushpin with the rate that GPS sends its data? its like 10 times a sec...
I think it is better to update once a second.
Also kind of similar question if I have pushpin with the sahpe of the triangle how can I rotate it to show the direction of the movement
You can add some bitmaps that indicates the direction and use them depending on current direction.
how can I highlight the road where I have drove?
You cannot, but you can connect each position with a line, highlight line or an arrow line in color of your choice.
Does MP supports vector overlies like google maps?
no.
Wilfried
04-07-2008, 04:09 AM
Hi,
well there is definetly some memory leaks in the code that i made, but its only creationg and focusing on the pin
When i start my gps app my app takes 0-1% of cpu and about 8mb of ram, while mappoint object takes 35% CPU and 35mb of ram, but over 5 hours of ime that changed too 100% of cpu and 400mb of ram :( while my app (the core) doesnt take anything
Do you see the same behavour if you update once a second? Do you use 1 pushpin or do you use a pushpin per position? The latter will eat more memory of course. For the former you can move pushpin, not create a new one each time.
alexus
04-07-2008, 11:41 AM
I didnt try to set 1 sec pdates yet (I just didnt figure out the methods how to deley the data, well more likelly skop some data)
As to pushpin I just changing its location, I have initiated the pin separatly