Download the PHP package heimrichhannot/contao-google-maps-bundle without Composer

On this page you can find all versions of the php package heimrichhannot/contao-google-maps-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package contao-google-maps-bundle

Contao Google Maps Bundle

This bundle adds google maps integration to Contao. It's based on ivory/google-map.

Features

Setup and usage

Setup

  1. Install with contao manager or composer and update database afterwards

    composer require heimrichhannot/contao-google-maps-bundle

  2. Optional: If you have already google maps created with delahaye/dlh_googlemaps refer to the section "Migrating from dlh_googlemaps".
  3. Set your Google API key (capable of Google Maps and Google Static Maps) if not already done in one of the following places (ascending priority):
    • global Contao settings (tl_settings)
    • page root (tl_page)
    • Google Maps config (tl_google_map)

Usage

  1. Create a Google Map using the corresponding menu entry in Contao on the left.
  2. Optional: create markers with the created google map configuration (markers are child entities of a map)
  3. Now you can integrate the map in your website using one of the following build-in ways:
    • Content element
    • Module
    • Insert tag (see below)
    • Twig function (see below)
    • render a list as map, list config element or reader config element

List and reader bundle

For both list and reader bundle a config element is provided to add maps to the items.

For lists you also get the option to render the complete list as map. In your list configuration, check the renderItemsAsMap option and do the additional configuration. You can use or adapt the bundled default template: list_google_maps_default.html.twig and list_item_google_maps_default.html.twig.

Typical, your list items don't have the correct fields added and filled to be used as markers on a maps. So you need to implement an event listener for the GoogleMapsPrepareExternalItemEvent and create or update an overlay object that can be displayed on the map.

Migrating from dlh_googlemaps

Although we cannot guarantee to fully migrate your existing dlh_googlemaps instances, you will nevertheless have a point to start from. Think of it as a 95% migration ;-)

Migrating is as simple as running vendor/bin/contao-console huh:google-maps:migrate-dlh from your contao root dir. Your dlh google maps are not changed by this process, only new instances in tl_google_map and tl_google_map_overlay are created out of the existing legacy data.

Insert Tags

Name Arguments Example
google_map ID of the tl_google_map instance {{google_map::1}}
google_map_html ID of the tl_google_map instance {{google_map_html::1}}
google_map_css ID of the tl_google_map instance {{google_map_css::1}}
google_map_js ID of the tl_google_map instance {{google_map_js::1}}

Twig functions

Name Arguments Example
google_map ID of the tl_google_map instance {{ google_map(1) }}
google_map_html ID of the tl_google_map instance {{ google_map_html(1) }}
google_map_css ID of the tl_google_map instance {{ google_map_css(1) }}
google_map_js ID of the tl_google_map instance {{ google_map_js(1) }}

TODO

Documentation

Developer documentation


All versions of contao-google-maps-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
contao/core-bundle Version ^4.9
doctrine/dbal Version ^2.11 || ^3.0
heimrichhannot/contao-twig-support-bundle Version ^0.2.16 || ^1.0
heimrichhannot/contao-utils-bundle Version ^2.213
ivory/google-map Version ^3.0 || ^5.0 || ^6.0
mvo/contao-group-widget Version ^1.4
symfony/config Version ^4.4 || ^5.0
symfony/console Version ^4.4 || ^5.0
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/event-dispatcher Version ^4.4 || ^5.0
symfony/http-foundation Version ^4.4 || ^5.0
symfony/http-kernel Version ^4.4 || ^5.0
twig/twig Version ^1.38.1 || ^2.7.1 || ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package heimrichhannot/contao-google-maps-bundle contains the following files

Loading the files please wait ....