friendsofvictoire/gmap-widget

Victoire DCMS Google Maps widget

Installs: 5 012

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 10

Forks: 4

Open Issues: 0

Language:HTML

Type:symfony-bundle

2.0.3 2017-04-25 15:01 UTC

This package is not auto-updated.

Last update: 2024-11-09 19:28:28 UTC


README

##What is the purpose of this bundle

This bundles gives you access to the Google Maps Widget. This widget can put a dynamic Google Maps within your website with the following settings :

  • Latitud
  • Longitud
  • Map's zoom
  • Title of the Map
  • Hide or not the pointer
  • Import of any KML File

##Set Up Victoire

If you haven't already, you can follow the steps to set up Victoire here

##Install the bundle

Run the following composer command :

php composer.phar require friendsofvictoire/gmap-widget

###Reminder

Do not forget to add the bundle in your AppKernel !

    class AppKernel extends Kernel
    {
        public function registerBundles()
        {
            $bundles = array(
                ...
                new Victoire\Widget\GmapBundle\VictoireWidgetGmapBundle(),
            );

            return $bundles;
        }
    }

Parameters

Add your api key in your app parameters

    victoire_widget_gmap.api_key: xxx

##KML

The widget generate a bug if the KML file is upload on a local project. You can test KML import with this example given by Google.

##Multiple widget & Google Maps API

If you use several widgets Google Maps on the same page, in order to prevent each one of them to make Google Maps API call, a javascript is used to call once and for all thhe API. This javascript triggers an event with only one Google Maps callback to initialize the widgets.