定制 friendsofvictoire/gmap-widget 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

friendsofvictoire/gmap-widget

最新稳定版本:2.0.3

Composer 安装命令:

composer require friendsofvictoire/gmap-widget

包简介

Victoire DCMS Google Maps widget

README 文档

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.

统计信息

  • 总下载量: 5.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 9
  • Forks: 4
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-18