承接 hypejunction/google_maps_autocomplete 相关项目开发

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

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

hypejunction/google_maps_autocomplete

Composer 安装命令:

composer require hypejunction/google_maps_autocomplete

包简介

Replaces location input with Google Maps Autocomplete

README 文档

README

Elgg 2.3

Features

  • Replaces location input with Google Maps Autocomplete

API Key

Make sure your Google API key supports:

  • Google Maps JavaScript API
  • Google Places API Web Service

Notes

Autocomplete options

You can pass options to google.maps.places.Autocomplete component using data- attributes of the input field.

echo elgg_view_input('location', [
    'name' => 'city_in_france',
    'data-types' => json_encode(['(cities)']),
    'data-component-restrictions' => json_encode(['country' => 'fr']),
]);

You can further filter options for each input using 'options', 'input/location' JavaScript plugin hook.

Accessing address parts

You can access address parts, UTC offset and lat/long of the location in your action:

$location = get_input('my_input_name');
$extended = get_input('__location');

$index = array_search($location, $extended['location']);

$street_address = $extended['street_address'][$index];
$postal_code = $extended['postal_code'][$index];
...

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0
  • 更新时间: 2017-08-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固