Google Maps + Gallery

galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 07:21

LFrank,
You have a PM. I'll be back tomorrow (this evening for you).

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 07:23
Mozambique wrote:
Yes, many thanks to Termitenshort & galmoid. 0.4.6d is up running with filters!!

It's -all- Termite . . . but thanks for the thanks.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-12-21 08:26

galmoid, I stay tuned ... and prepare the next steps

Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de

 
TheGoOse
TheGoOse's picture

Joined: 2002-12-31
Posts: 50
Posted: Wed, 2005-12-21 09:26
Termitenshort wrote:
In the base gallery album theme definition. This is where it's added :-) (it has to be for some reason)

I've got it! Thx :)

Termitenshort wrote:
Well, it does take a little while. I should be submitting the new .po file tonight coz it would be usefull to translate the most up-to-date :)

OK!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2005-12-21 14:36
Mozambique wrote:
What about a zoom out button (zooming out and center to default)in controls?

Keep up the good work ;)

I don't understand. There is a zoom out button as well as the 'return to last result' button as well.

Can you give me a example or a walk-through.

Dave

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 16:15

I got 2 problems

1: When i upgrade to 0.4.6 and above my map does not work anymore. It just says "Loading, please wait...", so i think my map-key works.

2: When i try to save my theme settings i get this error:

Notice: Undefined offset: 1 in c:\html\gallery2\modules\core\classes\GalleryUtilities.class on line 176

Warning: Cannot modify header information - headers already sent by (output started at c:\html\gallery2\modules\core\classes\GalleryUtilities.class:176) in c:\html\gallery2\modules\core\classes\GalleryPhpVm.class on line 124

//lond

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 16:25
lond wrote:
I got 2 problems

1: When i upgrade to 0.4.6 and above my map does not work anymore. It just says "Loading, please wait...", so i think my map-key works.

2: When i try to save my theme settings i get this error:

Notice: Undefined offset: 1 in c:\html\gallery2\modules\core\classes\GalleryUtilities.class on line 176

Warning: Cannot modify header information - headers already sent by (output started at c:\html\gallery2\modules\core\classes\GalleryUtilities.class:176) in c:\html\gallery2\modules\core\classes\GalleryPhpVm.class on line 124

//lond

Can you give a link to your map so we can check on it :)

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 16:34
 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 16:49

Termitenshort: you got a new message.

//lond

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 16:49

it seems there is a problem with your routes. It's possible you had routes before and because of the new way routes are represented (a better way, I swear) you would have to recreate them :(

let me know if that fixes your issue.

See you

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 17:07
lond wrote:
Termitenshort: you got a new message.

//lond

Sweeeet I love new mesaages :)

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 17:08

Working!!!!

Thx Termitenshort!

//lond

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 17:16
lond wrote:
Working!!!!

Thx Termitenshort!

//lond

You're very welcome. btw ... some of your picture seem to be oriented the wrong way, is that normal ?

 
adamsjd

Joined: 2005-04-02
Posts: 21
Posted: Wed, 2005-12-21 17:35

The projection page states that testing is currently being done in an embeded environment. Has anyone documented (preferably on the projection page) what needs to be done to have the Google Map Module work in an embeded G2 installation?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 18:17

LFrank,
See PM.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-12-21 18:36

Galmoid,

wow - great - perfect, how did you make this ?????? That's marvelous - it works perfect.
May I ask what was wrong on my setup?

Many, Many Thanks,

Lutz

Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-12-21 18:39

galmoid - about "Item 6" ... can you point me to it (no idea how to locate it - can you send me a link to it :)

Hmm, the only idem_id=6 I can locate is the root of my Gallery and should point to my location (the default center of my map at 8.0859375, 47.81315451752768) - is it this?

Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 18:50
LFrank wrote:
galmoid - about "Item 6" ...

See PM.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 18:56
adamsjd wrote:
The projection page states that testing is currently being done in an embeded environment. Has anyone documented (preferably on the projection page) what needs to be done to have the Google Map Module work in an embeded G2 installation?

well, there are users using the module in embedded mode (wp and mambo for sure) and it works correctly. Are you having any specific issue we can assist with ?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 19:16

