Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 02:45:53 PM

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.
149647 Posts in 21100 Topics by 7539 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: 1 ... 3 4 [5] 6 7   Go Down
Print
Author Topic: Google-Map module  (Read 50304 times)
aldus

Offline Offline

Posts: 1238


« Reply #100 on: August 10, 2008, 04:08:25 PM »

@casi

Schau mal hier ...
http://www.websitebaker2.org/forum/index.php/topic,10656.0.html

Gruß
Aldus
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #101 on: November 19, 2008, 02:28:24 PM »

Hello,

due to the fact that i use this modul on a few pages i decided to fix some issues. The modul now install and uninstalls fine also the output is a valide code.

Changelog:
  • Added: Added fixes from Aldus in funtions.php and markerdefinitions.p hp
  • Modified: Link to API-Key now goes to German Google page
  • Fixed: Replaced all German "Umlauts" with HTML-entities
  • Added: Added some missing Language-Variables
  • Fixed: Escaped all database Queries (hope i forgot none)
  • Added: Added default index.php to all folders to prevent directory spoofing
  • Added: Added default values to add.php to prevent E_ALL notices in modify.php
  • Added: Changed all copyright notices now includes 2008
  • Fixed: Fixed a lot of E_ALL notices (mostly undefined varibles)
  • Fixed: Replaced some "&" with "&" to get valide output code
  • Added: Added ini_set to view.php for valid SESSION_ID Separator
  • Changed: Changed DOCTYPE from Strict to Transitional
  • Fixed: Fixed install and uninstall script

The backend is basically written for the use on german pages. To make the backend fully multilingual is on the todo list for the nextr version.

Have fun

Matthias

Edit:
Newer version some posts below.
« Last Edit: January 09, 2009, 01:04:13 PM by ruebenwurzel » Logged
machines

Offline Offline

Posts: 12


« Reply #102 on: December 08, 2008, 02:15:33 PM »

hello ruebenwurzel,

first of all ... great module and very good work.

i am just trying to use the module with a template based on "Andreas01"
and there the maps are not displayed properly.

i modified the template as described in the help, but when i try to use
the "G_HYBRID_MAP" atrribute only the map is displayed.

you can see it here: http://wb-demo.machines.de/pages/anfahrt.php

when i use another template (leron for example) it works fine.

so i tried to setup a html-page using only the code which google suggests
for testing ... and the hybrid-function will not work.

is there any idea for me ? thanks for your help.


greetings marco.
Logged
CyberDyne

Offline Offline

Posts: 155


« Reply #103 on: December 09, 2008, 04:20:35 PM »

Hello,
due to the fact that i use this modul on a few pages i decided to fix some issues. The modul now install and uninstalls fine also the output is a valide code.
...
Hello,
this modul is absolut great, works fine, but I have one problem. If I define a marker from the list, I only can see the shadow of this marker on the site, not the marker itself (I tested this with several markers)
What's wrong, did I make a mistake?

Greetings,
Klaus
« Last Edit: December 12, 2008, 02:23:25 PM by CyberDyne » Logged
CyberDyne

Offline Offline

Posts: 155


« Reply #104 on: December 12, 2008, 02:25:04 PM »

Hello,
I've tested now googlemaps on an other site (with an other provider), markers works perfect. So I compare both codes and the section where the markers are defined looks different.
The site without markers ...
Code:
// setting up different markersizes
  var userIcon0000 = new GIcon();
        userIcon0000.iconSize=new GSize(0,0);
  userIcon0000.iconAnchor=new GPoint(0,0);
  userIcon0000.infoWindowAnchor=new GPoint(0,2);
Site with markers ...
Code:
// setting up different markersizes
  var userIcon32325932 = new GIcon();
        userIcon32325932.iconSize=new GSize(32,32);
  userIcon32325932.shadowSize=new GSize(59,32);
  userIcon32325932.iconAnchor=new GPoint(16,32);
  userIcon32325932.infoWindowAnchor=new GPoint(16,2);

It seems, that the definition of the markertype doesn't work.

Any idea what could be wrong?
Logged
FrankH

Offline Offline

Posts: 735


WWW
« Reply #105 on: December 25, 2008, 05:36:45 PM »

Ich wollte das Modul gerade mal ausprobieren:

Notice: Use of undefined constant GMAP_MARKER_SEPERAT ED - assumed 'GMAP_MARKER_SEPERAT ED' in /var/www/html/modules/gmap/view.php on line 40

Was mache ich falsch?
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #106 on: December 26, 2008, 06:40:44 AM »

Hallo,

@machines
I use the google map also on a andreas01 based template. Andreas01 has special img styles in the css so i think there must be the issue.

