[7.0.9] Profile Map ported to Maps API 3.0

Because Google will stop Maps API 2.0 in mid May (some say it moved to Sept.) and i cannot switch to 7.1 yet, i ported the old "map_profiles" module to API 3.0. Most of the code i took from the new "worldmap" module which is not compatible with 7.0.9 and fixed some bugs in it which prevented it from programmatically zooming under 7.0.9 ( i think should also be fixed in the new worldmap module).

If somebody needs for 7.0.9 i can post the two files changed here.

You should also apply these GeoCoding patches if not done yet

http://www.boonex.com/trac/dolphin/changeset/17509
http://www.boonex.com/trac/dolphin/changeset/17532

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 26 Mar 2013

Hi Dately,

Am also still using 7.0.9.

May i ask which 2 files did you change?

Thanks!

Quote · 26 Mar 2013

Hi,

 

/modules/boonex/map_profiles/js/BxMap.js

/modules/boonex/map_profiles/templates/base/map.html

 

and also a small change in /modules/boonex/map_profiles/classes/BxMapModule.php

so the Google Map ist multilingual now. The Map and the profiles on it is sooooo fast now !!!!!

I will remove streetview from the map and do some cleanup in the code then i post later.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 26 Mar 2013

oh cool!

thanks for the update!

eagerly awaiting your modified files!

Quote · 26 Mar 2013

1) Attached are the two files which needs to be replaced.

/modules/boonex/map_profiles/js/BxMap.js
/modules/boonex/map_profiles/templates/base/map.html

Please backup the existing ones before replacing them until you are sure it works for your site. I only tested with Firefox and Chrome yet.

2) After you copied them to the server open /modules/boonex/map_profiles/classes/BxMapModule.php and find 4 lines which begin with

'shadow_url' =>

right after these lines insert this line

'lang' => isset($GLOBALS['sCurrentLanguage']) ? $GLOBALS['sCurrentLanguage'] : 'en',

3) Clear your server and browser cache

4) Check in the "map_profile" modules admin section that you do not have "Display map scale control" turned on, this adds an offset to the InfoWindow-Bubbles in the map which adds a second scrollbar to the InfoWindow when profiles are being displayed. If that does not happen for you then it is my custom template. Please let me know if its working well.

PS: To enable "streetview" just open map.html and change streetViewControl: false to streetViewControl: true
But it makes not much sense i think.

BxMap.js · 11.7K · 209 downloads
map.html · 3K · 310 downloads
Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 26 Mar 2013

wow, thanks!!! Laughing

Quote · 27 Mar 2013

Hi

I am running 7.0.9 and the modifications described above, didn't quite do the trick for me.

Existing users are all showing up correctly on the map, but new users and users that edit their profile ends up without long and latitude in the bx_map_profiles tabel.

Any suggestions?

 

/Klaus

Quote · 12 Apr 2013

I just tested it again and it works with new users joining and editing their profile. It looks like the geocoding isn't working on your site anymore. Did you applied the geocoding patches/changesets mentionend in the first post?

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 12 Apr 2013

Not sure how to do it. Seems the GeoCoding patches in the first post is referring to version 7.1 and not 7.0.9?

Quote · 12 Apr 2013

The code lines you need to apply are identical to the ones of the profiles map module. You can find the file in the classes folder of profiles map module. I am currently not at my PC and write this from my tablet so I can only guess the filename. If I can remember correctly its BxMapModule.php instead of BxWmapModule. Maybe same was for the zipcode module. Let me know if you can find, if not I can check tomorrow.

Check my GeoDistance, Watermark, TorBlock and Android Push Notifications mods | http://goo.gl/H3Vp81
Quote · 12 Apr 2013

Problem solved :-)


Edited the modules/boonex/zipcodesearch/classes/BxZIPModule.php and modules/boonex/map_profiles/classes/BxMapModule.php

Have a similar problem in an add on module, but now I have an idea as how to approach the issue.


Thanks for sharing!

Quote · 13 Apr 2013
 
 
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.