LFrank,
See PM.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 19:21

galmoid, Is the problem that LFrank has is relatd to the module or something completly unrelated ?
Can we get a bit more details :)

/me very curious
-------------------------
The Termite :-)

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-12-21 19:26

Termitenshort, as I understood, there was an issue with my map entry on the root-gallery.
I'm absolutely impressed on the job galmoid did - wow ... it looks like'm now operating back on 4.6d without issues !

Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 19:27
Termitenshort wrote:
Is the problem that LFrank has...

Patience is a virtue. :-)

I am awaiting final word from LFrank after I put everything
back to a raw 0.4.6d (I assume that is what I was working with)
insatllation to confirm it is still working. I fully intended to report to you (and here) what my findings are.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 19:39

LFranks problem:

After installing 0.4.6(up to d) attempts to access The Map resulted in
nothing more that a completely blank page. No errors, no nothing.
I went directly to ShowMap.inc and placed some strategic print
statements in ShowMap.inc. First, of course, at the top of the
file just to see that ShowMap.inc was actually executing. It was.
I then began to narrow where in ShowMap there might be a problem.
At one point in ShoMap's execution my print statements stopped
producing any output. Eventually I put a print statement in that
printed each item id number and found that one of them caused
execution to stop. This item # turned out to be, as LFrank pointed
out above, the root gallery album. LFrank removed the Google Map
information on this item and everything worked.

I don't know if Google Map information (coordinates, etc.) is
an acceptable thing on the gallery root album or not. If it is
not, I suspect some sort of detection needs to be implemented.

It was fun to figure it out.

LFrank, I have disconnected and you can return your system
(permission, accounts, etc.) back to your usual configuration.
Thank You for workinmg with me on this. Have a great night.

 
LFrank

Joined: 2005-02-19
Posts: 1023
Posted: Wed, 2005-12-21 19:50

Galmoid, the pleasure was on my side :)
Best regards from Europe to the warm California (and cold Chicago (my nephew lives there too ;))
Have a good day ;)

Gallery version=2.0.2+ core 1.0.10
PHP version=5.1.1 apache2handler
Webserver=Apache/2.2.0 (Win32) DAV/2 PHP/5.1.1 mod_ssl/2.2.0 OpenSSL/0.9.8a mod_perl/2.0.2 Perl/v5.8.7
Database=mysql 5.0.16-nt-log
Gallery-URL=http://lf-photodesign.de

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 20:03

The EXIF-module in g1 did autorotate, EXIF-module in g2 don't.

And i haven't got time to do it manual yet. :)

//lond

 
lond
lond's picture

Joined: 2005-06-27
Posts: 25
Posted: Wed, 2005-12-21 20:06

I notise that the edit funktion of "google map key profile" is missing in 0.4.6d.

//lond

 
Mozambique

Joined: 2005-11-29
Posts: 108
Posted: Wed, 2005-12-21 20:39
floridave wrote:
I don't understand. There is a zoom out button as well as the 'return to last result' button as well.

Can you give me a example or a walk-through.

Dave

What I'm thinking about, is a 'return to default' button. If Default Zoom In Level (infowindow) is set to 2, you have to click several times on zoom out button to get back to default ex. zoom level 15.
I'm now using the Stock-Large with the 'slider' to ease zooming

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 21:01
lond wrote:
I notise that the edit funktion of "google map key profile" is missing in 0.4.6d.

//lond

I just saw that :( I wonder where it went ... I'll try to fix it today but I can't garantee it

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 21:41

More progress on the tracklog ....

After a lot of optimization and memory usage control I successfully managed to trace a limited version of THE Mother !!!

Number of Polylines: 393 - Number of Points: 118080 , yes you read it right ... almost 119K points. FF crashed (still) but IE gave me 1 message asking if I wanted to cancel the script running.

Of course I said NO and the script continued on running. Total running time 1 minute and 30 secondes !!!!

I think it is safe to say that I'm getting close :-)
-------------------------
The Termite :-)

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 21:52
Termitenshort wrote:
More progress on the tracklog ....

Termite is obsessed (completely consumed) :-) . . . much to our benefit!

Have you tried the XMaps stuff yet?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2005-12-21 21:57
Mozambique wrote:
What I'm thinking about, is a 'return to default' button. If Default Zoom In Level (infowindow) is set to 2, you have to click several times on zoom out button to get back to default ex. zoom level 15.
I'm now using the Stock-Large with the 'slider' to ease zooming

So this button would be on the map or in the info window? Or both?
Should this button/link take the user to just the default zoom at the same coordinates or the push pin coordinates?
Should I change the behavior of the middle button to "go to default zoom and location"?

Lots of ways to do this I just want the correct behavior.

Dave

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Wed, 2005-12-21 21:58
galmoid wrote:
Quote:
More progress on the tracklog ....

Termite is obsessed (completely consumed) :-) . . . much to our benefit!

Have you tried the XMaps stuff yet?

yes I have. it permits to do a much faster tracing but think it's using a bit more memory (which seems to be the main driver for the fail attempts before that :))

Also the Mother managed to crash topofusion several times :). I still haven't figure ou how to reduce the amount of point using that tool, can you help me out with that ?

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 22:04
floridave wrote:
... Lots of ways to do this I just want the correct behavior.

Too much for my pea brain; but, history with a back button so,
after drilling down and zooming in through grouped markers,
one could click the button and step back through the drilling
history. Maybe it is not even possible; but, one can always
dream.

 
galmoid

Joined: 2005-11-07
Posts: 364
Posted: Wed, 2005-12-21 22:23
Termitenshort wrote:
I still haven't figure ou how to reduce the amount of point using that tool, can you help me out with that ?

When you have the track up in TopoFusion (I think it would be
in red?), using the 'hand' tool right click on the track. The
track should change color and a popup menu will appear. Select
Spline/Simplify Track and you'll get a dialog box allowing you
to enter the number of points to reduce to.
You're right, even TopoFusion is stressed by The Mother.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2005-12-21 23:17
galmoid wrote:
Too much for my pea brain; but, history with a back button so,
after drilling down and zooming in through grouped markers,
one could click the button and step back through the drilling
history. Maybe it is not even possible; but, one can always
dream.

We have the "filter" location that we could go back to.
I can't think of a way to step back a few zoom levels other than perhaps the level and location that brought you to the zoom level you get to when you press a push pin/group marker.

I can make a link/button that would take you to the default zoom level that is set in the config...or add yet another config option for a 'zoom out to' level, as we have for the 'zoom to'.
Perhaps the behavior of the middle button is not what the user(s) expect? We can change that button to go to the default location as set in the admin page. I think that is what a user might expect.

I guess I am asking for a user story. With step by steps as to what would be done/expected.

Dave

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 00:32
galmoid wrote:
Quote:
I still haven't figure ou how to reduce the amount of point using that tool, can you help me out with that ?

When you have the track up in TopoFusion (I think it would be
in red?), using the 'hand' tool right click on the track. The
track should change color and a popup menu will appear. Select
Spline/Simplify Track and you'll get a dialog box allowing you
to enter the number of points to reduce to.
You're right, even TopoFusion is stressed by The Mother.

Sweet thanks man. I'm gonna create Simplified version at 20k, 30k, 50k, etc ... and see where the limit is :-)

There is a point I'm sure where it's usuable and pretty fast and very accurate :)

Stay tuned....

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 00:48
galmoid wrote:
LFranks problem:

Fixed it :-)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 00:57

Found another buf and fixed it too:

- The Size of the MarkerSet selected for the Album wasn't correctly populated (it was using the same as the Markers).

These 2 bugs plus the absence of EDIT MAP KEY button, plus Edit removing the items (routes, filters, mapkeys) will be fixed and posted tonight. Right after I will post the new .po files for translation :-)

See you later
-------------------------
The Termite :-)

 
dotnature
dotnature's picture

Joined: 2005-10-26
Posts: 224
Posted: Thu, 2005-12-22 04:34

I havent seen The Mother data but does it use the default 14 decimal points for long/lat that the map uses?

 
Radley

