26 Mar 2008

Usuwanie kontrolki GLargeMapControl z mapy GMap

<div id="map" style="width: 500px; height: 400px"></div>

<script>
var map = new GMap(document.getElementById("map"));
  map.setCenter(new GLatLng(52, 21, 12));
  ctrlObj = new GLargeMapControl()
  map.addControl(ctrlObj);

  function delControl() {
    map.removeControl(ctrlObj);
  }
</script>

<form><input type="button" value="usuń Control" onClick="delControl()"></form>