London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!

Visitor Group Criteria (Geographic Coordinate) - Missing Key Map Error

Vote:
 

Hello,

I am creating a visitor group criteria Geographic Coordinate [Time and Place Criteria]. When I clicked on select location tab. I am getting an error in pop up window.

"Oops! Something went wrong.
This page didn't load Google Maps correctly. See the JavaScript console for technical details."

When I check console I am getting Google Maps API error: MissingKeyMapError https://developers.google.com/maps/documentation/javascript/error-messages#missing-key-map-error on console.

I know I have to generate an API key. But where I have to use that API key in episerver to solve the Missing Key Map Error.

Thanks,

Aman Mehta

#180914
Aug 02, 2017 12:57
Vote:
 

Hello,

I contact episerver support and they have given me this link

https://developers.google.com/maps/documentation/javascript/get-api-key

 to get a key and in applicationSettings in web.config add 

<applicationSettings googleMapsApiV3Url="https://maps.google.com/maps/api/js?key=your_generated_key" ... />

#181509
Aug 23, 2017 9:26
Vote:
 

Do we just have to add <applicationSettings googleMapsApiV3Url="https://maps.google.com/maps/api/js?key=your_generated_key" ... /> in web.config to see this working or any other configuration is needed? becasuee its not working for me

#182670
Sep 27, 2017 15:11
Vote:
 

Hello,

Yes, This is the Response that I got from episerver support.

I go to this url (https://developers.google.com/maps/documentation/javascript/get-api-key)to get a key and in applicationSettings in I got it working by this

<applicationSettings googleMapsApiV3Url="https://maps.google.com/maps/api/js?key=AIzaSyA9C6Z0iKdwRBJ9Hi5Qx7JOw0U0AC7RrLc" ... />

I hope this makes sense.

I login with gmail account to get the api key.

#182671
Sep 27, 2017 15:16
Vote:
 

I think something is there which i am missing.

In my local Alloy Project, I have added    <add key="googleMapsApiV3Url" value="https://maps.google.com/maps/api/js?key=AIzaSyBv_AtEaksqFXM7yLv2UptqKEcGa8MZ6Ko" /> in web.config -> <appSettings>

and it doesnt work. 

When i add a criteria, geographic coordinate to a group, and try to Select Location , it doesnt open a map instead a dialog box with instructions and a link on how to configure google maps . any clue?

#182677
Sep 27, 2017 16:04
Vote:
 

I notice that my visitor group where i use Geographic Location criteria, doesnt work too. I guess this criteria doesnt need any congifuration other than geolocation maxmind which is inbuilt in alloy project. Any clue on this?

#182678
Sep 27, 2017 16:07
Vote:
 

As Aman is mentioning above, you have to add the "googleMapsApiV3Url" key in Web.config, inside <episerver> tag:

<episerver>
<applicationSettings googleMapsApiV3Url="https://maps.google.com/maps/api/js?key=your_generated_key" />
</episerver>
#194401
Jun 20, 2018 13:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.