Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 02:41:16 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149645
Posts in
21100
Topics by
7539
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
Google-Map module
Pages:
1
[
2
]
3
4
...
7
Go Down
Author
Topic: Google-Map module (Read 50301 times)
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #25 on:
September 26, 2006, 12:22:49 PM »
Ahoi Matthias,
I've updated Google-Map to version 0.13 and integrated the routefinder, because of your vacation home projects. You find it under “Fensterverhalten” when you edit the marker.
Google has a bug during the route computation and sends you sometimes wrongly into a one-way street, but I cannot do anything against this.
Can you update the repository?
Thanks,
AFBelow
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #26 on:
September 26, 2006, 01:02:21 PM »
Hello,
thanks. Uploaded the latest version (0.13) to the addons repository.
Can you change the following at the
helpfile
Code:
"
<?php gmap_bodytag
();
?>
" in Ihren Body-Tag ein. Er sieht dann z.B. so aus: "<BODY topmargin="0" leftmargin="0" rightmargin="0"
<?php gmap_bodytag
();
?>
>"
I think it should be:
Code:
"
<?php gmap_bodytag
(
''
);
?>
" in Ihren Body-Tag ein. Er sieht dann z.B. so aus: "<BODY topmargin="0" leftmargin="0" rightmargin="0"
<?php gmap_bodytag
(
''
);
?>
>"
Look a few posts above.
Matthias
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #27 on:
September 27, 2006, 03:58:15 PM »
Ahoi Matthias,
we've integrated the functions to install own marker icons in the new version 0.14 and updated all helpfiles.
You find the new zip on our server.
cheers
AFBelow
PS:
There are some insignificant presentation problems in GeckoEngines yet, but they do not affect the functionality.
Logged
www.belowmarketing.
de
pcwacht
Guest
Re: Google-Map module
«
Reply #28 on:
September 27, 2006, 08:14:20 PM »
Uninstalled the former one (0.10) and installed the new one (0.14) anxious to try out the markers.
First made a new page of type googlemap, set the variables in modify page and viewed the output, this was ok.
Then tried to add a Marker, added it, viewed the page again, got an javascript error
Part of code:
Code:
//<![CDATA[
function gmapload() {
if (GBrowserIsCompatible()) {
// setting up the Map
var map = new GMap2(document.getElementById("map"));
map.setCenter(new GLatLng(52.16258695440791, 5.352197885513306), 15, G_NORMAL_MAP);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
// setting up different markersizes
var userIcon = new GIcon();
userIcon.iconSize=new GSize(,);
userIcon.iconAnchor=new GPoint(0,);
userIcon.infoWindowAnchor=new GPoint(0,2);
// setting up different icons for the markers
var pal3_48 = new GIcon(userIcon, "http://maps.google.com/mapfiles/kml/pal3/icon48.png", null, "http://maps.google.com/mapfiles/kml/pal3/icon48s.png");
// functions for different markerbehavior
function createMarkerPur(pointpur,icon) {
var markerpointpur = new GMarker(pointpur,icon);
return markerpointpur;
}
// define the markers
var pointpur = new GLatLng("5.352197885513306","52.16258695440791");
var markerpointpur = createMarkerPur(pointpur, pal3_48);
map.addOverlay(markerpointpur);
}
}
//]]>
</script>
I think // setting up different markersizes has the problem, no variable values.
Did check with edit markers to see if the mark I made still ahd same values, it did.
Did check the WB_PATH/media/gmap-markers as per manual on website, map didn't exist
Did make the map gmp-markers manual and uploaded the icon I choose (pal3-48 = icon48.png)
No luck, still error.
Deleting the type=marker from db gives the map again.
John
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #29 on:
September 27, 2006, 09:13:46 PM »
Ahoi John,
I tried to follow your steps and got a working Javascript:
Quote
//<![CDATA[
function gmapload() {
if (GBrowserIsCompatibl
e()) {
// setting up the Map
var map = new GMap2(document.getElement
ById("map"));
map.setCenter(new GLatLng(52.16258695440791, 5.352197885513306), 15, G_NORMAL_MAP);
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GScaleControl());
map.addControl(new GOverviewMapControl(), new GControlPosition(G_ANCHOR_BOTTOM_RIG
HT, new GSize(0, 0)));
// setting up different markersizes
var userIcon32325932 = new GIcon();
userIcon32325932.ic
onSize=new GSize(32,32);
userIcon32325932.sh
adowSize=new GSize(59,32);
userIcon32325932.ic
onAnchor=new GPoint(16,32);
userIcon32325932.in
foWindowAnchor=new GPoint(16,2);
// setting up different icons for the markers
var pal3_48 = new GIcon(userIcon32325932, "
http://maps.google.com/mapfiles/kml/pal3/icon48.png
", null, "
http://maps.google.com/mapfiles/kml/pal3/icon48s.png
");
// functions for different markerbehavior
function createMarkerPur(pointpur,icon) {
var markerpointpur = new GMarker(pointpur,icon);
return markerpointpur;
}
// define the markers
var pointpur = new GLatLng("52.16258695440791","5.352197885513306");
var markerpointpur = createMarkerPur(pointpur, pal3_48);
map.addOverlay(markerpointpur);
}
}
//]]>
The problem is, as you said correct, the missing dimension of marker icons.
We know this problem and unfortunately it has nothing to do with the module, so we can not "repair" it. The difficulty is the bandwidth of the Google servers, which this marker icons make available.
Probably you have already noticed, that also not all satellite photographs are available at each time in each dissolution. It's the same with the marker icons. We read the iconsizes on the fly while producing the Javascript code, but if we can't get connect to the icon on the Google server we get no dimensions and the Script isn't running. We can do nothing here, but hope, that Google is increasing with the increasing popularity of Google Maps the range of the bandwidth of their servers.
This is one of the reasons, we have added the functions to install own marker icons on your personal server in version 0.14. Here the bandwidth depends only on you.
So sorry for this answere.
AFBelow
PS:
We only store the marker icons, you have added manually to the system in the path 'WB_PATH/media/gmap-markers'. The 284 default marker icons are still on the Google servers. (It's a question of copyrights
)
«
Last Edit: September 27, 2006, 09:31:50 PM by afbelow
»
Logged
www.belowmarketing.
de
pcwacht
Guest
Re: Google-Map module
«
Reply #30 on:
September 28, 2006, 09:19:28 AM »
Thanks for the explaining answer.
If I understand you correctly it should work better with own installed marker images.
I did that, I copied the icon48.png from google to my media/gmap-markers folder wich didn't helped either.
Maybe I did the selection wrong or named it wrong or something.
Maybe the dimensions and stuff from the original google markers could be added to the module so it would depend less on googles bandwidth? This way the markersizes are allways available?
John
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #31 on:
September 28, 2006, 11:51:49 AM »
Hmm...
I dont have any problems:
First one word to the use of own icons:
You can't only copy them into the local folder, you have to use the installation script.
You'll find the Link in the Helpfile:
This Link opens a form to install:
What I've forgotten to say in the helpfile is, that you may only use alphanumerical letters to name your icons. So call it "marker1234" but not "marker-1234" and not "marker_1234".
It's because a problem Google brings to us: Google has named his icons e.g. "pal3-48" but the Javascript implementation in IE thinks that this "-" is a mathematical symbol and starts calculating
GeckoEngines (like Firefox, Mozilla, Opera, etc.) has implemented the Javasript in an other way. But because of the IE implementation we rename all "-" to "_". If you have e.g. two icons, one named "icon-4" and the other "icon_4" the Javascript will not find the correct one.
Back to your problem:
We read the imagesize with the PHP function getimagesize() because it's implemented direct in PHP and does not require the GD image library or ImageMagick or something like that. There are two ways to use this function, one uses URLs the oher PATHnames. I dont know, if it's possible to prohibite the URL-way. If it is, that might be the reason, why you can't reach the icon on the Google server.
I can't test that from here, so you have to write a small testscript for your own.
But if it worked for you in version 0.10 it should also work in 0.14. We havent changed that.
I hope we find your problem
cheers
AFBelow
Logged
www.belowmarketing.
de
StephanLE
Offline
Posts: 136
Re: Google-Map module
«
Reply #32 on:
October 08, 2006, 04:58:52 PM »
Ich habe das Modul v0.14 installiert.
Nur beim deinstallieren über die Adminseite erhalte ich folgende Fehlermeldung:
Warning: dir(/var/www/vhosts/dsb-berleburg.de/httpdocs/CMSneu/media/gmap-markers) [function.dir]: failed to open dir: No such file or directory in /var/www/vhosts/test.de/httpdocs/CMSneu/framework/functions.php on line 51
Fatal error: Call to a member function read() on a non-object in /var/www/vhosts/test.de/httpdocs/CMSneu/framework/functions.php on line 52
Ich bekomme es auch nicht per FTP vom Server.
Wie kann ich das Modul deinstallieren?
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #33 on:
October 10, 2006, 11:28:43 AM »
Hallo Stephan,
The problem you're talking about is the function "rm_full_dir($directory)" of the framework. It sounds like php has not the rights to access the filestructure on your server, forbidden by php.ini "safe_mode" or disabled php-functions.
Do you have also problems with uninstalling other modules, coming with own directories, like FCKeditor?
I'm not sure, but I think, that's the way to look for solving your problem.
AFBelow
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #34 on:
October 10, 2006, 12:01:40 PM »
Hallo,
Quote
Ich bekomme es auch nicht per FTP vom Server.
Wie kann ich das Modul deinstallieren?
This has to do with different owners of the files. Files created (or uploaded) via WB admin interface are owned from the webserver (wwwrun or similar). The FTP user has no permissions to delete this files. So you only van uninstall this modul via WB admin interface.
Some hosters allow to change the ownership of the files with their interface. If this is possible, change the owner to the ftp-user, then you can delete the files with your ftp-client.
Matthias
Logged
macsmet
Offline
Posts: 230
Re: Google-Map module
«
Reply #35 on:
October 12, 2006, 02:34:34 PM »
Hi there,
I really love the Google Map module. I am trying to let the script go to 'maps.google.com/nl' in stead of 'maps.google.com/de'. How do I do this? And I also tried to translate the words in the popup where you can define your route. The words are in German and Iwant them in Dutch. Where do I change this?
I checked the language file but they are not in there.
Thanks!
MacSmet
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #36 on:
October 12, 2006, 02:58:45 PM »
Hi MacSmet,
no, the module isn't fully multilingual yet.
1. Where did you found a Server maps.google.com/de? I think we used Googles central map-cluster
http://maps.google.com/
... It's defined in functions.php (Line 58). It calls the server only for the map, so there are no language-settings needed for that.
2. You can change the popups in the files marker.php and routes.php. But it may cause troubles with the database I think. It depends on AJAX and I'm not sure wich keys and values it gets back from the popup. Just try it.
So far,
AFBelow
Logged
www.belowmarketing.
de
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #37 on:
October 12, 2006, 03:06:28 PM »
Hello,
Quote
And I also tried to translate the words in the popup where you can define your route. The words are in German and Iwant them in Dutch. Where do I change this?
I checked the language file but they are not in there.
The modul takes the language informations from the settings in WB. If you have at options or at settings of WB DE defined as language the module also take the DE languagefile from the languages dir in the modul.
To translate the modul to NL, make in the languages folder of the modul a copy of the EN.php, name it NL.php and translate the arrays.
Maybe you can share this file then here so we can include it in the modul.
Matthias
Logged
macsmet
Offline
Posts: 230
Re: Google-Map module
«
Reply #38 on:
October 13, 2006, 12:51:30 PM »
Thanks for the replies.
I am working on a Dutch translation right now.
I looked into the file marker.php and there I found the word 'Startadresse' and changed it into 'Vertrekadres' but that had no affect on the live webpage. The same for the other German words.
In the samefile (marker.php) it says: input type="hidden" name="hl" value="de". This is what makes it go to the german version of Google maps. When I change de URL (on the webpage) it gives a Dutch translation.
Changing this in marker.php had no effect. Is that impossible for now?
greetings,
MacSmet
Logged
Erik
Offline
Posts: 11
Re: Google-Map module
«
Reply #39 on:
December 26, 2006, 01:29:44 PM »
Can someone try and help me figure this out Ive tried following the step by step on the module directions and messed up my template really bad. Anyone have any moron proof instructions on gettting this to work. thx
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #40 on:
December 26, 2006, 02:48:58 PM »
Hello,
so what exactly have you done?
After installing the modul you find a big helpfile within the modul wicgh explains exactly how to integrate the modul in the template. Only make a new Page with type google map and hit the help in the first line.
Matthias
Logged
Erik
Offline
Posts: 11
Re: Google-Map module
«
Reply #41 on:
December 26, 2006, 09:53:09 PM »
I put these 2 lines of code into my lerontemplate index.php and when i did it messed up the menu to where none of the links would work. Im sorry but I dont know any code im a graphic artist. This is why i love wb most times as i dont have to know code to use it. Any help would be greatly appreciated.
<?php include(WB_PATH.'/modules/gmap/functions.php'); ?>
<?php gmap_doctype(); ?>
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #42 on:
December 27, 2006, 09:25:42 AM »
Hello,
Replace in the index.php of the lerontemplate this:
Code:
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
with this:
Code:
include(WB_PATH.'/modules/gmap/functions.php');
if(SHOW_GOOGLEMAP) {
gmap_doctype();
} else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<?php
}
?>
and this:
Code:
</head>
<body id="pagetop" class="en">
with this:
Code:
<?php gmap_setup
();
?>
</head>
<body
<?php gmap_bodytag
(
''
);
?>
id="pagetop" class="en">
Thats all
Matthias
Logged
jfclouti
Offline
Posts: 8
Re: Google-Map module
«
Reply #43 on:
January 03, 2007, 03:05:58 AM »
Hi,
anyone noticed that a the Google Map module seems to be incopatible with multiple content blocks?
Each time I tried to set up a new page with multiple content blocks (3), I can't set my blocks if one of them is of type "Google Map".
Thanks.
JF
Logged
afbelow
Offline
Posts: 43
Re: Google-Map module
«
Reply #44 on:
January 04, 2007, 12:16:31 PM »
Hi JF,
excuse, that you had to wait so long for an answer.
Can you give us some more details, I can't reproduce your problem. Here it seems to run also with multiple content blocks, but we have some problems to keep the map centered with multiple content blocks build within ajax environment.
thanks,
AFBelow
«
Last Edit: January 04, 2007, 01:23:40 PM by afbelow
»
Logged
www.belowmarketing.
de
krosty
Offline
Posts: 26
Google-Map error functions.php on line 31
«
Reply #45 on:
January 21, 2007, 11:11:34 AM »
Hi People,
i installed the google map module.
For my first problems i found a lot of tips who worked in this thread,
but for my last problem nothing will work.
i have on every Page in the las line this complete error
Fatal error: Cannot redeclare gmap_doctype() (previously declared in /www/htdocs/v074526/modules/gmap/functions.php:33) in /www/htdocs/v074526/modules/gmap/functions.php on line 31
I tried so much versions to declare the doctype of the other posts but notong worked,
i looked at other websites like the site of ruebenwurzel but i don't find my mistake.
I use the theme Landzilla an the google map 0.14.
here ist my code from index.php:
Quote
<?php include(WB_PATH.'/modules/gmap/functions.php'); ?>
<?php if(SHOW_GOOGLEMAP) {
gmap_doctype();
} else { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd
">
<html xmlns="
http://www.w3.org/1999/xhtml
"
xmlns:v="urn:schemas-microsoft-com:vml">
<?php } ?>
<head .....
Thanks for Help !!!
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #46 on:
January 21, 2007, 11:56:14 AM »
Hello,
earlier versions of the landzilla template have had a bug in the header. Please download the actually version from the addons and compare the header (and the beginning of body tag) with your template.
Matthias
Logged
krosty
Offline
Posts: 26
Re: Google-Map module
«
Reply #47 on:
January 22, 2007, 06:09:35 PM »
Hi ruebenwurzel,
I downloaded the landzilla from addons.websitebaker
.org
then i renamed it to for example krostyzilla and installed it
this theme ist version 1.1 my landzilla theme i use for googlemap is verison 2.6
but i cant remember where i got it from.
I tried your tip and compared the index.php of booth but the differences where
the google map codes an the format of the text (tabstops)
can it be the googlemap modul something in the gmap/functions.php
because he says he have there problems in line 31 / 33
if you want you can see it live at krosty.de
Thanks for more tips...
Krosty
Logged
ruebenwurzel
WebsiteBaker Org e.V.
Online
Posts: 7663
Re: Google-Map module
«
Reply #48 on:
January 22, 2007, 06:30:38 PM »
Hallo,
so sollte der Anfang der index.php des landzilla templates ausschauen:
Code:
<?php
include(
WB_PATH
.
'/modules/gmap/functions.php'
);
if(
SHOW_GOOGLEMAP
) {
gmap_doctype
();
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<?php
}
?>
<head>
<title>
<?php page_title
();
?>
</title>
<meta http-equiv="Content-Type" content="text/html; charset=
<?php
if(
defined
(
'DEFAULT_CHARSET'
)) { echo
DEFAULT_CHARSET
; } else { echo
'utf-8'
; }
?>
" />
<meta name="description" content="
<?php page_description
();
?>
" />
<meta name="keywords" content="
<?php page_keywords
();
?>
" />
<meta name="generator" content="websitebaker">
<link href="
<?php
echo
TEMPLATE_DIR
;
?>
/style.css" rel="stylesheet" type="text/css" media="screen" />
<?php gmap_setup
();
?>
</head>
<body
<?php gmap_bodytag
(
''
);
?>
>
<div id="container">
Bitte vergleiche. Danke
Matthias
Logged
krosty
Offline
Posts: 26
Re: Google-Map module
«
Reply #49 on:
January 22, 2007, 07:23:19 PM »
Hi,
hab genau deinen Code kopiert in die index.php des templates eingefügt,
ich habs schon so oft verglichen und wieder hab ich den gleichen fehler...
Ich weiß auch nicht mehr woran es liegen könnte und so tief bin ich dann in php auch wieder nicht drin
das einzigste was an der index noch nicht original ist,
was aber schon seit Tagen oder Monaten läuft ist das selbt eingebaute
<h2><?php echo"Ihre IP-Adresse lautet ";?></h2>
<?php echo ,$_SERVER['REMOTE_ADDR'];?>
unter
<?php show_menu(); ?>
<?php } ?>
also im menü
und dann eben noch
</br><?php get_modified_when(); ?></p></div>
hinter [WEBSITE_TITLE]'); ?> im footer.
ehrlich gesagt ist das auch nicht ganz so schlimm wer scrollt schon soweit runter
und funktionieren tut die Seite ja ansonsten komplett.
Danke Trotzdem !!
bin für alle Tips weiterhin offen.
Nein !!!!
Ich depp
ich hab weil ich das google map nicht zum laufenbekommen hatte
im Root in der index.php die zeile
include(WB_PATH.'/modules/gmap/functions.php');
schon drin
daher hat er versucht 2 mal den doctype zu setzen was ja auch dann laut meldung mit cannot redeclare doctype passt !
DANKE für ALLE Hilfe !
«
Last Edit: January 22, 2007, 07:41:04 PM by krosty
»
Logged
Pages:
1
[
2
]
3
4
...
7
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...