Hi,all
I have displayed a map on the phone.Then I want to add an animation car on the map.
How could I implementation it ?
Thank you in advance!
Hi,all
I have displayed a map on the phone.Then I want to add an animation car on the map.
How could I implementation it ?
Thank you in advance!
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
Hi,raj_J2ME
It is not a game. The map is a city map.And the Animation on the map just like a car moving in the Vehicle Monitoring System.
Thanks,
good regards!
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
hehe,
I'm afraid there are no map API guru's, simply because there is no map API :P
How is thae map displayed ? Is it simply an Image ?
If so you can superimpose the car Image on the map Image, another option would be to make the car a Sprite and then use the LayerManager to superimpose this Sprite (and maybe others?) on the map Image...
To get a basic understanding on how to draw multiple images and/or Sprites you might want to look for some tutorial on game development on j2me... If i'm not mistaken there are even several on the Wiki !
Hi,Tiger79
I displayed the map by the paint method in GameCanvas class. And I get the map resource from the server by http.
The car moving trajectory is defined in the server.If I make the car a Sprite, how could I define the Sprite moving trajectory?
Thanks
good regards
well then you will have to translate the trajectory into x-y coordinates which you can use on your 2d map (canvas)...
that is doable if you don't only get an Image (your map) from the server but also some metadata regardign the trajectory..
If you are only getting an Image which contains both the map and the trajectory already drawn on it then I guess you have no way to establish the trajectory...
For example a Google Static Map with it's Static Map Paths just deliver an Image with no metadata, so you cannot establish anything from that
http://code.google.com/intl/nl/apis/...ticmaps/#Paths
If I get the map from a wms server,and get the trajectory coordinates from another file which is generated in the server.
Then Can I have ways to establish the trajectory??If have, how to establish it??
Thanks
Good Regards!
it all dpeends on the map you receive..
Is it only an Image which you are then gonna show, or does it contain metadata regarding the deliver Image ?
I have never used wms so I have no idea what kind of a system that is, unfortunately I also don't have any time to learn about it so sorry about that...
Anyways if you have the several "connecting point" (coordinates) for the trajectory you will need to have reference coordinates of the map/Image...
If you have that it's time for some math, you could use Vector maths (for the trajectory from point to point) and geometry (for the placing of the points themselves)...
Thank you very much for your help!
I will try to use SVG to display the animation car.
Thanks with Good Regards!