I am at Loss what I am doing wrong with the syntax ,  I am new this.
I have tested these markers on a simpler asp page and they worked but
cant get it to work with this syntax

  <script type="text/javascript">
    //<![CDATA[


      // Set up three markers with info windows




    if (GBrowserIsCompatible()) {

      // A function to create the marker and set up the event window
      // Dont try to unroll this function. It has to be here for the
function closure
      // Each instance of the function preserves the contends of a
different instance
      // of the "marker" and "html" variables which will be needed
later when the event triggers.
      function createMarker(point,html,markerptions) {



        var marker = new GMARKER(point,html,markeroptions);
        GEvent.addListener(marker, "click", function() {
          marker.openInfoWindowHtml(html);
        });
        return marker;
      }

      // Display the map, with some controls and set the initial
location
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl());
      map.addControl(new GMapTypeControl());
      //map.addControl(new ContextMenuControl());


        map.setCenter(new GLatLng("<%=latcent%>","<%=longcent%>"),11);

map.enableScrollWheelZoom();



map.addOverlay(new GTrafficOverlay());

//DIRECTIONS
//var panel = document.getElementById("panel");
//var dir = new GDirections(map, panel);
//Dir.load("BALTIMORE TO WASHINGTON");

<%

'39.411098,-76.775057
latbase=39.411098
longbase=-76.775057
%>






var myIcon1 = new GIcon();
myIcon1.image = 'http://gmaps-samples.googlecode.com/svn/trunk/markers/
blue/blank.png';
var markerOptions = {icon:myIcon1};

        var point = new GLatLng("<%=latbase%>","<%=longbase%>");
        var marker = createMarker(point,'<div style="width:240px">Pulse MD
Base 12 Music Fair Rd <\/div>',markeroptions)
        map.addOverlay(marker);




<%for poscount= 1 to vehzz
        if vstat(poscount)>0 then%>



var myIcon = new GIcon();
myIcon.image = 'http://www.phms.us/markers/image.png';
myIcon.printImage = 'http://www.phms.us/markers/printImage.gif';
myIcon.mozPrintImage = 'http://www.phms.us/markers/mozPrintImage.gif';
myIcon.iconSize = new GSize(100,73);
myIcon.shadow = 'http://www.phms.us/markers/shadow.png';
myIcon.transparent = 'http://www.phms.us/markers/transparent.png';
myIcon.shadowSize = new GSize(137,73);
myIcon.printShadow = 'http://www.phms.us/markers/printShadow.gif';
myIcon.iconAnchor = new GPoint(0,73);
myIcon.infoWindowAnchor = new GPoint(50,0);
myIcon.imageMap =
[55,0,75,6,75,7,76,8,76,9,76,10,76,11,82,12,83,13,83,14,83,15,84,16,84,17,85,18,85,19,85,20,86,21,86,22,86,23,87,24,87,25,87,26,88,27,88,28,89,29,89,30,89,31,90,32,90,33,90,34,91,35,91,36,92,37,94,38,96,39,99,40,99,41,99,42,99,43,99,44,98,45,98,46,98,47,98,48,98,49,98,50,98,51,98,52,98,53,98,54,99,55,99,56,99,57,99,58,99,59,99,60,99,61,99,62,90,63,90,64,90,65,90,66,89,67,89,68,88,69,87,70,86,71,82,72,29,72,25,71,24,70,23,69,23,68,23,67,22,66,22,65,22,64,5,63,4,62,3,61,3,60,3,59,3,58,3,57,4,56,5,55,6,54,7,53,7,52,7,51,7,50,7,49,7,48,7,47,8,46,8,45,8,44,8,43,8,42,8,41,8,40,0,39,0,38,9,37,9,36,9,35,9,34,9,33,9,32,9,31,10,30,10,29,10,28,10,27,10,26,10,25,10,24,10,23,11,22,11,21,11,20,11,19,11,18,11,17,11,16,11,15,12,14,12,13,12,12,69,11,69,10,69,9,69,8,70,7,70,6,54,0];

var markerOptions = {icon:myIcon};

                var point = new GLatLng("<%=latitude(poscount)%>","<%=LONGITUDE
(poscount)%>");
                var marker = createMarker(point,"<%=callreport(poscount)
%>",markeroptions)

                map.addOverlay(marker);




<%
        else
        end if
next%>


    }

    // display a warning if the browser was not compatible
    else {
      alert("Sorry, the Google Maps API is not compatible with this
browser");
    }



    //]]>
    </script>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to