Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -92,6 +92,9 @@ class Mapbox
|
||||
|
||||
$location = str_replace( ',', '.', $this->geolocation->long ) . ',' . str_replace( ',', '.', $this->geolocation->lat );
|
||||
|
||||
/* Leaving zoom null breaks the map */
|
||||
$zoom = $zoom ?? 13;
|
||||
|
||||
return Url::external( "https://api.mapbox.com/styles/v1/mapbox/streets-v10/static/pin-l-marker+f00({$location})/{$location},{$zoom},0,60/{$width}x{$height}@2x" )->setQueryString( array(
|
||||
'access_token' => Settings::i()->mapbox_api_key
|
||||
) );
|
||||
|
||||
Reference in new issue
Block a user