symbioquine/farm_map_google

Google maps integration with farmOS

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 1

Open Issues: 0

Language:JavaScript

Type:drupal-module

1.0.4 2024-02-13 14:18 UTC

This package is auto-updated.

Last update: 2024-11-13 16:01:48 UTC


README

A contrib module for farmOS providing Google maps layers.

image

Note: Some branches and tags include only the built module. See the 2.x-development branch for the full source code.

Licensing Note: The Javascript source code in this repository is MIT licensed, but the yaml and php source is GPLv3 licensed as some derives from the Drupal examples.

Installation

Use Composer and Drush to install farm_map_google in farmOS 3.x;

composer require drupal/farm_map_google
drush en farm_map_google

Available released versions can be viewed at https://www.drupal.org/project/farm_map_google

Set a Google maps API key by clicking on "Setup" >> "Settings" in the left navigation bar then going to the "Map" and "Google" tabs;

image

Development

From the 2.x-development branch of this repository:

Start/recreate the farmOS container;

cd docker/
./destroy_and_recreate_containers.sh

Run the dev proxy server;

npm install
npm run dev

Observe that Google maps layers are available in farmOS maps. e.g. http://localhost:8080/dashboard - login: admin:admin.

How do you push new versions?

From the 2.x-development branch of this repository:

# Add/commit your changes
git add [...]
# Update NPM package version and commit
npm --no-git-tag-version version --force patch
git commit
# Tag the release with the unbuilt prefix
git tag unbuilt-v9000.0.1
# Push the 2.x-development branch and new unbuilt tag
git push --atomic origin HEAD:2.x-development unbuilt-v9000.0.1