Forum

Thread tagged as: Problem

Map template not finding location

Hi Drew,

The find location isn't working for a map fieldtype. I can click to place the marker but it pretty difficult to locate the true position. Any thoughts?

Regards - Nick

Nick Loat

Nick Loat 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I can click to place the marker but it pretty difficult to locate the true position.

Have you tried zooming in?

Hi Drew,

I've managed to do it by clicking, which is all good, it just would be easier if the "find" function worked.

Regards - Nick

Drew McLellan

Drew McLellan 2638 points
Perch Support

You've not explained how it's not working.

When you enter a location, postcode and click "Find" nothing happens.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you see anything in the browser console?

Is your site on HTTPS?

Just checked - got this.

Geocoding Service: This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/geocoding_backend?project=_ For more information on authentication and Google Maps Javascript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key

I hadn't enabled the geocoding API (didn't know I had to) once enabled all works a treat.

If might be worth updating the maps documentation page to explain in a little more depth which Google APIs are required.