Google Maps Images

Instantiate Image
$image = eden('google')->maps($_SESSION['token'])->image();
Image Methods
Method Arguments Returns Description
$image->setScale($scale);
  1. integer
Eden_Google_Maps_Image Affects the number of pixels that are returned.
$image->setFormat($format);
  1. string
Eden_Google_Maps_Image Defines the format of the resulting image. By default, the Static Maps API creates PNG images.
$image->setLanguage($language);
  1. string
Eden_Google_Maps_Image Defines the language to use for display of labels on map tiles
$image->setRegion($region);
  1. string
Eden_Google_Maps_Image Defines the appropriate borders to display, based on geo-political sensitivities.
$image->setMarkers($markers);
  1. string
Eden_Google_Maps_Image Define one or more markers to attach to the image at specified locations.
$image->setPath($path);
  1. string
Eden_Google_Maps_Image Defines a single path of two or more connected points to overlay on the image at specified locations.
$image->setVisible($visible);
  1. string
Eden_Google_Maps_Image Specifies one or more locations that should remain visible on the map, though no markers or other indicators will be displayed.
$image->setStyle($style);
  1. string
Eden_Google_Maps_Image Defines a custom style to alter the presentation of a specific feature (road, park, etc.) of the map.
$image->setHeading($heading);
  1. integer
Eden_Google_Maps_Image Indicates the compass heading of the camera. Accepted values are from 0 to 360 (both values indicating North, with 90 indicating East, and 180 South).
$image->setFov($fov);
  1. integer
Eden_Google_Maps_Image Determines the horizontal field of view of the image. The field of view is expressed in degrees, with a maximum allowed value of 120.
$image->setPitch($pitch);
  1. integer
Eden_Google_Maps_Image specifies the up or down angle of the camera relative to the Street View vehicle.
$image->useRoadMap(); none Eden_Google_Maps_Image Specifies a standard roadmap image, as is normally shown on the Google Maps website. If no maptype value is specified, the Static Maps API serves roadmap tiles by default.
$image->useSatelliteMap(); none Eden_Google_Maps_Image Specifies a satellite image
$image->useTerrainMap(); none Eden_Google_Maps_Image Specifies a physical relief map image, showing terrain and vegetation.
$image->useHybridMap(); none Eden_Google_Maps_Image Specifies a hybrid of the satellite and roadmap image, showing a transparent layer of major streets and place names on the satellite image.
$image->getStaticMap($center, $zoom, $size, $sensor = 'false');
  1. string
  2. - Defines the center of the map, latitude,longitude pai or address pair
  3. string
  4. - Defines the zoom level of the map, which determines the magnification level of the map
  5. string
  6. - This parameter takes a string of the form {horizontal_value}x{vertical_value}
  7. string
url Return url of the image map
$image->getStreetMap($location, $size, $sensor = 'false');
  1. string
  2. - Latitude,longitude pai or address pair
  3. string
  4. - Size is specified as {width}x{height}
  5. string
url Return url of the street map

© 2012 Openovate Labs. All rights reserved.