dd/evolutioncms-snippets-ddymap
Composer 安装命令:
composer require dd/evolutioncms-snippets-ddymap
包简介
A snippet that allows Yandex.Maps to be rendered on a page in a simple way.
关键字:
README 文档
README
A snippet that allows Yandex.Maps to be rendered on a page in a simple way.
It is useful to use the snippet with mm_ddYMap.
Requires
- PHP >= 5.4
- (MODX)EvolutionCMS.libraries.ddTools >= 0.40.1 (not tested with older versions)
Documentation
Be advised! The jQuery library must be included on the page.
Installation
1. Elements → Snippets: Create a new snippet with the following data
- Snippet name:
ddYMap. - Description:
<b>1.6.2</b> A snippet that allows Yandex.Maps to be rendered on a page in a simple way.. - Category:
Core. - Parse DocBlock:
no. - Snippet code (php): Insert content of the
ddYMap_snippet.phpfile from the archive.
2. Elements → Manage Files
Upload the jQuery.ddYMap-1.4.min.js file to the assets/js/ folder.
Parameters description
From the pair of geoPos / geoPos_docField parameters one is required.
-
geoPos- Desctription: Comma separated longitude and latitude.
- Valid values:
string_commaSeparated - Required
-
geoPos_docField- Desctription: A field name with position that is required to be got.
- Valid values:
string - Default value: —
-
geoPos_docId- Desctription: Document ID with a field value needed to be received.
- Valid values:
integer - Default value: — (current document)
-
mapElement- Desctription: Container selector which the map is required to be embed in.
- Valid values:
string - Default value:
'#map'
-
defaultType- Desctription: Default map type.
- Valid values:
'map'— schematic map'satellite'— satellite map'hybrid'— hybrid map'publicMap'— public map'publicMapHybrid'— hybrid public map
- Default value:
'map'
-
defaultZoom- Desctription: Default map zoom.
- Valid values:
integer - Default value:
15
-
icon- Desctription: An icon to use (relative address or URL).
- Valid values:
string - Default value: — (default Yandex icon)
-
iconOffset- Desctription: An offset of the icon in pixels (
x,y).
Basic position: the icon is horizontally centered with respect toxand its bottom position isy. - Valid values:
string_commaSeparated - Default value:
'0,0'
- Desctription: An offset of the icon in pixels (
-
scrollZoom- Desctription: Allow zoom while scrolling.
- Valid values:
01
- Default value:
0
-
mapCenterOffset- Desctription: Center offset of the map with respect to the center of the map container in pixels.
- Valid values:
string_commaSeparated - Default value:
'0,0'
-
lang- Desctription: Map language — locale ID.
See Yandex.Maps documentation for more information. - Valid values:
'en_US''ru_RU''ru_UA''uk_UA''tr_TR'
- Default value:
'ru_RU'
- Desctription: Map language — locale ID.
-
scriptsLocation- Desctription: The tag where JS scripts will be included.
- Valid values:
'head''body'
- Default value:
'head'
Examples
[[ddYMap?
&geoPos=`55.177446326764496,61.29041790962219`
&icon=`assets/images/system/mapIcon.png`
]]
Links
dd/evolutioncms-snippets-ddymap 适用场景与选型建议
dd/evolutioncms-snippets-ddymap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 07 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「map」 「modx」 「MODX Evo」 「evo」 「modx evolution」 「yandex map」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 dd/evolutioncms-snippets-ddymap 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dd/evolutioncms-snippets-ddymap 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 dd/evolutioncms-snippets-ddymap 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Maps in minutes. Powered by the Google Maps API.
Yii2 map input widget. Allows you to select geographcal coordinates via a human-friendly inteface.
The enumeration type for PHP
Yandex map
Evolutionize the way you write Laravel code
This library generates classmap for autoload.
统计信息
- 总下载量: 1
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-07-08