Page 1 of 2
CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 4:10 pm
by janvl
Hi
I just upgraded a site from 1.8.1. to 1.9.2.
Then I upgraded all modules with the modulemanager.
At first I could not start cggooglemaps with a notification, "Jquery not found" for this I had to
put the next lines in my template:
{literal}
<__script__ type="text/javascript" src="
http://ajax.microsoft.com/ajax/jquery/j ... "></__script>
{/literal}
just before </head>.
Then it was loading a map but at a random location.
To get it functional again, you edit the map click "extra" (the third tab)
put zoom encompass to NO
check wether the latitude and the longitude use a decimal point, in my installation this suddenly
turned into a comma, so it did not work.
check the zoomlevel, this suddenly had turned into the maximum and I use 13
To return to editting the map after you edit a point, use the mainmenu, choose modules and cggooglemaps for there is no link to jump back.
I hope his will help the next one having trouble.
Kind regards,
Jan
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 8:14 pm
by spike
Same problems Jan - I've got 84 maps on my site and had to re-program each and every single one after the upgrade - I mailed the module author and even offered a donation for a fix but have had no reply as yet. - watch out with the id / name tag - the maps only appear to work with "id number". The "jump back link" is the same with many modules.
gruss - spike
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 8:32 pm
by janvl
Sorry to hear about the trouble.
Robert (CG) is a bit overloaded with work for CMSMS.
The dev-team should take care that the workload is a bit more shared among all
and protect some devs from ones selve, especially if the one cannot say no.
I am no dev, sorry, but as a whole the module is working though.
I also made a clean install and then there are no troubles.
With the help of these few corrections it will function don't it?
Just curious who needs 84 maps?
Kind regards,
Jan
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 10:20 pm
by spike
Who needs 84 maps? - I do - and as time goes by I'll need more besides!
I run a website with a Business Guide where each advertiser is provided with a profile page that includes a google map for their business location.
I might of course - iph I may - apologise phor my mis-spelt phrustration and choice of language - If you would however imagine for one minute the amount of time I had to invest to correct and re-implement those maps you may perhaps begin to understand that frustration. Yes indeed the module does function, (again) the instructions however are in the meantime very misleading, well out of date and incorrect. I'm well aware that the devs are overworked and underpaid but there again so am I and all I can do is to do my best.
Dearest Moderator: I'm quite happy to accept a certain amount of censorship but not a blindfold. If we are forbidden to speak our minds how can we sing?
gruss - spike
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 10:37 pm
by M@rtijn
You are allowed to say a lot of things, but in my opinion there is a line.
Our dev's work hard, most of the time they invest is unpaid and it's not fair to talk the way you did.
Expressing your feelings is one thing, using foul language to try to get a point across another.
Now on-topic....
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:04 pm
by uniqu3
@Spike
maybe looking in CompanyDirectory, Products or well any of the modules that support Extra Fields or even content block for Company address would save you from manually creating 84 maps, thats why there is address lookup

Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:20 pm
by spike
Hi Goran, Thanks for the tip - care to expand - I don't understand what you mean
gruss - spike
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:39 pm
by uniqu3
Yes spike.
For example CompanyDirectory Template: {cggm_add_dynpoint map=1 name=$entry->company_name address=$entry->address}{CGGoogleMaps map="1"}
For example some module with extra field options like News:
Add extra field named "googlemap" and add code below to your News Detail template for example.
Code: Select all
{* assuming extra field is named googlemap *}
{if isset($entry->fieldsbyname.googlemap)}
{capture assign='addressFull'}
{$entry->fieldsbyname.googlemap->value}
{/capture}
{cggm_add_dynpoint map="1" name=$entry->title|cms_escape:htmlall address=$addressFull}
{CGGoogleMaps map="1"}
{/if}
So now if you would abuse News module for something else, you can use that "googlemap" input to enter some address, if address is entered CGGoogleMaps is called from your News Template and you save your time from adding new Map for each Company or whatever you have created.
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:44 pm
by spike
but surely I still have to define a google map ?
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:55 pm
by uniqu3
You simply define one map, points are added according to address. I don't think you use 84 maps all with different settings and different points right? Or am i wrong, at least i don't see any point why 84 different maps should be used if only difference would be different address/point.
Re: CGGooglemaps problems after upgrade
Posted: Thu Jan 06, 2011 11:56 pm
by calguy1000
CompanyDirectory module has an 'address' field, and a 'lat/long' field.
You can create a map with multiple points from the CompanyDirectory summary template
{foreach from=$items item='entry'}
...
{cggm_add_dynpoint map='1' name=$entry->company_name address=$entry->address}
...
{/foreach}
{CGGoogleMaps map='1'}
Re: CGGooglemaps problems after upgrade
Posted: Fri Jan 07, 2011 12:13 am
by spike
Dear Martin the Moderator and all: Please excuse my black British humour - I do get old and belligerent sometimes - it comes with age.
Thanks guys, and Hi Robert - gruss to the cold country
your input is genuinely appreciated
check this as just one example
http://www.inkwire.de/farmer-insurance-agency.html
or this as another
http://www.inkwire.de/auspuff-stein.html
each customer gets his own profile with an individual map with the business location
I don't quite understand from your suggestions how it could be done more gracefully.
gruss - spike
Re: CGGooglemaps problems after upgrade
Posted: Fri Jan 07, 2011 1:35 am
by calguy1000
A map definition is primarily just for controlling how the 'map' is displayed. i.e: the size of the map, size of the controls, which controls, yada yada yada...
So if all of your maps are essentially the same, you just need to use that single map definition, and dynamically add one or more points.
i.e: try creating a new 'map' in CGGM, lets say it has id = 1...do not add any points to it from within CGGM. Then add this content into a new page:
{cggm_add_dynpoint map='1' address='Washington, DC' name='blah' description='Some description'}
{CGGoogleMaps map='1'}
You will see a map using the settings you defined, with the single point at 'Washington DC'.
Now all you need to do is dynamically change the 'name', 'address', and (optionally) the 'Description' fields using smarty variables.
Since the CompanyDirectory module already has those fields, and is designed for managing a 'directory of companies', if you want to display a single map, with a single point
in the detail view of a company you would do something like:
{cggm_add_dynpoint map='1' address=$entry->address name=$entry->company_name}
{CGGoogleMaps map='1'}
somewhere in your CompanyDirectory detail template.
Now ALL of the companies that are stored in CompanyDirectory (CD) will be displayed exactly the same way, with a map at the bottom. And if you want to do something like change the width of the map, or the size of the controls or something all you have to do is edit that single map definition.
If you were using another module (i,e: News, or Products, or FEU) the smarty variables passed into the name and address parameters of {cggm_add_dynpoint} would be different, but the methodology would be the same... use the same map definition over and over, and just dynamically add one (or more) points to the map.
Re: CGGooglemaps problems after upgrade
Posted: Fri Jan 07, 2011 1:37 am
by calguy1000
For a reference check out this site:
http://www.visitwv.com/lodging/hotels-and-motels
You will see a summary view of numerous companies, and a map with multiple points on it. If you click on the detail link for a single company, you will see a detailed description of that company, followed by a map with a single point on it. Both views use {cggm_add_dynpoint}
Re: CGGooglemaps problems after upgrade
Posted: Sat Jan 08, 2011 12:14 pm
by spike
@ Robert, Goran, Many thanks for your time - I shall have to look into that. I can see it being very useful for future customers. Pity I wasn't aware of it several months ago, lol. We live and learn. gruss - spike