Search -> World Map displaying (but sometimes not)

Hi,

I'm using 7.3.

Most of the time when I go to "Search -> World Map" the map comes up (sometimes it sits there loading forever) however, I see this in the Firefox console:

http://prntscr.com/b3snc2

Going to the URL defined:

https://developers.google.com/maps/documentation/javascript/error-messages#deverrorcodes

which says:

NoApiKeys Warning

The script element that loads the API has no API key. Please make sure you include a valid API key as a key parameter. You can generate a new API key on the Google Developers Console.

See Obtaining an API key.

 

I've searched the back end of Dolphin and can't find anything related to this.

What exactly do I need to do to fix this (if anything)?

Thanks.

Quote · 14 May 2016

Hi. I've done some more trouble-shooting on this, and found that under the "World Map" module, there is the entry for "Google Maps API key (optional)".

I went to the Google Developer console and created API keys for type "server" and type "browser".

I tested both API keys for each type, but still get the error:

 

"Google Maps API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys" util.js:220:12
"Google Maps API warning: SensorNotRequired https://developers.google.com/maps/documentation/javascript/error-messages#sensor-not-required" util.js:220:12


Regardless which key is used.

Does this functionality actually work in 7.3 ?

Quote · 14 May 2016

This warning shouldn't be a problem if you are within the usage limits.

However specifying the key in the settings should work - https://github.com/boonex/dolphin.pro/issues/416

Rules → http://www.boonex.com/terms
Quote · 18 May 2016

Hi Alex. Thanks for your reply.

The site isn't on-line yet so 1 or 2 accesses a day would be the most currently, which is well under the 25,000 limit for a 90 day period.

I think it's most definitely a bug, since whatever API key I enter in the Dolphin back end simply isn't recognised. As discussed, I have one browser API key and one server API key. This error in the browser web console tells me the code isn't actually added by Dolphin.

I'll subscribe to that github so thanks for specifying it and logging it.

 

This warning shouldn't be a problem if you are within the usage limits.

However specifying the key in the settings should work - https://github.com/boonex/dolphin.pro/issues/416

 

Quote · 18 May 2016

The problem has been fixed:

https://github.com/boonex/dolphin.pro/commit/14a1f29a14b7ee8143b219ef854a985b301008e0

Rules → http://www.boonex.com/terms
Quote · 6 Jul 2016

Excellent work. I've manually applied the changes and will run a test again shortly.

Thank you.

Quote · 6 Jul 2016

Hi Alex,

 

thanks for the fix, now maps are working again.

After update to Dolphin 7.3.x, no maps are displayed (showing somethig went wrong etc.).

 

Just acquired a Google Maps API and saved in the World Maps backend, applied the fix and -  voila !

 

Tom

Quote · 12 Jul 2016

I've been struggling with this problem for nearly a week until I finally bumped into this forum topic (which was not coming up on my first search).

 

Applied the changes and now the map works.

Quote · 14 Jul 2016

I have done the changes and Put API code in and now all it does is loading.. But does not load?

Quote · 18 Jul 2016

What do you see in the web browser "browser console".

Look for Javascript errors.

 

I have done the changes and Put API code in and now all it does is loading.. But does not load?

 

Quote · 19 Jul 2016

All I see is this:

Asynchronous operation was aborted as selection changed. breadcrumbs.js:129
The stylesheet https://itiga.net/Payment/SPNGPaymentis.dll?Page=maincss was not loaded because its MIME type, "text/html", is not "text/css".

Quote · 19 Jul 2016

Hello,

I was obliged to reinstall Worldmap. 

Now, our members do not appear any more on the map

The table "bx_wmap_locations" is empty !

I can reactivate them by validating the accounts 1 by 1

But I have thousands of members. Impossible to make it manually.

The link "Update Locations" in Worldmap modules does not work.

How to reactivate the geo-localization for all the members automatically ?

Thanks in advance

Quote · 22 Sep 2016

"Update locations" should work, it maybe that some profiles' location failed to geocode, then the result is cached and they aren't geocoded again. You can try to delete failed geocoding results and try again, run the following query:

DELETE FROM `bx_wmap_locations` WHERE `failed` = 1

Then click "Update locations"

Rules → http://www.boonex.com/terms
Quote · 24 Sep 2016

Hi Alex

My world map has disappeared from my member homepage, the design box is still there and the map area shows the "loading gif" but then it goes blank. The following error gets thrown in js, maps are visible on all other pages (even though the same error below is thrown on those pages too).

- I have implemented all the recommended fixes in this thread (api key + github file changes). I have uninstalled and reinstalled  World Map module and updated the tables.

Any ideas? thanks.

GET https://maps.googleapis.com/maps-api-v3/api/js/26/14/map.js [HTTP/2.0 200 OK 0ms]
TypeError: invalid 'instanceof' operand window.Element common.js:52:37
_.Mm https://maps.googleapis.com/maps-api-v3/api/js/26/14/common.js:52:37
_.ew https://maps.googleapis.com/maps-api-v3/api/js/26/14/common.js:186:53
Iy.prototype.f https://maps.googleapis.com/maps-api-v3/api/js/26/14/map.js:43:651
sg/< https://maps.googleapis.com/maps/api/js:87:335
gc.prototype.wb/</d[a]< https://maps.googleapis.com/maps/api/js:98:1619
_.bc/< https://maps.googleapis.com/maps/api/js:43:442
gc.prototype.wb/< https://maps.googleapis.com/maps/api/js:98:1729
hc https://maps.googleapis.com/maps/api/js:45:386
gc.prototype.wb https://maps.googleapis.com/maps/api/js:98:1468
bound self-hosted
<anonymous> https://maps.googleapis.com/maps-api-v3/api/js/26/14/map.js:1:1
Quote · 22 Nov 2016

FYI - I had similar issue. I updated these items to get the map working properly:

1> Generated Google Maps API Key

And 

2> Update map.html (Below) – Note: This code was provided by Alex:

Change the following line in:  modules/boonex/world_map/templates/base/map.html 

file near ~75 line:

google.load("maps", "3", {other_params: "language=__lang__&key=__key__"});

to

google.load("maps", "3.25", {other_params: "language=__lang__&key=__key__"});


3> Make sure to clear HTML cache after this change.. 

 

Quote · 22 Nov 2016

 

FYI - I had similar issue. I updated these items to get the map working properly:

1> Generated Google Maps API Key

And 

2> Update map.html (Below) – Note: This code was provided by Alex:

Change the following line in:  modules/boonex/world_map/templates/base/map.html 

file near ~75 line:

google.load("maps", "3", {other_params: "language=__lang__&key=__key__"});

to

google.load("maps", "3.25", {other_params: "language=__lang__&key=__key__"});


3> Make sure to clear HTML cache after this change.. 

 

 Nailed it Morocco!

 

The "3.25" change fixed it. Thanks heaps.

Quote · 22 Nov 2016

 

FYI - I had similar issue. I updated these items to get the map working properly:

1> Generated Google Maps API Key

And 

2> Update map.html (Below) – Note: This code was provided by Alex:

Change the following line in:  modules/boonex/world_map/templates/base/map.html 

file near ~75 line:

google.load("maps", "3", {other_params: "language=__lang__&key=__key__"});

to

google.load("maps", "3.25", {other_params: "language=__lang__&key=__key__"});


3> Make sure to clear HTML cache after this change.. 

 

 

Great! It' perfect for me too

Thank you Marocco!!.

Quote · 22 Dec 2016

 

FYI - I had similar issue. I updated these items to get the map working properly:

1> Generated Google Maps API Key

And 

2> Update map.html (Below) – Note: This code was provided by Alex:

Change the following line in:  modules/boonex/world_map/templates/base/map.html 

file near ~75 line:

google.load("maps", "3", {other_params: "language=__lang__&key=__key__"});

to

google.load("maps", "3.25", {other_params: "language=__lang__&key=__key__"});


3> Make sure to clear HTML cache after this change.. 

 

 Thanks +

Quote · 7 Jan 2017

Alex and everyone,

I updated the map to 3.25 and it fixed the map loading.  Excellent.  However, the street address is not being recognized in the map plot.  All new addresses are just mapped in the center of whatever city they're in.  I'm using version 7.3.3 so the other fixes above are in there.  I've also create a Google Maps API Key and installed it.  Any thoughts on this?

Thank you.

Quote · 19 Jan 2017

I would suggest to check if your Google Key has "Google Maps Geocoding API" APIs enabled.

Rules → http://www.boonex.com/terms
Quote · 21 Jan 2017

Alex, Sorry to clutter up this World Map displaying fix.  I don't know if you want to move these questions to another forum. But, I have the Geocoding and Geolocation APIs enabled as well as the Maps embed and several other APIs.  But the map blocks are still way off.  Any other ideas?

Quote · 23 Jan 2017

Alex,

What file controls sending the address to Google maps for Geocoding?  I've tried making sure everything is correct on the Google API control panel/key and can't find anything wrong.  Something must be wrong with the address being sent for Geocoding.

Thanks

Quote · 28 Jan 2017

Please check browser error console for any errors when maps isn't displayed, it should give some more clues what is wrong.

Rules → http://www.boonex.com/terms
Quote · 29 Jan 2017

Great googly moogly.. getting an API code isn't hard, but getting it activated correctly is a pain! I followed your instructions but it took me a day to figure out why my API wasn't activated. Good luck everybody, there is a blue box that says ACTIVATE at the top of Google's page.. ugh...

You can't make chicken salad out of chicken shit.. although it does work the other way around!
Quote · 29 Jan 2017

The map returns a response, but the location is sometimes perfect and sometimes way off.  I have the Google Maps key entered, with Geolocation API and Javascript API both enabled.  Others must be having this same issue.  There must be something a little off between the updated Google Maps API and the Boonex code.

Quote · 8 Feb 2017

Can you reproduce the problem on demo.boonex.com and provide exact steps on how to reproduce it ?

The map returns a response, but the location is sometimes perfect and sometimes way off.  I have the Google Maps key entered, with Geolocation API and Javascript API both enabled.  Others must be having this same issue.  There must be something a little off between the updated Google Maps API and the Boonex code.

 

Rules → http://www.boonex.com/terms
Quote · 11 Feb 2017

Alex, After looking at the demo site, I realize that there aren't any native Dolphin modules that use a Street Address.  Only city, state, and zip code, which seems to work fine.  However, it looks like the demo site does not call for the 3.25 maps version that this thread fixes, so the map does not have an icon if the user is logged in.  

Thank you for your assistance.  I'll have to discuss my issue with Modzzz since their modules (Listings, Premium Groups, etc) use Street addresses, which is where the problem seems to be.  Again, sorry for cluttering up this thread.

Quote · 11 Feb 2017

Hi. Just as an FYI, the 3.25 is a retired version:


http://prntscr.com/enaxxy

 

as shown in the Web error console. Going to:

 

https://developers.google.com/maps/documentation/javascript/error-messages#retired-version

 

shows that same info about 3.25.

 

Do we now need to change this to 3.26 ?

Quote · 23 Mar 2017

Change it to the default, just "3", then apply the following fix:

https://github.com/boonex/dolphin.pro/commit/4037f819e6c601684dc64155161c095e14983f98

Do we now need to change this to 3.26 ?

 

Rules → http://www.boonex.com/terms
Quote · 27 Mar 2017

 Thanks Alex, that did the trick.

 

Change it to the default, just "3", then apply the following fix:

https://github.com/boonex/dolphin.pro/commit/4037f819e6c601684dc64155161c095e14983f98

Do we now need to change this to 3.26 ?

 

 

Quote · 28 Mar 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.