Results 1 to 3 of 3

Thread: google map

  1. #1
    karyoker is offline Member
    Join Date
    Jul 2012
    Rep Power

    Default 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

    Java Code:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <script src="" type="text/javascript"></script>
    <script src="" type="text/javascript"></script>
    <link rel="stylesheet" type="text/css" href="MAIN.css" />
    div#map-container {
          width: 900px;
          height: 800px;
    	  font-color: white;
    	  font-size: 25px;
    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);
    <body onload="loadmap()" onunload="GUnload()">
    <div id="map-container">
    </body> [/URL]

  2. #2
    awinston is offline Student
    Join Date
    Jul 2012
    United States
    Rep Power

    Default 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

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: google map

    Off topic, locking.


    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Language Translation using Google API
    By anuramoh in forum Java Applets
    Replies: 1
    Last Post: 07-25-2012, 09:07 PM
  2. Google Earth in my GUI
    By spyroth in forum NetBeans
    Replies: 1
    Last Post: 02-13-2011, 02:56 AM
  3. Google map in swing app?
    By Manish87 in forum AWT / Swing
    Replies: 7
    Last Post: 02-10-2011, 09:35 PM
  4. google in web browser
    By jeff666 in forum AWT / Swing
    Replies: 1
    Last Post: 07-06-2008, 08:03 PM
  5. Google Maps API
    By mew in forum New To Java
    Replies: 0
    Last Post: 12-26-2007, 10:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts