Class lispa\amos\core\views\MapAmos

Inheritancelispa\amos\core\views\MapAmos » dosamigos\google\maps\Map

Map

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$containerOptions array The HTML attributes for the layer that will render the map. lispa\amos\core\views\MapAmos
$height integer The height in pixels or percent of the container holding the map. lispa\amos\core\views\MapAmos
$styles lispa\amos\core\views\MapAmos
$width integer The width in pixels or percent of the container holding the map. lispa\amos\core\views\MapAmos

Property Details

$containerOptions public property

The HTML attributes for the layer that will render the map.

$height public property

The height in pixels or percent of the container holding the map.

public integer $height 512
$styles public property
public $styles '[        
        {
                "featureType" : "all",
                "elementType" : "labels.text.fill",
                "stylers" : [{
                            "color" : "#666666"
                        }
                ]
        }, {
        "featureType" : "all",
        "elementType" : "labels.text.stroke",
        "stylers" : [{
                "color" : "#ffffff"
            }
        ]
    }, {
        "featureType" : "administrative",
        "elementType" : "labels.text",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative",
        "elementType" : "labels.text.fill",        
        "stylers" : [{
                "color" : "#444444"
            }, {
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "on"
            }, {
                "saturation" : "9"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "geometry.stroke",
        "stylers" : [{
                "visibility" : "on"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "labels.text",
        "stylers" : [{
                "visibility" : "off"
            }, {
                "weight" : "1.15"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "labels.text.fill",
        "stylers" : [{
                "visibility" : "off"
            }, {
                "weight" : "0.56"
            }, {
                "color" : "#2859fa"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "labels.text.stroke",
        "stylers" : [{
                "visibility" : "off"
            }, {
                "color" : "#2c4ac4"
            }, {
                "saturation" : "-19"
            }
        ]
    }, {
        "featureType" : "administrative.country",
        "elementType" : "labels.icon",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.province",
        "elementType" : "geometry",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.province",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.province",
        "elementType" : "geometry.stroke",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.province",
        "elementType" : "labels.text",
        "stylers" : [{
                "visibility" : "simplified"
            }
        ]
    }, {
        "featureType" : "administrative.province",
        "elementType" : "labels.text.fill",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.locality",
        "elementType" : "geometry",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "administrative.locality",
        "elementType" : "labels.text",
        "stylers" : [{
                "visibility" : "on"
            }
        ]
    }, {
        "featureType" : "landscape",
        "elementType" : "all",
        "stylers" : [{
                "color" : "#f3f4f4"
            }
        ]
    }, {
        "featureType" : "landscape.man_made",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "on"
            }
        ]
    }, {
        "featureType" : "poi",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "poi.park",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "on"
            }, {
                "color" : "#bcdf71"
            }
        ]
    }, {
        "featureType" : "road",
        "elementType" : "all",
        "stylers" : [{
                "saturation" : -100
            }, {
                "lightness" : 45
            }
        ]
    }, {
        "featureType" : "road.highway",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "off"
            }, {
                "color" : "#fbe687"
            }
        ]
    }, {
        "featureType" : "road.highway",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "on"
            }
        ]
    }, {
                "featureType" : "road",
                "elementType" : "labels.text.fill",
                "stylers" : [{
                                "color" : "#666666"
                        }
                ]
        }, {
        "featureType" : "transit",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "water",
        "elementType" : "all",
        "stylers" : [{
                "color" : "#7fc8ed"
            }, {
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "water",
        "elementType" : "geometry",
        "stylers" : [{
                "visibility" : "simplified"
            }
        ]
    }, {
        "featureType" : "water",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "simplified"
            }
        ]
    }, {
        "featureType" : "landscape",
        "elementType" : "all",
        "stylers" : [{
                "color" : "#f3f4f4"
            }
        ]
    }, {
        "featureType" : "landscape.man_made",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "on"
            }
        ]
    }, {
                "featureType": "landscape",
                "elementType": "labels.text.fill",
                "stylers": [{
                                "color": "#333333"
                        }
                ]
        }, {
        "featureType" : "landscape.natural.terrain",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "color" : "#e0dfcb"
            }
        ]
    }, {
        "featureType" : "poi",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "off"
            }
        ]
    }, {
        "featureType" : "poi.park",
        "elementType" : "all",
        "stylers" : [{
                "visibility" : "simplified"
            }, {
                "color" : "#bddf6f"
            }
        ]
    }, {
        "featureType" : "poi.park",
        "elementType" : "geometry.fill",
        "stylers" : [{
                "visibility" : "simplified"
            }
        ]
    }, {
        "featureType" : "poi.park",
        "elementType" : "labels.text.fill",
        "stylers" : [{
                "color" : "#454545"
            }
        ]
    }

]'
$width public property

The width in pixels or percent of the container holding the map.

public integer $width 512

Method Details

__construct() public method

public void __construct ( $config = [] )
$config array
addOverlay() public method

public $this addOverlay ( $overlay )
$overlay
appendScript() public method

public $this appendScript ( $js )
$js
display() public method

public string display ( )
getBoundsFromCenterAndZoom() public method

public \dosamigos\google\maps\LatLngBounds getBoundsFromCenterAndZoom ( )
getCenter() public method

public mixed getCenter ( )
getClosureScopedVariable() public method

public mixed getClosureScopedVariable ( $name )
$name
getClosureScopedVariables() public method

public array getClosureScopedVariables ( )
getClosureScopedVariablesScript() protected method

protected string getClosureScopedVariablesScript ( )
getJs() public method

public string getJs ( )
getMarkers() public method

public array getMarkers ( )
getMarkersCenterCoordinates() public method

public \dosamigos\google\maps\LatLng|null getMarkersCenterCoordinates ( )
getMarkersFittingZoom() public method

public integer getMarkersFittingZoom ( $margin 0, $default 14 )
$margin integer
$default integer
getMarkersForUrl() public method

public string getMarkersForUrl ( )
getOverlays() public method

public array getOverlays ( )
getPlugins() public method

public \dosamigos\google\maps\PluginManager getPlugins ( )
getStaticMapUrl() public method

public string getStaticMapUrl ( $maptype 'mobile', $hl 'es' )
$maptype string
$hl string
init() public method

public void init ( )
throws yii\base\InvalidConfigException
installPlugin() public method

Installs a plugin

public void installPlugin ( \dosamigos\google\maps\PluginAbstract $plugin )
$plugin \dosamigos\google\maps\PluginAbstract
registerClientScript() public method

public void registerClientScript ( $position = \yii\web\View::POS_END )
$position integer
removePlugin() public method

Removes an installed plugin

public mixed|null removePlugin ( $plugin )
$plugin
renderContainer() public method

public string renderContainer ( )
setCenter() public method

public void setCenter ( \dosamigos\google\maps\LatLng $coord )
$coord \dosamigos\google\maps\LatLng
setClosureScopedVariable() public method

public void setClosureScopedVariable ( $name, $value null )
$name
$value null