View Full Version : [SOLVED] java and google maps
RobikShrestha
July 12th, 2011, 09:47 AM
I am building a java web application which uses java classes to find out longitudes and latitudes of different places.
Now I need to plot those points on the map. The data is stored in a linked list. How would I transport that linked list to javascript, so that I can plot each of the points?
If there is a better way to do it like using only java please help me.
raja.genupula
July 12th, 2011, 10:15 AM
http://blog.jcoglan.com/2007/07/23/writing-a-linked-list-in-javascript/
i am not a good programmer to understand but i hope it will be useful to you . dont mind if not ,
RobikShrestha
July 12th, 2011, 01:56 PM
thanks, but I was looking for using a java linked list inside javascript linked list.
Zugzwang
July 12th, 2011, 02:05 PM
Use your Java linked list to build a Javascript source code that builds a linked list. Then execute the code in your Javascript interpreter.
RobikShrestha
July 12th, 2011, 03:53 PM
Ok this is a snippet of sample code that succesfully ran:
file.jsp:
<%!int i=0;%>
<%!int zoomLevel[]={1,2,3,4,5};%>
var array=new Array();
<%for (i = 0; i < zoomLevel.length; i++) {%>
array[<%=i%>]=<%=zoomLevel[i]%>;
<%}%>
//do sth with the array[]
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.