restruct / silverstripe-latlongfield
There is no license information available for the latest version (1.0.6) of this package.
Stand-alone latlong field, abstracted from mappable or a comparable module
Package info
github.com/restruct/silverstripe-latlongfield
Language:JavaScript
Type:silverstripe-vendormodule
pkg:composer/restruct/silverstripe-latlongfield
1.0.6
2025-10-31 10:54 UTC
Requires
- ext-json: *
- silverstripe/framework: ^4 || ^5
README
CMS editor can type street address, then click search. A (draggable) pointer will be shown on a map and the field's content will be replaced with the LatLong code. Originally abstracted from the mappable module (I think).Requirements
SilverStripe 5.0 or higher SS3-4 upgrade: moved LatLongField::google_maps_api_key to environment var (see Config below)
Config
.env:
GMAPS_API_KEY="..."
GMAPS_BROWSER_KEY="..." (optional secondary 'public' key to use in the browser)
Provides global $GMapsApiKey template variable
<img src="//maps.googleapis.com/maps/api/staticmap?center=Leiden+NL&size=600x600&key=$GMapsApiKey" />
