Gallery Google Maps?

unpossible

Joined: 2007-02-03
Posts: 47
Posted: Mon, 2007-07-23 23:03

Hey guys what is the status of the google maps module for Gallery 2.2? I am waiting in anticipation.

I saw a cool feature that would work really well with the module. Markers with thumbnail photo's.
Example : http://maps.pixagogo.com/maps/9026065218

I was also wondering how to integrate the map on to an album like this
(In particular the very bottom)
http://corneveaux.com/gallery2/v/Fish_Creek/

Thanks guys.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2007-07-24 03:51

Hello :-)

Well I have been horribly busy in te past months so it's been hard to finish up for this release, but I see a light at the end of that tunnel so hand in there it's coming ^^

This feature does look cool ! Thanks :-)

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

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2007-07-24 13:46

If you want to download the SVN version you can have the mini map block now. Otherwise, as Termitenshort said, there's a light at the end of the tunnel. I've been slowly working away at fixing outstanding bugs but as our "real-life" workload lightens we should be able to publish a release soon.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Tue, 2007-07-24 15:52

Thanks for the response, I have tried the SVN but unfortunately it is much too buggy to use.

I eagerly await the final release :p

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2007-07-24 17:09

Can you tell me what bugs you encountered? Because the SVN version has far fewer bugs than the 0.5.1d version did. The final release will be very close to what is in SVN now, so if you're having issues with the SVN copy, it's not likely to be fixed in the release unless we know about the bugs.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Tue, 2007-07-24 21:58

Mainly the group markers would be invisible, but show just a shadow. I tried every single group marker and had the same result.

I also could not change marker colours.

Other than that I could not enable route feature without having a security violation.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2007-07-24 22:29

The first two issues are known and were fixed. I don't know about the third issue.

Would you mind giving it another shot and let us know what issues you're encountering with the latest ? This will ultimately help us making this coming release much better and keep more time available for the one after that ^^

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

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Tue, 2007-07-24 22:51

Were those issues fixed recently? I just tried to use the svn last week.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Wed, 2007-07-25 00:02

No, they were fixed a while ago. I haven't seen any of those problems recently. Try clearing your template cache after you install.

 
ruggi

Joined: 2006-09-23
Posts: 45
Posted: Wed, 2007-07-25 23:38

I was wondering if the module could be used as a block like the image block and be embedded into drupal as well. It would be great if this module could behave somewhat like it does in Panoramio showing random maps and pics.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Wed, 2007-07-25 23:52

Well, we did some work to improve the embedding support. I don't know if it's exactly what you're looking for (it doesn't do random). Termitenshort is the embedding expert so I'll let him give you a better answer.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Thu, 2007-07-26 03:12

I don't think I'm the "expert" in embedded ^^ but at any rate, it's likely to be possible to create and "external map block" but once again not for this release since we're trying to get it out so that SiliconFiend and I can start working on making the module even better after that :-)

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

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 06:21

Hey guys, I tried to upgrade to test the SVN (revision 263) again.
Here is the problem:
http://gallerymania.net/main.php?g2_view=map.ShowMap

The group markers do not show up, and I cannot change marker colour.

Any input would be great.

Thanks!

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 13:37

Thanks for the link. I see what you're talking about now. You're talking about the dynamic regroup (clustering) markers, not the Group markers. It's a bug in the image path--I'll look into it. What do you mean that you can't change the color, though? You mean if you change it on the Edit Item screen the color is ignored?

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Thu, 2007-07-26 14:58

I have the latest SVN code as well, and I can't change the color of the markers either. It will only use the default marker colors. If it edit the Album (or item) the box to select the marker color is not there.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 16:31

SiliconFiend:

You are exactly right,

I can change the marker colour as per the album or photo, but it does not change the colour on the map. It seems that it only uses the default colour setting, like dragonsys said.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 16:45

Okay, I fixed the missing icon for the dynamic regroup markers. It was a simple template error. For the item colors, however, I'm stumped. I can't even figure out why it's working on my system--I see the setting in the database that allows the color list to appear but I can't find out how it got there! I need to check out an older copy of the map module and see if it's something that was there in the past but got broken later.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 17:05

Well If I can be of any help. Just ask.

Thanks for the fast reply.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 17:40
unpossible wrote:
SiliconFiend:

You are exactly right,

I can change the marker colour as per the album or photo, but it does not change the colour on the map. It seems that it only uses the default colour setting, like dragonsys said.

