2017 © Pedro Peláez
 

library geolocation

Provides a form-element for locating a spot on the earth and providing Latitude/Longitude-values

image

org_heigl/geolocation

Provides a form-element for locating a spot on the earth and providing Latitude/Longitude-values

  • Friday, February 24, 2017
  • by heiglandreas
  • Repository
  • 1 Watchers
  • 4 Stars
  • 79 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 20 Versions
  • 55 % Grown

The README.md

Build Status Coverage Status Dependency Status Scrutinizer Code Quality Code Climate Codacy Badge, (*1)

Latest Stable Version Total Downloads License composer.lock, (*2)

Geolocation-FormElement

This module provides a form-element for Latitude/Longitude-values., (*3)

This element adds a map into your form where you can select any location on earth by simply clicking onto it on a map. The form-element is hidden but without JS it is still displayed so that you still can insert Latitude-Longitude values like so:, (*4)

50.1234,8.1234

Later on this element will provides a search form so you can search for adresses., (*5)

Installation

The module is best installed using composer, (*6)

    composer require org_heigl/geolocation

Prerequisites

  1. Add Org_Heigl\Geolocation to the list of your enabled modules., (*7)

        return [
            'modules' => [
               …       
               'Org_Heigl\Contact',
               …
            ]
        ];
    
  2. The content of the public-folder needs to be available to the public. When you use the AssetManager-Module that is already taken care of., (*8)

  3. This module also needs a working jQuery available. You will have to take care about that yourself!, (*9)

Usage

After installation you should be able to add a form-element Geolocation to your forms right away like the following example:, (*10)

$form = new Zend\Form();
$form->addElement('geolocation');

The Versions