Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java script in The "Hello, World" of Google Maps

 
jite eghagha
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The hello world of Google Maps is straight forward.

But, I want to have several users interacting on the "one" map.

So that if one user places a marker at a lat/lng, that change reflects on all users; and if one user is tracking a cars movment, that movement shows on all my users maps.

I want to host the "one" true map on my server that will propagate all changes to all users.

How do i use java scripts on the server side of a Java web application? How do i make the client sided "hello world", a server sided "hello world"



The "hello world" of google maps

google maps "Hello World"
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On a very fundamental level, that will require the "master" map to communicate any noteworthy changes back to the server (most likely using an AJAX library like Prototype or jQuery), then a server component that accepts these changes (maybe a servlet), and finally all other map instances must check with the server every so often if there's anything new, also using AJAX or maybe Comet.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic