Class Marker
This class represents a marker
- WPGMZA\Factory
-
WPGMZA\Crud implements IteratorAggregate, JsonSerializable
-
WPGMZA\Marker implements JsonSerializable
public
|
|
public static
|
|
public static
|
#
create_instance( $id_or_fields = -1 )
Deprecated. The Factory class will take over this functionality |
public static
|
|
public
array
|
#
jsonSerialize( )
Returns a clone of this marker for JSON serialization. Unsets latlng binary spatial data which corrupts JSON, and sets custom field data. |
protected
string
|
#
get_placeholder_by_type( string $type )
Overrides Crud::get_placeholder_by_type to correctly handle inserting and updating spatial data placeholders. |
protected
string
|
#
get_column_parameter( string $name )
Overrides Crud::get_column_parameter to correctly handle inserting and updating spatial data values. |
protected
string
|
#
get_arbitrary_data_column_name( )
Returns "other_data", which is the name of the column used to store arbitrary data on thet marker table. |
public
|
|
protected
|
#
update_latlng( )
Called to update the latlng column for this marker in the database, when any changes are made to this objects properties lat, lng or latlng. |
public
|
|
public
|
createInstance()
|
string |
DEFAULT_ICON
|
#
"//maps.gstatic.com/mapfiles/api-3/images/spotlight-poi2.png"
|
BULK_READ,
SINGLE_READ
|
protected
|
$custom_fields
|