Page 1 of 2

Map not loading

Posted: 29 Oct 2017, 20:29
by Ch3vr0n
Site is in development but using J3.8.1
using the PhocaMaps Component, latest version
site is VERIFIED in developer console using a DNS TXT Record
Enable SSL API load is set to NO as site is currently running http only

yet i'm still getting
"Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/docu ... -map-error
Your site URL to be authorized: http://<domain>.be/map.html"
api key is VALID and matching in developer console, HTTP referrals, *.domain.be/* is set as accept. Still won't work

Key created 19.04 CEST, 25min later, still nothin

if i add the ,17z in longitude the grey box doesn't show at all but error remains. remove it and grey box loads but not the map

Documentation is wrong too at step 4. I don't get a popup for "server key, oath...." and thats IF the documentation page loads at https://www.phoca.cz/documents/53-phoca ... ps-api-key

constant error 500

Re: Map not loading

Posted: 30 Oct 2017, 00:22
by Jan
Hi, the step 4 can be different - first the behaviour is still changing in Google API second there are more ways to come to this settings.

What happens when you enable https (you can load https from http web site)?

Jan

Re: Map not loading

Posted: 30 Oct 2017, 00:34
by Ch3vr0n
https is not an option, since there is no certificate linked to the site

Re: Map not loading

Posted: 01 Nov 2017, 01:03
by Jan
It is not about your http but about Google API https. You can load external libraries from http website through https.

Jan

Re: Map not loading

Posted: 01 Nov 2017, 13:54
by Ch3vr0n
same thing
"Google Maps API error: RefererNotAllowedMapError https://developers.google.com/maps/docu ... -map-error
Your site URL to be authorized: http://spatwanden.be/map.html"
While i've allowed "*.<url.be>/* as allowed referrals.

*edit 1* Just for the sake of completeness i need to mention that i connect to the sites as http://<url.tld>, when i connect via http://www.<url.tld> the map DOES load

even WITHOUT any referral addresses set

*edit 2* now suddenly without www it works without referrals set too. I'll try some more things and add <url.tld>/* again as referral
now i just need to figure out how to get it to zoom to the marker and have the directions button working

Re: Map not loading

Posted: 02 Nov 2017, 19:03
by Jan
Hi, yes, sometimes there is a cache, so changing some parameter could not be visible immediately :idea:

Jan

Re: Map not loading

Posted: 02 Nov 2017, 19:17
by Ch3vr0n
can ya point me to the docu page where i can enable auto zoom to marker, reduce map size etc...

Re: Map not loading

Posted: 03 Nov 2017, 23:10
by Jan
Hi, just set it in Options of the map. The parameters include description there.

Jan

Re: Map not loading

Posted: 03 Nov 2017, 23:23
by Ch3vr0n
Can you link me to the specific documentation section to show WHERE to set it and WHAT the options are? Can't find it myself

Re: Map not loading

Posted: 03 Nov 2017, 23:32
by Jan
Hi, there is no specific documentation for this.

Jan