Version 4.7.6
This commit is contained in:
1 parent
8ba7d43898
commit
7b7404e741
1085 files changed
+30590
-7837
No files matched your search
@@ -50,7 +50,19 @@ class _Google
|
||||
*/
|
||||
public function render( $width, $height, $zoom=NULL, $scale=1, $maptype='roadmap' )
|
||||
{
|
||||
return \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->staticMap( \IPS\Http\Url::external( 'https://maps.google.com/' )->setQueryString( 'q', $this->_getLocation() ), $this->mapUrl( $width, $height, $zoom, $scale, $maptype ), $this->geolocation->lat, $this->geolocation->long, $width, $height );
|
||||
\IPS\Output::i()->jsFiles = array_merge( \IPS\Output::i()->jsFiles, \IPS\Output::i()->js( 'global_core.js', 'core', 'global' ) );
|
||||
|
||||
return \IPS\Settings::i()->google_maps_static_use_embed ?
|
||||
\IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->googleMap( array(
|
||||
'lat' => $this->geolocation->lat,
|
||||
'long' => $this->geolocation->long,
|
||||
'key' => \IPS\Settings::i()->google_maps_api_key,
|
||||
'zoom' => $zoom,
|
||||
'scale' => $scale,
|
||||
'maptype' => $maptype,
|
||||
'width' => $width,
|
||||
'height' => $height )) :
|
||||
\IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->staticMap( \IPS\Http\Url::external( 'https://maps.google.com/' )->setQueryString( 'q', $this->_getLocation() ), $this->mapUrl( $width, $height, $zoom, $scale, $maptype ), $this->geolocation->lat, $this->geolocation->long, $width, $height );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user