Google Maps for 2.2?

unpossible

Joined: 2007-02-03
Posts: 47
Posted: Mon, 2007-09-17 23:57

Hi Silicon`

From my understanding you were going to re-write the whole gallery module. I haven't updated my SVN in some time, but did you ever discover why the colored markers were not working? If you remember the issues a few of us were having.

Also, do you think routes would ever be in gallery maps? The feature is similar to custom maps on Google. It would be cool draw route lines and somehow marker my photo's. Maybe further integrate routes with the map albums.

Example http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=114728486237816942427.0004366111e47d642683e&ll=49.310631,-123.035975&spn=0.040346,0.080338&t=k&z=14&om=1

Thx!

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2007-09-18 00:19

Well, that's going to take a long time (rewrite). I never did find out why colored markers weren't working for certain users (i.e., you), but that's going to change significantly, as I mentioned.

Point-to-point routes are already in there, linking photos together by straight lines. However, I have a plan to allow adding static KML content to the map, so that would allow you to do what you want.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Wed, 2007-09-19 21:07

Hey Silicon, Maybe the marker colour bug is caused from a multi site installation. I've had a few other plugin problems because of my multi-site installation.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Wed, 2007-09-19 21:46

Could be. Check to make sure your multi-site is set up correctly. The URLs for the image markers are created using the Gallery2 library functions, so if everything is set up correctly, it *should* work (in theory... I don't fully understand multi-site). I don't have a multi-site set up for testing/debugging and I'm not exactly sure how to do it, especially on a local machine. I'll have to do a bit of research to figure out how to set it up.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Wed, 2007-09-19 22:02

I had no problems with the previous version of Maps, Do you have any idea what was re-coded in the latest version? Multi-site is setup correctly on my site I haven't had any issues with it.

Thanks!

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Wed, 2007-09-19 22:57

Okay, it was just an idea. Your other post about the tags module got me thinking that maybe the Maps have the same issue (style sheet or something). Termitenshort is the author of both modules. (Well, sort of. He's a maintainer of the Maps module and has contributed much code, but I don't think he started it.)

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Wed, 2007-09-19 23:17

It looks like we may have found the problem. He must of coded and missed support for multi site installations.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2007-09-25 19:28

Well it seems I need to take alook at this too :-)

I'm just back from a LOOOONG much needed vacation and I'll be starting to work on the map module this week-end again to hopefully release it to the grand public (even tho many people have switched to the svn version)

As for your problem unpossible, it may be an issue directly with your configuration and not the modules because my multi-instance works fine at least for the map module (I don't have a test tag module multi-instance yet) and the issue you're having is obviously the same on both module.

Could you please post your config file here for the multi-instance itself (strip out all passwords and sensitive information)

Thanks !
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Tue, 2007-09-25 23:25

Will do when I get home tonight. Thanks!

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Wed, 2007-09-26 00:51

<?php
/*
* $RCSfile: config.php-template,v $
*
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2006 Bharat Mediratta
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
*/

/*
* When display_errors is enabled, PHP errors are printed to the output.
* For production web sites, you're strongly encouraged to turn this feature off,
* and use error logging instead.
* During development, you should set the value to 1 to ensure that you notice PHP
* warnings and notices that are not covered in unit tests (e.g. template issues).
*/
@ini_set('display_errors', 0);

/*
* Prevent direct access to config.php.
*/
if (!isset($gallery) || !method_exists($gallery, 'setConfig')) {
exit;
}

/*
* As a security precaution, we limit access to Gallery's test suite
* to those people who know the password, below. Example:
*
* $gallery->setConfig('setup.password', 'A PASSWORD');
*
* Choose something random and enter it in plain text. You don't have to
* remember it because you can always refer to this file. You'll only be asked
* for this password when you run Gallery's lib/tools code. We don't provide a
* default password because we want you to choose one of your own (which
* lessens the chance that you'll get hacked).
*/
$gallery->setConfig('setup.password', '');

/*
* In order for Gallery to manage your data, you must provide it with
* a directory that it can write to. Gallery is a webserver application,
* so the directory that you create must be writeable by the
* webserver, not just by you.
*
* Create an empty directory anywhere you please. Gallery will fill this
* directory with its own files (that you shouldn't mess with). This directory
* can be anywhere on your filesystem. For security purposes, it's better
* if the directory is not accessible via your webserver (ie, it should
* not be in your DocumentRoot). If you *do* make it available via your
* web server then you probably won't have any security for your data files.
*
* Don't make this the same as your gallery directory!
*/
$gallery->setConfig('data.gallery.base', '/home/clock/public_html/gallerymania/g2data/');

/*
* Gallery can store its data in multiple different back ends. Currently we
* support MySQL, PostgreSQL and Oracle. Enter the hostname where your
* database lives, and the username and password you use to connect to it.
*
* You must specify the name of a database that already exists. Gallery will
* not create the database for you, because it's very difficult to do that in
* a reliable, database-neutral fashion. The user that you use should have
* the following permissions:
*
* SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER
*
* You must specify a table and column prefix. This is a few characters that
* is prepended to any table or column name to avoid conflicting with reserved
* words in the database or other tables you have in the same database. In
* fact, it's fine to let Gallery uses the same database as other applications
* (including other instances of Gallery itself); the prefix is enough
* to distinguish Gallery's tables from other applications.
*
* We provide some reasonable default prefixes below. If you modify these
* after Gallery has created its various tables, it will stop working until
* you modify it back.
*
* The possible database types are:
* mysql Standard MySQL
* mysqlt MySQL with transactions (3.23.34a and newer)
* postgres PostgreSQL 6.x (not rigorously tested)
* postgres7 PostgreSQL 7.x
* oci8po Oracle (9i and newer)
* db2 (EXPERIMENTAL!) IBM DB2 for Linux/UNIX/Windows, v8.2.2
*/
$storeConfig['type'] = 'mysql';
$storeConfig['hostname'] = '';
$storeConfig['database'] = '';
$storeConfig['username'] = '';
$storeConfig['password'] = '';
$storeConfig['tablePrefix'] = '';
$storeConfig['columnPrefix'] = '';
$storeConfig['usePersistentConnections'] = false;
$gallery->setConfig('storage.config', $storeConfig);

/*
* Put Gallery into debug mode. Useful for tracking down problems with the
* application. Not a good idea to leave it this way, though. Possible debug
* choices are: 'buffered', 'logged', 'immediate' or false. Don't forget to
* use the quotes for any value but false!
*
* If you choose 'immediate', you'll see debugging information as soon as
* Gallery generates it. This can be useful at times, but it'll screw up some
* parts of the application flow.
*
* If you choose 'buffered', Gallery will display debug information in a table
* as part of the application. You won't necessarily get *all* the debug
* information but the application should work normally.
*
* If you choose 'logged', you must also specify:
* $gallery->setDebugLogFile('/path/to/writeable/file');
* and all debug output will get printed into that file. You'll get all the
* debug output and the application will work normally.
*
* For best debugging output use this line:
*
* $gallery->setDebug('buffered');
*
*/
$gallery->setDebug(false);

/*
* Profiling mode. You can enable profiling for different parts of G2 to get an
* idea of what's fast and slow. Right now the only options are to enable SQL
* profiling:
*
* $gallery->setProfile(array('sql'));
*
*/
$gallery->setProfile(false);

/*
* Maintenance mode. You can disable access to the site for anyone but
* site administrators by setting this this flag. Set value below to:
* true (without quotes) - to use a basic notification page; themed
* view with admin login link when codebase is up to date, but a
* plain unstyled page when codebase has been updated but upgrader
* has not yet been run.
* url (with quotes) - provide a url where requests are redirected in
* either case described above. Example: '/maintenance.html'
*/
$gallery->setConfig('mode.maintenance', false);

/*
* Embedded mode. You can disable direct access to main.php (standalone G2)
* by setting this this flag to true.
*/
$gallery->setConfig('mode.embed.only', false);

/*
* Allow a particular IP address to access the session (it still must know the
* session id) even though it doesn't match the address/user agent that created
* the session. Put the address of validator.w3.org ('128.30.52.13') here to allow
* validation of non-public Gallery pages from the links at the bottom of the page.
*/
$gallery->setConfig('allowSessionAccess', false);

/*
* URL of Gallery codebase; required only for multisite install.
*/
$gallery->setConfig('galleryBaseUrl', 'http://www.lumiere.net/~clock/cgi-bin/gallerysrc/');

/*
* This setting can be used to override Gallery's auto-detection of the domain-name,
* protocol (http/https), URL path, and of the file & query string.
* Most users can leave this empty. If the server is misconfigured or for very special
* setups, this setting can be quite handy.
* Examples (the positions of the slashes ('/') are important):
* override the path: $gallery->setConfig('baseUri', '/another/path/');
* override the host + path: $gallery->setConfig('baseUri', 'example.com/gallery2/');
* override the protocol + host + path + file:
* $gallery->setConfig('baseUri', 'https://example.com:8080/gallery2/index.php');
*/
$gallery->setConfig('baseUri', '');

?>

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-09-27 15:55

term, I think it is a multi site problem. Whatever code you have updated in the SVN changed something. I did not have this problem with earlier version of Maps.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2007-09-28 01:12

Well, this seemed to be configured properly but then again, I went to your Map page (http://www.gallerymania.net/main.php?g2_view=map.ShowMap) and seems perfectly fine if you ask me.

What issue are you having exactly ?

Let me know !
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Fri, 2007-09-28 23:07

The problem is that I cannot change any marker colours from the default yellow. Even when I edit album -> google map -> Colours. I can change the setting to any colour and it will stil use the default setting. I did not have this in the previous version of Maps.

Albums and photo markers have the same problem

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2007-09-29 01:35

Alright thanks for the info I'll take a look this week end like I said ^^
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2007-09-30 01:37

Alright just to keep you posted, the current SVN version have a few bugs related to the item colors (I found 3 so far but I know there are more since it's absolutely not working for me anymore)

When i get the all thing straighten up I'll commit to svn and ask you to test the changes.

Thanks for your patience ^^
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2007-09-30 13:54

unpossible,

I made an update to the SVN, please verify that it works for you as well. Also, would you mind giving me access to your gallery before you do svn update (pm me some access), I need to take a look at making a upgrade task that will cleanup behind me ^^

Thanks !
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Sun, 2007-09-30 17:35

Termitenshort,

Thanks for collapsing the various color fields to a single "Color". That's been bugging me for a while and it's on my list to fix, but now I don't have to... Sorry, I've been taking a break from significant coding on this project for a while, too. I just haven't had the break at work that I'd been expecting, plus I've been working on some new projects/hobbies (hint: I finally got my own GPSr).

Anyway, glad to have you back!

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Sun, 2007-09-30 21:08

Term: Sent msg. thanks!

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Sun, 2007-09-30 22:17

Sorry Terminshort in my enthusiasm I accidentally updated the module, I didn't realize that the SVN automatically updates without doing so in the admin menu. :(

It works! although now i have two options to change colour.

GPS
Colors
ZoomLevel
GELookAt
Color

(colours option does nothing, while color fixes the problem).

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2007-09-30 23:23
unpossible wrote:
Sorry Terminshort in my enthusiasm I accidentally updated the module, I didn't realize that the SVN automatically updates without doing so in the admin menu. :(

It works! although now i have two options to change colour.

GPS
Colors
ZoomLevel
GELookAt
Color

(colors option does nothing, while color fixes the problem).

Yep, that what I suspected hence the reason for asking access to your gallery, I need to clean this up in the upgrade so that others don't get that. ^^

Thanks for the PM, I'll get this done tonight and I may be able to release FINALLY next week-end.

We'll see ^^
-------------------------
The Termite - :-) - http://www.termitenshort.com/

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Mon, 2007-10-01 03:06

Great, thanks for the dedication. You are the best!