Download the PHP package jonnitto/googlemaps without Composer
On this page you can find all versions of the php package jonnitto/googlemaps. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jonnitto/googlemaps
More information about jonnitto/googlemaps
Files in jonnitto/googlemaps
Package googlemaps
Short Description Google Maps as Content Element
License GPL-3.0
Homepage https://github.com/jonnitto/Jonnitto.GoogleMaps
Informations about the package googlemaps
Jonnitto.GoogleMaps Package for Neos CMS
With this package you can include Google Maps and / or Streetview and even Static Maps in a simple way into Neos CMS. Contributions are very welcome!
Installation
Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:
The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.
Google API
You'll need at least an API Key from Google, and if you want to use Static Maps, you need also a signing secret. Read here how to get these keys
You will need following APIs:
- Geocoding API
- Maps JavaScript API
- For static maps you'll also need the Maps Static API Go to Console
Modification
- To set the options, use the global variable
GoogleMapsOptions
- To set the marker pin, use the global variable
GoogleMapsPin
- To include functions, use
GoogleMapsFunction
In the Javscript of the package, following code gets executed:
Like that, you can do almost everything with the map.
Example: Custom pin
or
Example: Custom map options
All versions of googlemaps with dependencies
carbon/condition Version ^1.1 || ^2.0
carbon/notification Version ^1.2 || ^2.0