Looking at the HTML source of the site link that you sent, it doesn't think that you have set the colors for any items. They're all using the default icon/color. If any of your items had colors set, it would have the text (for example, from my testing):

var photoIcon = new GIcon(DefaultphotoIcon);
photoIcon.image = "modules/map/images/markers/smallpushpins/marker_ORANGE.png";

Double-check your item color settings.

I just re-tested the custom color function for a photo and it works great for me.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 17:49

I am at work so I will have to give it a try when I get home :p

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 17:55

Silicon you can go and play with a test account on the server

www.gallerymania.net
login test
password test

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Thu, 2007-07-26 19:13

I'm going to try uploading an older version and then overwrite it with the current version

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 20:05
Dragonsys wrote:
I'm going to try uploading an older version and then overwrite it with the current version

Don't do that if you have map data on your server that you care about. Installing an old version may not work, and if it does, it could corrupt your data. If you do an uninstall of the map module (which will delete all your map data!) then copy the old version in, then upgrade to the newest, that might work.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 20:14
unpossible wrote:
Silicon you can go and play with a test account on the server

www.gallerymania.net
login test
password test

Hmm... Well, it's not working for me either. Make sure when you copy the new version you clear the template cache. I wonder if it has something to do with a user album or something like that. I haven't tested the Map module together with the User Albums module.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 20:39

Silicon` I cleared template cache and still no luck.

Last time I upgraded my map to the SVN tested but couldn't change colour.

Uninstalled, re-installed. Lost all my markers. Still no luck.

Downgraded to the previous release, the colour marker setting worked.

Upgraded back to the SVN last night, Still had no luck with changing colour.

Yet I can change the default marker colour and it will change.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Thu, 2007-07-26 20:59

is there a way I can tell which SVN revision I have installed? My old gallery works just fine, but rev 265 doesn't.

I'm trying this on a new gallery install, so there is no data lost if I uninstall/reinstall...

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 21:33
unpossible wrote:
Silicon` I cleared template cache and still no luck.

Last time I upgraded my map to the SVN tested but couldn't change colour.

Uninstalled, re-installed. Lost all my markers. Still no luck.

Downgraded to the previous release, the colour marker setting worked.

Upgraded back to the SVN last night, Still had no luck with changing colour.

Yet I can change the default marker colour and it will change.

Somehow it's not picking up the color setting for the item. I'm not sure I'll be able to fix it for this next release. The map display code is more complex than it needs to be. I started to rewrite it but that's going to have to wait until after release.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 21:35
Dragonsys wrote:
is there a way I can tell which SVN revision I have installed? My old gallery works just fine, but rev 265 doesn't.

I'm trying this on a new gallery install, so there is no data lost if I uninstall/reinstall...

svn info will give you the last changed revision. 265 is the latest right now. I'll try to see what I broke from the last version.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 22:24

Ah Silicon`, It's a shame that this problem cannot be solved any easier. Perhaps 2 or more heads are better than one. Can we get some help from another person working on maps?
Just a thought.

Thanks!

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-07-26 23:05

I'm not giving up entirely; I'm just warning that if it's not a trivial fix I don't plan to spend a lot of time working on it since I plan on rewriting most of the map code. I will take a look at the old version and see what changed.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Thu, 2007-07-26 23:27

What did you do to fix the group cluster marker bug. I can just modify the php when I have a chance

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Fri, 2007-07-27 03:33

This is the relevant line in templates/MapHeader.tpl.

replaceIcon.image = "{g->url href="modules/map/images/multi/`$map.regroupIcon`.png"}";

Add the backticks.

 
Termitenshort
Termitenshort's picture

Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2007-07-27 13:56

hello Just a thought,

Did you try disabling the automatic regroup and see if changing the color works for the items ? This would help us troubleshoot this issue :-)

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

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Fri, 2007-07-27 16:08

I tried that earlier and it still makes no difference.
:P

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Fri, 2007-07-27 16:32

Okay, I found something. For some reason (SVN comments refer to a bug fix), the "Colors" field from 0.5.1d was changed to "PhotoColor" and "AlbumColor" in this version, but there is no upgrade code to change existing items to the new format (I think I'm the one that stuck the todo in the comments when I discovered it, though). So that would explain why it works for the old version (0.5.1d) but not when you upgrade to the SVN version. However, it still doesn't explain your problem where an item is assigned a color using the SVN code and still doesn't show up on the map (such as the "test" item I tried). It works for me on my development system, so I can't reproduce the problem locally.

 
unpossible

Joined: 2007-02-03
Posts: 47
Posted: Fri, 2007-07-27 23:00

Thanks Silicon` it seems you are getting a bit closer. Dragonsys was also having the same problem.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Tue, 2007-07-31 16:01

