Results 1 to 3 of 3
Thread: google map
- 07-29-2012, 05:13 AM #1
Member
- Join Date
- Jul 2012
- Posts
- 1
- Rep Power
- 0
google map
I am putting custom google maps on a web page. Code I'm is using second life map api and google apiv2. My problem is forming an image array to put individual images on markers The point im at now is firebug shows no errors but the first image is used for all. My question is am I proceeding in the right path and whats the fix or is there a better way i will provide the html page source and link to the page. Thanks
UrlJava Code:[URL="http://www.sliditerod.whitebuffaloranch.com/map505.html"]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script src="http://maps.google.com/maps?file=api&v=2&key=AIzaSyCiZyaREWa4BZn9yU2Ttf65exHLNmlDyyU" type="text/javascript"></script> <script src="http://slurl.com/_scripts/slmapapi.js" type="text/javascript"></script> <link rel="stylesheet" type="text/css" href="MAIN.css" /> <style> div#map-container { width: 900px; height: 800px; font-color: white; font-size: 25px; } </style> <script> function loadmap() { mapInstance = new SLMap(document.getElementById('map-container')); mapInstance.centerAndZoomAtSLCoord(new XYPoint(1114, 1087), 4); var way_image1 = new Img("images/lajdot.gif", 100, 80); var way_image2 = new Img("images/redot.gif", 10, 10); var way_icon1 = new Icon(way_image1); var way_icon2 = new Icon(way_image2); var all_images = [way_icon1, way_icon2]; var marker1 = new Marker(all_images, new XYPoint(1104, 1084)); var marker2 = new Marker(all_images, new XYPoint(1108, 1084)); // Create a window // Create a window var mapWindow = new MapWindow("La Jolla<br><img src='images/laj300.png'>"); mapInstance.addMarker(marker1, mapWindow); mapInstance.addMarker(marker2, mapWindow); } </script> </head> <body onload="loadmap()" onunload="GUnload()"> <div id="map-container"> </div> </body> [/URL]
http://www.sliditerod.whitebuffaloranch.com/map505.html
- 07-29-2012, 05:21 AM #2
Student
- Join Date
- Jul 2012
- Location
- United States
- Posts
- 328
- Rep Power
- 1
Re: google map
I think you might be confusing Java with JavaScript.
Someone here might be able to help you, but you're better off finding a JavaScript forum."Success is not final, failure is not fatal: it is the courage to continue that counts." - Winston Churchill
- 07-29-2012, 05:36 AM #3
Similar Threads
-
Language Translation using Google API
By anuramoh in forum Java AppletsReplies: 1Last Post: 07-25-2012, 09:07 PM -
Google Earth in my GUI
By spyroth in forum NetBeansReplies: 1Last Post: 02-13-2011, 02:56 AM -
Google map in swing app?
By Manish87 in forum AWT / SwingReplies: 7Last Post: 02-10-2011, 09:35 PM -
google in web browser
By jeff666 in forum AWT / SwingReplies: 1Last Post: 07-06-2008, 08:03 PM -
Google Maps API
By mew in forum New To JavaReplies: 0Last Post: 12-26-2007, 10:28 AM


LinkBack URL
About LinkBacks

Bookmarks