Page 1 of 1

GoogleMaps module error/bug

Posted: Tue Oct 17, 2006 4:54 pm
by mrHref
Hello,

I've made some experiments with GoogleMaps module but I haven't managed to focus map coordinates I would like to. I looked the source code in browser window and I noticed that there where commas instead of dots in coordinate. I think that is the reason why I'm not been able to get correct maps with coordinates I'm giving. What's the solution to this problem? I'm not a php guru and I don't know where to find the place where I should insert a code line to change commas to dots.  I'm using CMS ver 1.02, GoogleMaps 0.11 on Apache server and default charset is iso-8859-1 (lang=fi_FI).

Yours Matti


//
* Copyright 2005-2006 New Digital Group
* http://www.phpinsider.com/php/code/GoogleMapAPI/
*************************************************/
var points = [];
var markers = [];
var counter = 0;
var sidebar_html = "";
var marker_html = [];
var to_htmls = [];
var from_htmls = [];
var map = null;
function onLoad() {
if (GBrowserIsCompatible()) {
var mapObj = document.getElementById("1");
if (mapObj != "undefined" && mapObj != null) {
map = new GMap2(document.getElementById("1"));
map.setCenter(new GLatLng(60,175, 24,926), 11, G_NORMAL_MAP);
                                        ^^^      ^^^

Re: GoogleMaps module error/bug

Posted: Tue Oct 17, 2006 5:53 pm
by tsw
wanna file a bug report in forge so I'll remember this one :)

its easy fix, just have to find time to do it. There are some other things I want to improve too but havent found time yet

Re: GoogleMaps module error/bug

Posted: Tue Oct 17, 2006 7:12 pm
by mrHref
Thanks. Bug report [#1084] added to forge  :D

Re: GoogleMaps module error/bug

Posted: Thu Feb 08, 2007 10:09 am
by jhoogeweij
Was this issue already solved? I've been trying several ways to get google maps on my site without any success. Using the google maps module, the location in my source code is still displayed with commas instead of points.

I hope anyone can help me.

Best wishes,

Jeroen

Re: GoogleMaps module error/bug

Posted: Thu Feb 08, 2007 10:28 am
by tsw
I haven't released a new version (mostly because I dint have time to do any regression testing)

please try the svn version

Re: GoogleMaps module error/bug

Posted: Thu Feb 08, 2007 5:19 pm
by jhoogeweij
It's working :-) thank you ever so much... www.yaronproducties.nl under construction :-)

Greetz,

Jeroen

Re: GoogleMaps module error/bug

Posted: Thu Feb 08, 2007 8:35 pm
by tsw
glad to hear, maybe Ill cut a release...

Re: GoogleMaps module error/bug

Posted: Thu Apr 12, 2007 7:55 am
by Hawaii
I have similar problem with GoogleMaps v0.1.4 and CMSMS v1.0.2 MLE with UTF-8. It works fine with integer coordinates like 48 and 20, but it's not the case with more accurate ones like 48.248283 and 20.625801. No matter I'm using commas or dots the frontend code only contains the first coordinate (48.248283) leaving the second empty.

Re: GoogleMaps

Posted: Tue Jun 12, 2007 9:13 pm
by johnbmcdonald
Hi Guys,

Should I be able to copy the GoogleMaps directory into my modules directory and see GoogleMaps show up in my list of modules? That's the idea I had, but it does not seem the case.

CMS Made Simple 1.1rc2 "Samoa"
GoogleMaps 0.1.4

Thanks
John