new GoogleCircle()
Subclass, used when Google is the maps engine. Please do not call this constructor directly. Always use createInstance rather than instantiating this class directly. Using createInstance allows this class to be externally extensible.
Extends
Methods
-
_triggerListeners()
-
Handles the logic of triggering listeners
- Inherited From:
-
addEventListener(type, callback [, thisObject] [, useCapture])
-
Adds an event listener on this object
Parameters:
Name Type Argument Description typestring The event type, or multiple types separated by spaces callbackfunction The callback to call when the event fires thisObjectobject <optional>
The object to use as "this" when firing the callback useCapturebool <optional>
If true, fires the callback on the capture phase, as opposed to bubble phase - Inherited From:
-
dispatchEvent(event)
-
Fires an event on this object
Parameters:
Name Type Description eventstring | WPGMZA.Event Either the event type as a string, or an instance of WPGMZA.Event - Inherited From:
-
getCenter()
-
Gets the circles center
- Inherited From:
Returns:
- Type
- WPGMZA.LatLng
-
getMap()
-
Returns the map that this circle is being displayed on
- Inherited From:
Returns:
- Type
- WPGMZA.Map
-
getRadius(latLng)
-
Gets the circles radius, in kilometers
Parameters:
Name Type Description latLngobject | WPGMZA.LatLng either a literal or as a WPGMZA.LatLng - Inherited From:
Returns:
- Type
- WPGMZA.LatLng
-
hasEventListener(type)
-
Test for listeners of type on this object
Parameters:
Name Type Description typestring The event type to test for - Inherited From:
Returns:
True if this object has listeners bound for the specified type- Type
- bool
-
off()
-
Alias for removeEventListener
- Inherited From:
- See:
-
on()
-
Alias for addEventListener
- Inherited From:
- See:
-
parseGeometry(string)
-
Scans a string for all floating point numbers and build an array of latitude and longitude literals from the matched numbers
Parameters:
Name Type Description stringstring The string to parse numbers from - Inherited From:
Returns:
An array of LatLng literals parsed from the string- Type
- array
-
removeEventListener(type [, listener] [, thisObject] [, useCapture])
-
Removes event listeners from this object
Parameters:
Name Type Argument Description typestring The event type to remove listeners from listenerfunction <optional>
The function to remove. If omitted, all listeners will be removed thisObjectobject <optional>
Use the parameter to remove listeners bound with the same thisObject useCapturebool <optional>
Remove the capture phase event listener. Otherwise, the bubble phase event listener will be removed. - Inherited From:
-
setCenter(latLng)
-
Sets the circles center
Parameters:
Name Type Description latLngobject | WPGMZA.LatLng either a literal or as a WPGMZA.LatLng - Inherited From:
-
setMap(map)
-
Puts this circle on a map
Parameters:
Name Type Description mapWPGMZA.Map The target map - Inherited From:
Returns:
- Type
- void
-
setRadius(radius)
-
Sets the circles radius, in kilometers
Parameters:
Name Type Description radiusnumber The radius - Inherited From:
Returns:
- Type
- void
-
toJSON()
-
Returns a copy of this object as a JSON object for serializsation
- Inherited From:
Returns:
This object as represented by JSON- Type
- object
-
trigger()
-
Alias for removeEventListener
- Inherited From:
- See: