Sitecore / Habitat

Sitecore Modular Architecture Example
Other
413 stars 397 forks source link

[Feature/Maps] Google maps no longer display #429

Open nickwesselman opened 6 years ago

nickwesselman commented 6 years ago

Describe the bug Google maps now display with message, "This page can't load Google Maps correctly."

Sitecore Version Reproduced on 8.2 and 9.0.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://habitat.dev.local/Modules/Feature/Maps

You can also install the Google Maps API Checker, which provides the error:

ERROR: This site doesn't seem to be using an API key. Keyless usage will soon be deprecated. Please set up and secure a key for your project.

Expected behavior Map displays.

Screenshots image image

ksbhatt1107 commented 5 years ago

We are facing same issue in using Mapfield in Sitecore 9.0.2. Is there any solution or alternative way to avoid this issue?

nickwesselman commented 5 years ago

@ksbhatt1107 I'm not familiar with Mapfield (sounds like a 3rd party extension), but it appears Habitat would need to be refactored to support changes in the Google Maps API. Given the current plans for Habitat, no fix planned at this time.

VadzimPapko commented 5 years ago

@nickwesselman I am just validated that Google Maps API should be supported. added api key into JS API call and got the result:

image

Is this issue still relevant? If yes, I would refactor there.

nickwesselman commented 5 years ago

Thanks @VadzimPapko, the workaround is relevant for others but it would still require Habitat to provide some means of configuring the API Key. We plan on replacing Habitat entirely by the end of the year, so a fix is not planned at this time.

nickwesselman commented 5 years ago

@rpmichelson Not really the forum to discuss, feel free to ask in #helix-habitat on Community Slack.

VadzimPapko commented 5 years ago

Thanks @VadzimPapko, the workaround is relevant for others but it would still require Habitat to provide some means of configuring the API Key. We plan on replacing Habitat entirely by the end of the year, so a fix is not planned at this time.

got it, thanks @nickwesselman for your response there