File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Java script in The Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Java script in The "Hello, World" of Google Maps" Watch "Java script in The "Hello, World" of Google Maps" New topic
Author

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

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 127
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
Marshal

Joined: Mar 22, 2005
Posts: 41863
    
  63
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.


Ping & DNS - my free Android networking tools app
 
wood burning stoves
 
subject: Java script in The "Hello, World" of Google Maps