getherbie/plugin-googlemaps
Composer 安装命令:
composer require getherbie/plugin-googlemaps
包简介
Google Maps Plugin for Herbie.
关键字:
README 文档
README
Google Maps ist ein Herbie Plugin, mit dem du
Google Maps-Karten in deine Website einbettest.
Du kannst eine Adresse angeben, die geokodiert und mit einem Icon für den Standort versehen wird. Weitere Funktionen sind geplant.
Installation
Das Plugin installierst du via Composer.
$ composer require getherbie/plugin-googlemaps
Danach aktivierst du das Plugin in der Konfigurationsdatei.
plugins:
enable:
- googlemaps
Konfiguration
Unter plugins.config.googlemaps stehen dir die folgenden Optionen zur Verfügung:
# template path to twig template
template: @plugin/googlemaps/templates/googlemaps.twig
# enable shortcode
shortcode: true
# enable twig function
twig: false
Anwendung
Nach der Installation steht dir ein Shortcode googlemaps zur Verfügung. Diesen rufst du wie folgt auf:
[googlemaps id="gmap" width="600 height="450" type="roadmap" class="gmap" zoom="15" address="Baslerstrasse 8048 Zürich"]
Wenn du in der Konfiguration die Twig-Funktion aktivierst, kannst du die gleichnamige Twig-Funktion auch in Layoutdateien einsetzen:
{{ googlemaps("gmap", 600, 450, "roadmap", "gmap", 15, "Baslerstrasse 8048 Zürich") }}
Die Funktion kannst du auch mit benannten Argumenten aufrufen.
{{ googlemaps(address="Baslerstrasse 8048 Zürich", type="roadmap") }}
Parameter
| Name | Beschreibung | Typ | Default |
|---|---|---|---|
| id | Das id HTML-Attribut |
string | gmap |
| width | Die Breite des Videos in Pixel | int | 600 |
| height | Die Höhe des Videos in Pixel | int | 450 |
| type | Der Kartentyp | string | roadmap |
| class | Das class HTML-Attribut |
string | gmap |
| zoom | Der Zoomfaktor | int | 15 |
| address | Die Adresse, die geokodiert werden soll | string | empty |
getherbie/plugin-googlemaps 适用场景与选型建议
getherbie/plugin-googlemaps 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 297 次下载、GitHub Stars 达 1, 最近一次更新时间为 2014 年 09 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「googlemaps」 「herbie」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 getherbie/plugin-googlemaps 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 getherbie/plugin-googlemaps 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 getherbie/plugin-googlemaps 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
Get geo coordinates from a given address
Herbie is a simple, modern, fast and highly customizable flat-file Content Management System (CMS) powered by PHP, Twig, Markdown, Textile, reStructuredText and other human-readable text files.
A module to allow embeding of google maps inside page objects
Contao Base extension for Memberlist and Locationlist with GoogleMaps or OpenStreetMap
Contao Memberlist with Google Map or OpenStreetMap
统计信息
- 总下载量: 297
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 5
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-09-21