I'm trying to make it so the user can't move around on the map via
dragging or click to recenter/zoom but can zoom in and out using the
plus and minus controls. what am i doing wrong?

<script type="text/javascript">


    function initialize() {
      if (GBrowserIsCompatible()) {
        point = new GLatLng('34.05049', '-116.20647')
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(point, 9, G_NORMAL_MAP);

        markerOptions = { clickable:false, draggable:false }
        marker = new GMarker(point, markerOptions);
        map.addOverlay(marker);

        // Map Controls
        var ov = new GOverviewMapControl(new GSize(300,100));
        map.addControl(ov);
        ov.hide(true);

        map.addControl(new GSmallZoomControl());

        // Make Copyright Text Invisible to to Visitors [ GOOGLE -
WRAP THE TEXT OR LIMIT HOW MUCH TEXT THERE IS ]
        map_canvas.firstChild.nextSibling.style.display = "none";


      }
    }

    </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