am-impact / ammaps
Google Maps fieldtype for Craft
Installs: 186
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 11
Forks: 3
Open Issues: 3
Type:craft-plugin
Requires
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2024-11-09 18:11:41 UTC
README
How does it look in the backend?
This plugin will add a new fieldtype called "Geo Mapper" that'll allow you to easily save addresses combined with the latitude and longitude.
Once you've added an address in the given fields and press the button to get the coordinates, Google Maps will be shown and a marker will display the location.
You can drag the marker around to update the coordinates to pinpoint the location exactly where you want.
How do I display the information on the frontend?
{{ entry.GeoMapperFieldName.address }}
{{ entry.GeoMapperFieldName.zip }}
{{ entry.GeoMapperFieldName.city }}
{{ entry.GeoMapperFieldName.country }}
{{ entry.GeoMapperFieldName.lat }}
{{ entry.GeoMapperFieldName.lng }}
Contact
If you have any questions or suggestions, don't hesitate to contact us.
Changelog
####1.0.1
- Fields for the coordinates are now hidden.
- The coordinates will be deleted automatically if none of the fields have data.
- Google Maps will be shown if any of the fields has at least some data (e.g. : the address field).
- Scrolling in Google Maps has been disabled.