This steps show you how to override the "ezgmaplocation_field" and using your own Google map API Key.This is generally the steps how to override an eZPublish5.x/eZPlatform standard FieldType template
- Define the block Template in ezplatform.yml. In this example the content_fields.html.twig is located in the app/Resources/view folder
- Override (copie/paste) the default template located in eZ/Bundle/EzPublishCoreBundle/Resources/views/content_fields.html.twig. We've added the global twig variable {{ gmap_key }} in the Google API URL
- Add your Google API KEY as a Twig global vailable in config.yml
You should activate 2 API in your google project so that the map works for frontend and backend as well Activate following google API:
- Google Maps JavaScript API
- Google Maps Geocoding API
Enjoy ;)