<commit_before>sfEasyGMapPlugin
================

The sfEasyGMap plugin provides helpers and an objet-oriented PHP
abstraction to the Google Maps API to ease the process of adding a
Google Map and customising it in your symfony projects.

Installation
------------

  * Install the plugin

        $ symfony plugin:install sfEasyGMapPlugin (Not tested)

        or in your plugins directory:

        $ svn co http://svn.symfony-project.com/plugins/sfEasyGMapPlugin/branches/v3 sfEasyGMapPlugin

  * Optional: enable the sample module in your `settings.yml`, sfEasyGMapPlugin

            [php]
            all:
              .settings:
                enabled_modules:      [default, sfEasyGMapPlugin]

  * Optional: the v3 version still needs an API key for some functionalities, like Geocoding. Add the following lines in your `app.yml` file

            [php]
            all:
              google_maps_api:
                keys:
                  www.yourdomain.com: 'google_key1'
                  localhost:          'google_key2'
                  default:            'google_key3'

    Keys are obtained here: http://code.google.com/intl/fr/apis/maps/signup.html

  * Clear your cache

        $ php symfony cc


Examples
--------

  All samples are available in the sfEasyGMapPlugin module of the plugin (/sfEasyGMapPlugin/index)

  IMPORTANT ! The javascript in the samples will not work unless you put the js files in your web directory.

        $ ln -s ../plugins/sfEasyGMapPlugin/web web/sfEasyGMapPlugin
        
        or use the symfony command :
        $ php symfony plugin:publish-assets 

  * Sample 1

    Add some markers on a map, using longitudes and latitudes

    * In the action:

            $this->gMap = new GMap();
            $this->gMap->addMarker(new GMapMarker(51.245475,6.821373));
            $this->gMap->addMarker(new GMapMarker(46.262248,6.115969));
<commit_msg>README: added github url as installation option, fix example 1 not working<commit_after>sfEasyGMapPlugin
================

The sfEasyGMap plugin provides helpers and an objet-oriented PHP
abstraction to the Google Maps API to ease the process of adding a
Google Map and customising it in your symfony projects.

Installation
------------

  * Install the plugin

        $ symfony plugin:install sfEasyGMapPlugin (Not tested)

        or in your plugins directory via SVN:

        $ svn co http://svn.symfony-project.com/plugins/sfEasyGMapPlugin/branches/v3 sfEasyGMapPlugin

	or in your plugins directory via GIT:

	$ git clone https://github.com/fabriceb/sfEasyGMapPlugin.git

	When using SVN or GIT install, remember to enable the plugin in your ProjectConfiguration.class.php

  * Optional: enable the sample module in your `settings.yml`, sfEasyGMapPlugin

            [php]
            all:
              .settings:
                enabled_modules:      [default, sfEasyGMapPlugin]

  * Google API keys: add the following lines in your `app.yml` file

            [php]
            all:
              google_maps_api:
                keys:
                  www.yourdomain.com: 'google_key1'
                  localhost:          'google_key2'
                  default:            'google_key3'

    Keys are obtained here: http://code.google.com/intl/fr/apis/maps/signup.html

  * Clear your cache

        $ php symfony cc


Examples
--------

  All samples are available in the sfEasyGMapPlugin module of the plugin (/sfEasyGMapPlugin/index)

  IMPORTANT ! The javascript in the samples will not work unless you put the js files in your web directory.

        $ ln -s ../plugins/sfEasyGMapPlugin/web web/sfEasyGMapPlugin
        
        or use the symfony command :
        $ php symfony plugin:publish-assets 

  * Sample 1

    Add some markers on a map, using longitudes and latitudes

    * In the action:

            $this->gMap = new GMap();
            $this->gMap->setZoom(0);
            $this->gMap->setCenter(0, 0);
            $this->gMap->addMarker(new GMapMarker(51.245475,6.821373));
            $this->gMap->addMarker(new GMapMarker(46.262248,6.115969));

{'fraction_non_alphanumeric': 0.08777506112469438, 'fraction_numerical': 0.018337408312958436, 'mean_word_length': 2.2416798732171155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1105371', 'n_tokens_mistral': 1257, 'n_tokens_neox': 1119, 'n_words': 377}