Joined: 2005-12-22
Posts: 6
Posted: Thu, 2005-12-22 04:47

This may sounds like an inane question, but i installed the Google Map module and everything seems fine. But when I set up an album, the marker appears on the Google Map...but there is no balloon and no apparent navigation to the particular album from the map. What am I doing wrong?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 04:59
dotnature wrote:
I havent seen The Mother data but does it use the default 14 decimal points for long/lat that the map uses?

Actually it only uses 6 decimals :). I was thinking of reducint that to optimize the file from within PHP but it would be too big of an approximation ... :)

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 05:01
Radley wrote:
This may sounds like an inane question, but i installed the Google Map module and everything seems fine. But when I set up an album, the marker appears on the Google Map...but there is no balloon and no apparent navigation to the particular album from the map. What am I doing wrong?

that sounds weird ... ddo you have any error in the javascript console ? Which template for the infowindow are you using ?

Can we have a link to the map maybe to troubleshoot ?

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2005-12-22 05:05

Here is Version 0.4.7:

Fixes for the latest bugs found ans also integrated the changes from floridave.

Floridave, I have made a couple changes to the code as I found some thing weren't working in here. Nothing major but it's always better to get them solved :-)

Enjoy !

EDIT: version is 0.4.7 because there is feature added :-)
-------------------------
The Termite :-)

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Thu, 2005-12-22 05:42

Termite,

I get a Page not found when trying to download 0.4.6e.zip.
Anyone else?

EDIT: Never mind. Guess I was trying to download at same time you were uploading 0.4.7.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-12-22 05:54
floridave wrote:
(termite: you might want to verify the correct error checking and defaults how they are set ( I might have screwed up))

Termitenshort wrote:
Floridave, I have made a couple changes to the code as I found some thing weren't working in here. Nothing major but it's always better to get them solved :-)

Thanks I knew it was wrong and I let the better man fix it! :-)

Onto my next project.....Weather in the info window. I have data from http://xoap.weather.com/ in a XML format ( I am now learning XML :-) )
It looks like this http://langleycom.com/weather/index.php?display=cd&inst=1 and comes from this data:
http://langleycom.com/weather/wxCache/81007cc.xml
but it requires a town name. Is there some 'reverce' geocoding code about? I want to pass a lat, long and get a city/town or airport. Unless sombody knows how to pass lat/long to weather.com?

Dave

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Thu, 2005-12-22 06:25

Upgraded from 0.4.6d to 0.4.7 -- Lookin good :-).
Using the map control type "Full_Orange" looks great in FF and IE6 but... my sidebar for Album & Photo Legend is messed up. Don't know why. Switching to Stock Large and all is fine.
See attached screenshot.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2005-12-22 06:47

If you view the source does the down arrows for the dropdown have a height and width tag?
if not then:
in Legend.tpl look for src="{$map.gallerybase}modules/map/images/down.png"/>
and change to
src="{$map.gallerybase}modules/map/images/down.png" height="16" width="15"/>
there will be 2 places.

Dave

EDIT: you will have to add the height and width to the "group" icon as well.

__________________________________
Gallery Frames / Mods || G1 Test Gallery

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Thu, 2005-12-22 07:18
floridave wrote:
If you view the source does the down arrows for the dropdown have a height and width tag?
if not then:
in Legend.tpl look for src="{$map.gallerybase}modules/map/images/down.png"/>
and change to
src="{$map.gallerybase}modules/map/images/down.png" height="16" width="15"/>
there will be 2 places.

Dave

EDIT: you will have to add the height and width to the "group" icon as well.

__________________________________
Gallery Frames / Mods || G1 Test Gallery

Thanks! That fixed it.

 
swordfish
swordfish's picture

Joined: 2004-10-01
Posts: 388
Posted: Thu, 2005-12-22 07:19

Floridave,

Looking forward to your next project. Just a suggestion but have you checked out other weather sites?
Here's a few:
http://netweather.accuweather.com/adcbin/netweather/netweather_index.asp?
http://labs.weatherbug.com/labs/
http://www.weather.gov/xml/ - may not be what you're looking for but appears to use Lat/Long.