@susigross
wie ist deine PHP Error Reporting Einstellung? Ich vermute mal die steht auf E_All. Mit E_none sollte diese Meldung dann verschwunden sein.

Damit ist zwar nicht die Ursache (eine undefinierte Konstante=schlecht programmiert) behoben, aber die Meldung, die lediglich ein Hinweis auf den Fehler ist, sollte nicht mehr erscheinen.

Frohe Weihnachten
Matthias
Logged
FrankH

Offline Offline

Posts: 735


WWW
« Reply #107 on: December 27, 2008, 02:59:49 PM »


@susigross
wie ist deine PHP Error Reporting Einstellung? Ich vermute mal die steht auf E_All. Mit E_none sollte diese Meldung dann verschwunden sein.


So funktioniert es:

$nPrev1 = error_reporting(E_ERROR);
if (defined(GMAP_MARKER_SEPERAT ED)) {
    $marker_seperated = explode('//++//', GMAP_MARKER_SEPERAT ED);
    for ($x=0; $x<count($marker_seperated); $x++){
        echo '<img src="'.$marker_seperated[$x].'" alt="google_map_marker" style="display:none" />';
    }
}
error_reporting($nPrev1);

E_NONE kennt mein WB nicht, das sagt es zumindest, wenn ich E_NONE statt E_ERROR hinschreibe.
Geht das oben auch einfacher (außer global das error_reporting zu reduzieren)?
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #108 on: December 27, 2008, 05:20:08 PM »

Hallo,

Quote
E_NONE kennt mein WB nicht

Welche WB Version setzt du denn ein?

Matthias
Logged
FrankH

Offline Offline

Posts: 735


WWW
« Reply #109 on: December 27, 2008, 06:35:41 PM »

Die 2.7
Logged

Ochs und Esel in ihrem Lauf
halt ich leider auch nicht auf
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #110 on: December 27, 2008, 07:52:28 PM »

Hallo,

Und da kannst du bei den erweiterten Optionen kein "E_NONE" einstellen? Du nutzt aber nicht zufällig noch irgendeine alte fehlerhafte RC version oder?

Matthias
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #111 on: December 28, 2008, 08:42:12 AM »

Hello,

fixed the E_ALL notice in view.php. Basically the issue was that the Constante was not escaped. (should be 'GMAP_MARKER_SEPERAT ED' instead of GMAP_MARKER_SEPERAT ED).

Attached you find the new fixed version 0.16.

Have fun

Matthias

Edit:
Newer Version some posts below.
« Last Edit: January 09, 2009, 01:03:24 PM by ruebenwurzel » Logged
Mr._T

Offline Offline

Posts: 36


« Reply #112 on: January 09, 2009, 12:21:09 AM »

Hi,

just installed the latest version of this module and have some strange things going on.

First of all, I installed WB locally using XAMPP. The installation of the module went fine, also the implementation of the code in the template was pretty much straight forward, accoring to the original site.

What's strange is, that whenever I define a marker, the card isn't displayed anymore. I then delete this row using phpMyAdmin and I see the card, well, of course without any marker. So, how do I define a working marker?

Next, whenever editing/adding a marker in this ugly popup window, I always get an error message when saving:
Code:
Notice: Use of undefined constant iconv - assumed 'iconv' in /Applications/xampp/xamppfiles/htdocs/fribi/modules/gmap/marker.php on line 63

I also would like to know what I should/could edit in the section window. The description is very lose for that, for example, what would tabbedInfoWindow mean? Any hints or working examples for that?

Many thanks in advance for any advice, regards, Thomas
Logged
tricade

Offline Offline

Posts: 1


« Reply #113 on: January 09, 2009, 12:28:50 PM »

http://illectric-beats.de/pages/test-map.php

