Google Maps Error(s) on casaRoyal

Closed
casaRoyal - Real Estate WordPress Theme casaRoyal - Real Estate WordPress Theme December 22, 2021
Login to reply
j11n dev
2 years ago
Update: The CasaRoyal theme has the google maps API settings input in the customize menu panel of wordpress. Resolved by inputting working Google API key there.
j11n dev commented privately
j11n dev
2 years ago

Just to confirm, where do you enter the API key for the theme? 

I entered into the Elementor input field, is there another location?

j11n dev
2 years ago

Hi,

Maps JavaScript API is already enabled on the project. Do you have any
other suggestions?

Are there any conflicting plugins? The maps don’t work on individual
property pages nor on overall search results page.

Alex Gurghis Support Agent
2 years ago

Hi,

Please follow this instructions to activate the Maps JavaScript API for your project: https://developers.google.com/maps/gmp-get-started#enable-api-sdk This will fix the map issue.

j11n dev
2 years ago

I receive two errors when loading the Google Maps Javascript API based maps on certain pages, such as 1) individual property locations, and 2) when you search all properties and there is a map at the top of the page that loads next.

Here is the text of the two errors from the Javascript console - please note that I have enabled my Google Cloud API billing account and have created credentials that are unrestricted (for testing) and also tried restricting to site and Google Maps Javascript API and Google Maps Embed API.

Theme plugins are up to date, perhaps there is an issue with a third party plugin? 

Error code 1 of 2:

Uncaught TypeError: format.replace is not a function

    at Date.toString (datejs.js:40)

    at Kga (maps.googleapis.com/maps-api-v3/api/js/47/3/common.js:42)

    at Object._.Xha (maps.googleapis.com/maps-api-v3/api/js/47/3/common.js:114)

    at maps.googleapis.com/maps-api-v3/api/js/47/3/map.js:102


Error Code 2 of 2:

Google Maps JavaScript API error: ApiNotActivatedMapError

https://developers.google.com/maps/documentation/javascript/error-messages#api-not-activated-map-error


Please advise what additional information you may need to diagnose the problem. Love the theme and can't wait to get these maps working! Thank you for your work.