Thule - 0.9.6
  • Welcome
  • Introduction
  • - MVC(Model-View-Controller)
    - Architecture of Framework
    - Flow Chart of Application
    - Services In One Server
    - Developing Guide
    - Features
  • Installation
  • Getting Started
  • - Direct Access HTTP
    - Router Access HTTP
    - Router Direct Access HTTP
    - Reserved Function
    - Convention
    - Bootstrap
    - Pack Javascript , CSS
  • Basic Modules
  • - Model
    - View
    - Controller
  • Libraries
  • - Router
    - Config
    - Response
    - Request
    - Database
    - Query
    - Cache
    - Debug
    - Log
    - Unit Test
    - Registry
    - Profile
  • Helper
  • - Auth
    - Calendar
    - Date
    - Error page
    - Email
    - Form
    - GeoIP
    - Google
    - Html Element
    - Html
    - Http
    - I18n
    - Image
    - Json
    - Jquery
    - Login
    - Layout
    - Locale
    - PHP to Javascript
    - Paging
    - Payflow
    - Soap
    - Text
    - Table
    - Uri
    - Upload
    - Validation
  • Plugins
  • - Smarty Template Engine
  • History
  • Home >Google

    Google helper provides the functionality from google.

    Chart

    Google chart api is very useful for making chart in your site.

    $FE->loadHelper("google"));
    $chartImage=$FE->Google->chart(array("chs"=>"","chd"=>,,);

    set the key of Google Map

    You need to set the key value for using google map,if you have a look at the document of google map api, you will understand.

    FE->Google->setMapKey(MAPS_API_KEY);

    Google Map

    You can get the google map.

    FE->Google->mapScript(MAPS_API_KEY);
    FE->Google->mapInit($canvas,$latitude,$longitude,$zoom);
    FE->Google->mapMaker($canvas,$latitude,$longitude,$zoom);

    Google Static Map Image

    You can get the google map as static image.

    $array=array(
    center=>"40.714728,-73.998672",
    zoom=>12,
    size=>"400x400",
    maptype=>"mobile",
    key=MAPS_API_KEY,
    // you can set in the sensor=true, //_or_false
    );
    <img src="<?php echo $FE->Google->mapImage($array);?>">