My items show up on the map, I just can't select a color per item, it will only use the default album/item marker. The option to change the color in the album/item properties isn't even there...

I am only having part of the problem you are having here.

I tried downgrading my version, then upgrading and it still doesn't work.

I can set you up an account so you can see what I am meaning, if you want/need. This is not my production gallery.
Just let me know.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2007-07-31 16:35

Sure, why don't you PM me a test account. I'll take a look but I don't know if it will help much because it's not clear to me why it even works in the first place.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Thu, 2007-08-02 16:57

Well, I poked around on your site but I didn't discover anything new. I can see that it's not working. But like I said, I can't figure out why it ever worked. I'm sorry, but I'm disinclined to spend a lot of time fixing it, until I can fix the underlying foundation of this module and get rid of all the old Custom Field-related cruft and weird, brittle hacks. It's going to be a huge task, but the end result will be a much cleaner, sleeker, hopefully faster module where feature addition can happen in a planned way rather than haphazardly. I have a lot of interesting features for this module that I'd like to implement, but until the framework is sound, it doesn't make sense to spend a lot of time on something that will have to be changed in short order.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Mon, 2007-08-06 16:06
SiliconFiend wrote:
Well, I poked around on your site but I didn't discover anything new. I can see that it's not working. But like I said, I can't figure out why it ever worked. I'm sorry, but I'm disinclined to spend a lot of time fixing it, until I can fix the underlying foundation of this module and get rid of all the old Custom Field-related cruft and weird, brittle hacks. It's going to be a huge task, but the end result will be a much cleaner, sleeker, hopefully faster module where feature addition can happen in a planned way rather than haphazardly. I have a lot of interesting features for this module that I'd like to implement, but until the framework is sound, it doesn't make sense to spend a lot of time on something that will have to be changed in short order.

sounds fair to me. I'll just see if I can get the older version working and go from there.

If i find anything out, I'll let you know.

 
Dragonsys

Joined: 2004-12-27
Posts: 72
Posted: Wed, 2007-08-15 17:42

ok... if I uninstall and delete all the files for this module.
Install v 0.5.1d then upgrade to the latest SVN (271)

The options to choose a color fo the itme is there, but it's ignored.
Gonna try with an older SVN version

 
merseyman

Joined: 2007-08-29
Posts: 2
Posted: Tue, 2007-09-11 20:03

This module's great - thanks for all your work.
The above thread was useful, particularly about the 'invisible' auto regroup icon.
I have 0.5.2a installed and was wondering about the 'Colors', 'ZoomLevel', 'GELookat' & 'PhotoColor' fields on the mapItemEdit page. Where can I turn off certain field choices and change the field description text for the ones I want to keep? I've rooted around, but cann't find the correct file(s).
Your help with this would be appreciated.

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Tue, 2007-09-11 20:31

Unfortunately, there's currently no way to accomplish this. The "descriptions" are generally just the field names as they appear in the database. You could try to accomplish this by checking the field name and inserting your own description. Look in mapItemEdit.tpl inside the block starting with:
{foreach from=$form.fields key=field item=value}

 
merseyman

Joined: 2007-08-29
Posts: 2
Posted: Wed, 2007-09-12 00:04

Thanks for replying so promptly.
Currently I have both 'Colors' and 'PhotoColor' fields on the photo mapItemEdit page, with just the 'Colors' field appearing on non-photo media. As 'Colors' is now redundant, would it be possible to:
1) remove the old 'Colors' field completely.
2) add 'Photocolor' to movies, etc.
Also, what is GELookAt? I'm guessing I don't need it for my site, so can I also remove this?

 
SiliconFiend
SiliconFiend's picture

Joined: 2006-12-27
Posts: 508
Posted: Wed, 2007-09-12 05:31

I wouldn't go overboard on the Colors field. It's sort of screwed up now, because it only needs to have a single field (Color), not screw around with PhotoColor or AlbumColor, etc. I intend to change that.
GELookAt allows you to customize the camera angle for that item in Google Earth (only applies to the "View in Google Earth" option), although I intend to use the "heading" portion of that for other purposes (for example, showing a photo icon on the Mini Map rotated to the heading angle to indicate the direction the photo was taken).