Class lispa\amos\core\views\MapAmos
Inheritance | lispa\amos\core\views\MapAmos » dosamigos\google\maps\Map |
---|
Map
Public Properties
Property | Type | Description | Defined 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 |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
getClosureScopedVariablesScript() | lispa\amos\core\views\MapAmos |
Property Details
The HTML attributes for the layer that will render the map.
The height in pixels or percent of the container holding the map.
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"
}
]
}
]'
{
"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"
}
]
}
]'
The width in pixels or percent of the container holding the map.
Method Details
public void __construct ( $config = [] ) | ||
$config | array |
public $this addOverlay ( $overlay ) | ||
$overlay |
public $this appendScript ( $js ) | ||
$js |
public string display ( ) |
public \dosamigos\google\maps\LatLngBounds getBoundsFromCenterAndZoom ( ) |
public mixed getCenter ( ) |
public mixed getClosureScopedVariable ( $name ) | ||
$name |
public array getClosureScopedVariables ( ) |
protected string getClosureScopedVariablesScript ( ) |
public string getJs ( ) |
public array getMarkers ( ) |
public \dosamigos\google\maps\LatLng|null getMarkersCenterCoordinates ( ) |
public integer getMarkersFittingZoom ( $margin = 0, $default = 14 ) | ||
$margin | integer | |
$default | integer |
public string getMarkersForUrl ( ) |
public array getOverlays ( ) |
public \dosamigos\google\maps\PluginManager getPlugins ( ) |
public string getStaticMapUrl ( $maptype = 'mobile', $hl = 'es' ) | ||
$maptype | string | |
$hl | string |
public void init ( ) | ||
throws | yii\base\InvalidConfigException |
---|
Installs a plugin
public void installPlugin ( \dosamigos\google\maps\PluginAbstract $plugin ) | ||
$plugin | \dosamigos\google\maps\PluginAbstract |
public void registerClientScript ( $position = \yii\web\View::POS_END ) | ||
$position | integer |
Removes an installed plugin
public mixed|null removePlugin ( $plugin ) | ||
$plugin |
public string renderContainer ( ) |
public void setCenter ( \dosamigos\google\maps\LatLng $coord ) | ||
$coord | \dosamigos\google\maps\LatLng |
public void setClosureScopedVariable ( $name, $value = null ) | ||
$name | ||
$value | null |