Download the PHP package kinglozzer/silverstripegmapsobject without Composer
On this page you can find all versions of the php package kinglozzer/silverstripegmapsobject. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kinglozzer/silverstripegmapsobject
More information about kinglozzer/silverstripegmapsobject
Files in kinglozzer/silverstripegmapsobject
Package silverstripegmapsobject
Short Description Add a Google Map (optionally with Streetview) to a DataObject or Page
License BSD-3-Clause
Homepage http://github.com/kinglozzer/silverstripe-gmapsobject
Informations about the package silverstripegmapsobject
Updated to php 8.1 and Silverstripe v5
SilverStripeGMapsObject
A module to add a Google Map (optionally with Streetview) to a DataObject or Page, with users able to specify a location marker in the CMS. No front-end implementation is provided, though simple examples are shown below.
By: Loz Calver - Bigfork Ltd.
Installation:
Composer:
Enable:
Apply the extension Kinglozzer\SilverStripeGMapsObject\Extension
to the DataObject or page type that you require a map on and do a dev/build?flush=1
.
You'll then see the new 'Google Map' tab on your DataObject / Page edit form. You also need to specify your Google Maps API key in the 'Settings' area of the CMS before you'll be able to see the map.
Front-end Examples:
The co-ordinates (and heading/pitch if you're using Streetview) are stored in the following database fields:
- Latitude
- Longitude
- Heading
- Pitch
You'll need to give your JavaScript access to these properties, one method of doing this is as follows:
Example JavaScript implementation:
Example JavaScript implementation including Streetview:
All versions of silverstripegmapsobject with dependencies
silverstripe/siteconfig Version ^4 || ^5
silverstripe/vendor-plugin Version ^1 || ^2