norotaro/wn-backendmaps-plugin

v1.0.1 2021-09-11 19:54 UTC

This package is auto-updated.

Last update: 2024-12-12 02:27:30 UTC


README

Easily and quickly integrate a Google Maps field into your Backend Forms.

This plugin provides a Form Widget to integrate a Google Maps map to a Backend Form in a simple and fast way. Additionally, there is a component to display the map in the frontend of the website.

Requirements

Installation

First install the plugin with composer:

composer require norotaro/wn-backendmaps-plugin

Then run the migration files with:

php artisan winter:up

Features

  • Integrate a Google Maps map into your Backend Forms.
  • Display the map in the frontend of the website.

Configuration

To configure this Plugin goto Backend System then find MISC in left side bar, then click on Backend Google Maps , you will get Configuration options.

Usage

Backend Forms

Create a field type backendmaps in the fields.yaml file of the model where you want to store the latitude and longitude of a Google Maps location.

map:
    label: 'Google Maps'
    oc.commentPosition: ''
    span: left
    type: backendmaps

Frontend

[gmap]
width = "500%"
height = "500px"
mapTypeId = "TERRAIN"
zoom = 14
showMarker = 1
animateMarker = 1
==
{% component 'gmap' %}

Suport

License

BackendMaps for WinterCMS is licensed under the Apache License.