1. Home >
  2. Documentation >
  3. Overlays >
  4. circle
 

circle

This function allows to add a google.maps.Circle

Usage

Parameters

Note: options.center is converted into google.maps.LatLng

Example

$("#test").gmap3({
  circle:{
    options:{
      center: [37.772323, -122.214897],
      radius : 250,
      fillColor : "#008BB2",
      strokeColor : "#005BB7"
    },
    events:{
      click: function(circle){
        circle.setOptions({
          fillColor : "#FFAF9F",
          strokeColor : "#FF512F"	
        });
      }
    },
    callback: function(){
      $(this).gmap3('get').setZoom(15);
    }
  }
});
Close