1

I want to show moving objects (vehicles) in a map (road network). I have done the model part in Java using graph theory (vertices + edges). Now what I want is to move a vehicle along a road. But I don't have a clear idea, what should I use to draw the map, and move objects on top of it?

My vehicle objects contain which vertex they are at that moment.

HTML5-SVG and canvas support to draw objects but I couldn't find a way to link Java beans with HTML5.

Can I do this using HTML5? If not what should I do?

bluish
  • 26,356
  • 27
  • 122
  • 180
Isuru Gunawardana
  • 2,847
  • 6
  • 28
  • 60

1 Answers1

0

JavaServer Faces 2 can utilize HTML5 as a view technology; combined with AJAX (and maybe a Javascript library like jQuery, Prototype, dojo, etc.), and probably some third party support for the HTML 5 canvas element as a JSF component, you might be able to achieve what you're looking for (I see you have experience with IceFaces, so JSF is something you're familiar with, right?).

Mind you, I've never tried JSF and HTML5 myself, but it's worth a shot!

As far as using the HTML 5 canvas element itself goes, I'm afraid I won't be much help in that regard.

Also worth looking at:

JSF HTML5 tag tutorials / guides?

Community
  • 1
  • 1
Paul Wostenberg
  • 449
  • 2
  • 9
  • One more thing, If I select google maps then I can move vehicles on top of that. But then I think I have to use google API? So in that case will I be able to do that with my backing beans? – Isuru Gunawardana Feb 08 '12 at 08:40