GoogleMaps module error/bug
Posted: Tue Oct 17, 2006 4:54 pm
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);
^^^ ^^^
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);
^^^ ^^^