From 191e747e1dfd46f2615c4f9374ad7287c9f1aa36 Mon Sep 17 00:00:00 2001 From: Ben Squire Date: Tue, 11 Sep 2012 23:12:33 +0100 Subject: [PATCH] Readme example and image Example code and displayed image didn't match up, now one generates the other. --- README.md | 39 +++++++++++++++++---------------------- 1 file changed, 17 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index b79ce91..d4443f8 100644 --- a/README.md +++ b/README.md @@ -9,32 +9,27 @@ Using simple OO methods, this project will build the URL which can be used in an Example Code: ------------- - include('../googlestaticmap.php'); - - $oSstaticMap = new GoogleStaticMap(); - $oSstaticMap ->setCenter("London,UK") - ->setHeight(300) - ->setWidth(232) - ->setZoom(8) - ->setHttps(true) - ->setFormat("jpg") - ->setFeatureStyling(array( - "feature"=>"all", - "element"=>"all", - "style"=>array( - "saturation"=>-53, - "gamma"=>4.88, - "lightness"=>16, - "hue"=>"#1aff00" - ) - )); - - echo ''; + $oStaticMap = new GoogleStaticMap(); + $oStaticMap ->setCenter("London,UK") + ->setHeight(300) + ->setWidth(232) + ->setZoom(8) + ->setFormat("jpg") + ->setFeatureStyling(array( + "feature" => "all", + "element" => "all", + "style" => array( + "hue" => "#006400", + "lightness" => 50 + ) + )); + + echo ''; Example Output: --------------- -![Sample map generated by the Class](http://maps.google.com/maps/api/staticmap?center=&zoom=10&language=en-GB&maptype=hybrid&format=png8&size=600x600&scale=1&path=weight:5|color:0x00000000|fillcolor:0xFFFF0033|51.855376,-0.576904|Wembley%2C+UK|Barnet%2C+UK&sensor=false) +![Sample map generated by the Class](http://maps.google.com/maps/api/staticmap?center=London%2CUK&zoom=8&language=en-GB&maptype=roadmap&format=jpg&size=232x300&scale=1&style=feature:all|element:all|lightness:50|hue:0x006400&sensor=false)