I want to build a desktop application which has google maps embedded to it. This
ID: 646215 • Letter: I
Question
I want to build a desktop application which has google maps embedded to it. This app should have a thread to read coordinate data online a usb microphone to use. This application will move the google map markers to their new locations based on the data retrieved from online connections on each refresh.
As far as I know gmaps has a javascript API so the first idea in my mind was to embed this mapview into a java applet. So the application will run on a browser. I'm not sure if this will work.
Do you guys have any idea about this or any other advices you might have?
Explanation / Answer
If you want this to run within a native desktop application - and not in a normal brower connecting to a web-app, though that could also be one way of doing it - you'll need to integrate an in-app browser component.
If you are planning on building this into a Java program, have a look at JDIC and or at integrating a rendering engine (like WebKit).
You can also look at:
WebKit in a Java Application
Rendering Web Pages with WebKit in Java
Your question does confuse me a bit though, as you mention using an applet (so, a Java application embedded in a WebPage, to display a map that could directly be displayed in a webpage? "Why, god why?", would be my first reaction). You could use an Applet though, and communicate with it via Javascript, if you want to display the map in the page and do other things in your applet, but that sounds a bit clunky.
Otherwise, as mentioned earlier, you could simply implement your project as a web-app and give access to it from any any platform with a browser supporting JavaScript.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.