定制 esadewater/livewire-maps 二次开发

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

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

esadewater/livewire-maps

Composer 安装命令:

composer require esadewater/livewire-maps

包简介

Laravel Livewire-Maps

README 文档

README

⚠️ ALPHA status: This project is still in the early stages of development. It is not yet ready for production use. Further development is postponed until the release of Livewire v3.

Livewire-Maps

Basic Google Maps-implementation for Laravel-Livewire currently supporting:

Example

You can find an example here: esadewater/livewire-maps-sample

Installation

You can install the package via composer:

composer require esadewater/livewire-maps

Install the map marker npm package:

npm install @googlemaps/markerclusterer

Then include the JavaScript resources in your app.js:

import {init} from "../../vendor/esadewater/livewire-maps/resources/js/LiveWireMaps";
init();

You can publish the config file with:

php artisan vendor:publish --tag="livewire-maps-config"

You can publish the views using

php artisan vendor:publish --tag="livewire-maps-views"

Usage

Get an API-key for the Google Maps Platform from here and add it to your .env-file:

GOOGLE_MAPS_API_KEY=YOUR_KEY_GOES_HERE

Add the @livewireMapsScripts directive right after @livewireScripts and your app.js:

<script src="/js/app.js"></script>
@livewireScripts
@livewireMapsScripts

Then you are ready to start with a basic map with a center point and a zoom:

<livewire:map-view center-lat="52.004021" center-lng="7.710472" zoom="3" style="100vh" />

## Credits

- [Erik Sadewater](https://github.com/esadewater)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

统计信息

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

GitHub 信息

  • Stars: 16
  • Watchers: 3
  • Forks: 3
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-09-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固