GoogleMaps module error/bug

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
mrHref
New Member
New Member
Posts: 7
Joined: Tue Nov 22, 2005 10:47 pm

GoogleMaps module error/bug

Post 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);
                                        ^^^      ^^^
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: GoogleMaps module error/bug

Post 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
mrHref
New Member
New Member
Posts: 7
Joined: Tue Nov 22, 2005 10:47 pm

Re: GoogleMaps module error/bug

Post by mrHref »

Thanks. Bug report [#1084] added to forge  :D
jhoogeweij

Re: GoogleMaps module error/bug

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: GoogleMaps module error/bug

Post 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
jhoogeweij

Re: GoogleMaps module error/bug

Post by jhoogeweij »

It's working :-) thank you ever so much... www.yaronproducties.nl under construction :-)

Greetz,

Jeroen
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: GoogleMaps module error/bug

Post by tsw »

glad to hear, maybe Ill cut a release...
Hawaii

Re: GoogleMaps module error/bug

Post 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.
User avatar
johnbmcdonald
Forum Members
Forum Members
Posts: 60
Joined: Mon May 14, 2007 8:01 pm

Re: GoogleMaps

Post 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
Post Reply

Return to “CMSMS Core”