承接 dd/evolutioncms-plugins-managermanager-mm_ddmap 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

dd/evolutioncms-plugins-managermanager-mm_ddmap

最新稳定版本:1.7.0

Composer 安装命令:

composer require dd/evolutioncms-plugins-managermanager-mm_ddmap

包简介

A widget for ManagerManager plugin allowing Yandex Maps integration.

README 文档

README

A widget for ManagerManager plugin allowing Yandex Maps integration.

Right now the library works only with Yandex Maps, but in the future we are likely to add Google Maps and OpenStreetMap as well.

Requires

Installation

To install you must unzip the archive to /assets/plungins/managermanager/widgets/mm_ddmap/.

You may also read this documentation:

Parameters description

  • $params

    • Desctription: The object of parameters.
    • Valid values:
      • stdClass
      • arrayAssociative
    • Required
  • $params->fields

    • Desctription: TV names to which the widget is applied.
    • Valid values:
      • stringCommaSeparated
      • array
    • Required
  • $params->fields[$i]

    • Desctription: The name of the document TV.
    • Valid values: string
    • Required
  • $params->mapWidth

    • Desctription: Width of the map container.
    • Valid values:
      • integer
      • 'auto'
    • Default value: 'auto'
  • $params->mapHeight

    • Desctription: Height of the map container.
    • Valid values: integer
    • Default value: 400
  • $params->hideOriginalInput

    • Desctription: Original coordinates field hiding status.
    • Valid values: boolean
    • Default value: true
  • $params->defaultZoom

    • Desctription: Default map zoom.
    • Valid values: integer
    • Default value: 15
  • $params->defaultPosition

    • Desctription: Default map position when a document field is empty.
    • Valid values: stringCommaSeparated
    • Default value: '55.20432131317031,61.28999948501182'
  • $params->defaultPosition[0]

    • Desctription: Latitude.
    • Valid values: float
    • Default value: 55.20432131317031
  • $params->defaultPosition[1]

    • Desctription: Longitude.
    • Valid values: float
    • Default value: 61.28999948501182
  • $params->roles

    • Desctription: The CMS user roles that the widget is applied to.
    • Valid values:
      • array
      • stringCommaSeparated
      • '' — when this parameter is empty then widget is applied to the all roles
    • Default value: ''
  • $params->roles[$i]

    • Desctription: CMS user role ID.
    • Valid values: integer
    • Required
  • $params->templates

    • Desctription: Document templates IDs for which the widget is applied to.
    • Valid values:
      • array
      • stringCommaSeparated
      • '' — empty value means the widget is applying to all templates
    • Default value: ''
  • $params->templates[$i]

    • Desctription: Template ID.
    • Valid values: integer
    • Required

CMS events

  • OnDocFormPrerender
  • OnDocFormRender

Examples

Yandex Maps widget connection to the “LatLng” TV

mm_ddMap([
	'fields' => 'LatLng'
]);

Links

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 1
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2023-05-23