title: yii2 2amigos google maps
body: <p>I am using Yii2 2amigos/google maps.
  Could someone explain how this works?</p>
  
  <p>I am getting the following error:
  Class 'vendor\dosamigos\google\maps\LatLng' not found</p>
  
  <p>I thought the file path to latLng would be what is above, however the file path in my vendor is:
  vendor/2amigos/yii2-google-maps-library/latlng</p>
  
  <p>Not sure about the error displayed</p>
  
  <p>Edit:  Thanks gmc for your help</p>
  
  <pre><code>use yii\helpers\Html;
  use yii\widgets\DetailView;
  use backend\models\House;
  use dosamigos\google\maps\LatLng;
  use dosamigos\google\maps\services\DirectionsWayPoint;
  use dosamigos\google\maps\services\TravelMode;
  use dosamigos\google\maps\overlays\PolylineOptions;
  use dosamigos\google\maps\services\DirectionsRenderer;
  use dosamigos\google\maps\services\DirectionsService;
  use dosamigos\google\maps\overlays\InfoWindow;
  use dosamigos\google\maps\overlays\Marker;
  use dosamigos\google\maps\Map;
  use dosamigos\google\maps\services\DirectionsRequest;
  use dosamigos\google\maps\overlays\Polygon;
  use dosamigos\google\maps\layers\BicyclingLayer;
  
      $coord = new LatLng(['lat' =&gt; 39.720089311812094, 'lng' =&gt;     2.91165944519042]);
  $map = new Map([
  'center' =&gt; $coord,
  'zoom' =&gt; 14,
  ]);
  
  // Display the map -finally :)
  echo $map-&gt;display(); 
  </code></pre>
  
  <p>Edit 2:
  Problem was that guzzlehttp 4 ,updated to guzzlehttp 6 and it works.
  Thanks for the help gmc and touqeer.  </p>