diff --git a/resources/views/marker.blade.php b/resources/views/marker.blade.php index 256ae09..1d8e7fa 100644 --- a/resources/views/marker.blade.php +++ b/resources/views/marker.blade.php @@ -78,7 +78,8 @@ @foreach ($options['icon'] as $key => $value) @switch($key) -@case('symbol') + + @case('symbol') path: google.maps.SymbolPath.{!! $value !!}, @break; @@ -101,14 +102,17 @@ @endif @break; - @case('fillOpacity') @case('rotation') @case('scale') - @case('strokeOpacity') @case('strokeWeight') {!! $key !!}: {!! json_encode((int) $value) !!}, @break + @case('fillOpacity') + @case('strokeOpacity') + {!! $key !!}: {!! json_encode((float) $value) !!}, + @break + @default {!! $key !!}: {!! json_encode((string) $value) !!}, @break