i install the 0.16....i see nothing ;(


EDIT: Ok i see... i must edit the template Smiley
« Last Edit: January 09, 2009, 12:51:45 PM by tricade » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #114 on: January 09, 2009, 01:02:18 PM »

Hello,

attached you find version 0.17 wich fixes the undefined constant in marker.php.

@mr_T
If you look at the help file wich comes with this module you will see at the button of the page that there needs some fixing of markers and also the Ajax scripts for to add and delete markers. Unfortunately the original modul developper stopped developping this modul. It never reached the status of final. Hope there is someone out in the wild who fix this.  grin

Matthias

Edit:
Newer version some posts below
« Last Edit: January 16, 2009, 07:13:06 PM by ruebenwurzel » Logged
Chaploo
Guest
« Reply #115 on: January 16, 2009, 03:29:19 PM »

Hi Matthias,

it's great that you took care of the gmap module, thanks a lot!

I just installed v 0.17 on a 2.7 WB system, did the template changes and everything works fine until I hit "Marker editieren": I get

Parse error: syntax error, unexpected '(' in /www/htdocs/w00a7aac/modules/gmap/marker.php on line 64

Do you know what's wrong here?

Regards
Jochen
Logged
aldus

Offline Offline

Posts: 1238


« Reply #116 on: January 16, 2009, 07:04:46 PM »

Ups ... function call in single quotes ...

Code:
<?php // ignore this line ...
$new 'iconv'("UTF-8""ISO-8859-1"$new);

should be like this:
Code:
<?php // ignore this line
$new iconv("UTF-8""ISO-8859-1"$new);

There could be more errors like this ...

Regards
Aldus
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #117 on: January 16, 2009, 07:08:35 PM »

Hello,

ooops that was my fault added this issue in version 0.17. Attached you find the fixed version 0.18.

Matthias

Edit:
newer Version some posts below
« Last Edit: January 17, 2009, 09:54:39 AM by ruebenwurzel » Logged
Chaploo
Guest
« Reply #118 on: January 16, 2009, 07:51:59 PM »

Thanks for the new version! Now I get to the marker editieren page.  smiley But after entering a longitude number and hitting save I get:

Notice: Undefined index: pointer_color in /www/htdocs/w00a7aac/modules/gmap/marker.php on line 89

Notice: Undefined index: pointer_typ in /www/htdocs/w00a7aac/modules/gmap/marker.php on line 92

Notice: Undefined index: lati in /www/htdocs/w00a7aac/modules/gmap/marker.php on line 95

Notice: Undefined index: infowindow in /www/htdocs/w00a7aac/modules/gmap/marker.php on line 95

After reopening the marker edit page, the Warnings are gone ... as well as the map on the frontend unfortunately.  sad

Regards
Jochen
« Last Edit: January 16, 2009, 07:55:19 PM by Chaploo » Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #119 on: January 17, 2009, 08:06:57 AM »

Hello,

Please read the help file wich comes with this modul. I already posted it 3 posts above and you can read it in the help file that the marker part needs to be fixed. For the moment this only can be fixed by manually deleting the marker in the database.

Fixed a small issue with a hardcoded charset (thanks to aldus). Attached you find version 0.19

Matthias
« Last Edit: January 17, 2009, 09:58:06 AM by ruebenwurzel » Logged
Chaploo
Guest
« Reply #120 on: January 17, 2009, 09:42:16 PM »

Hi,

so how did you get it working on your family homepage? Is there any way to get the map displayed AND have a marker on it?

Regards
Jochen
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Online Online

Posts: 7663



WWW
« Reply #121 on: January 18, 2009, 07:58:27 AM »

Hello,

Quote
so how did you get it working on your family homepage? Is there any way to get the map displayed AND have a marker on it?

As long as you enter all infos and choose a default marker it works. But if you make a wrong entry the page doesn't work anymore. Sometimes you can edit then the marker definitions but you cannot delete a whole definition. This only works with manually deleting it in the database.

Matthias
Logged
Gaertner

Offline Offline

Posts: 25


« Reply #122 on: February 16, 2009, 09:49:12 PM »

Please read the help file wich comes with this modul. I already posted it 3 posts above and you can read it in the help file that the marker part needs to be fixed. For the moment this only can be fixed by manually deleting the marker in the database.

Hello

I cannot find a help file in this module. So I have two questions: Where in the SQL Database I can find the marker path? And, wich part has to be deleted and/or changed?
A small snippet would be very helpfully.

Thanks
Logged
machines

Offline Offline

Posts: 12


« Reply #123 on: February 27, 2009, 01:46:06 PM »

hello ruebenwurzel,

i am still trying to setup the gmap-module in my andreas based template.

i just installed the actual version (0.19) and now i get exact no output ...

as answer you wrote before that there is possibly something wrong with
the img-tag in the css-file. can you give me a hint ?

now i only get the following output when i try to open the site:

Quote
xxxxx    

</div>

           
    <div id="contentwide">
        <a id="wb_section_36" name="wb_section_36"></a><div id="map" style="width: 250px; height: 250px"></div>    </div>

    <div id="footer">

xxxxx

thanks for your help.


greetings marco.
Logged
abidan

Offline Offline

Posts: 102


« Reply #124 on: March 02, 2009, 12:35:45 PM »

Hi Guys

Hoping someone can help me with this problem.

I installed google map module on a site i am developing for a client and it didnt seem to want to work. The map simply did not show. Then all of a sudden it started working for a time. Now its stopped again same symptoms? I get no errors just a blank space where the map should be? Can anyone help by telling me what is wrong?

Here is the URL http://tjbodyrocks.awardspace.co.uk/pages/find-us.php

Thanks in advance
Logged
Pages: 1 ... 3 4 [5] 6 7   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!