Module: TagsMap

rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Sat, 2009-07-25 05:26

If anyone's interested, I've been working on a Gallery module that allows you to assign GPS coordinates to tags and then displays them on a google map.
[img]http://gallery.menalto.com/files/tagsmap.png[/img]

---
Report Problems/Suggestions Here | Get latest version | Documentation | Coffee Fund | My Library | My GitHub

AttachmentSize
tagsmap.zip21.3 KB
tagsmap.png445.86 KB
 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2011-04-27 03:41

I've attached the current revision of the module to this post. I can probably make the admin screen a little easier to setup, but otherwise all known issues have been resolved.
[img]http://i28.tinypic.com/21ne053.jpg[/img]

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2009-07-30 01:06

Pulled!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
brainfrz

Joined: 2009-07-29
Posts: 7
Posted: Thu, 2009-07-30 10:39

Nice module, easy to use and configuration is just fine. I only miss 1 feature: using exif GPS information. Any chance this can be implemented?

 
dreamkiller

Joined: 2008-01-28
Posts: 46
Posted: Thu, 2009-07-30 14:28

I'm interested with using the exif GPS information. Hope it could work in the futur.

About this module, I tried it and nothing appears on the map the data is correctly added in the base

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2009-07-30 19:49

regarding exif GPS information: There is another Google Maps module called gmaps, although last I checked it didn't do much. I believe I read somewhere that it would eventually support maping photos with exif GPS information once that support is present in Gallery 3 though.
http://github.com/gallery/gallery3-contrib/tree/master/modules/gmaps
As far as the tagsmap module is concerned - the primary design goal of this module is to allow one to "visually" navigate through tags that correspond to a physical location. I could probably be talking into adding exif support as well, once there's a Gallery 3 release with support for the exif GPS field, although as of right now I don't really have plans to do so.

@dreamkiller: Did you follow all the configuration instructions (Set up the API key, map location and type, etc) and the instructions for adding GPS data to tags (if none of the tags have GPS data, then nothing will show up on the map)?
http://codex.gallery2.org/Gallery3:Modules:tagsmap#Configuration
Also, this module does require that the Tags module be installed and active in order to work properly. Does any of that help?

 
dreamkiller

Joined: 2008-01-28
Posts: 46
Posted: Fri, 2009-07-31 12:11

I set the API key,
The parametters i use follow:

API key
removed for privacy

# Starting Latitude
10

# Starting Longitude
10

# Default Zoom Level
1

# Default Map Type (G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP, G_SATELLITE_3D_MAP)
G_HYBRID_MAP

and add a gps position to a tag
# Latitude
48.7271

# Longitude
2.359074

# Description
Aéroport d'Orly Terminal Ouest

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2009-07-31 18:37

I've just set up a sample map with those settings and it seems to work fine here... What exactly isn't working right? Is the map not loading at all, is the map loading but the markers aren't, etc?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-07-31 19:16

rWatcher,
http://www.langleycom.com/gallery3/index.php/tagsmap/googlemap
the map loads but makers don't show. The other interesting issue is if you view the source the page does not finnish loading.

I recall you saying that you did not use the latest git version but a beta2 version, perhaps that is the issue?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2009-07-31 19:40
floridave wrote:
rWatcher,
http://www.langleycom.com/gallery3/index.php/tagsmap/googlemap
the map loads but makers don't show. The other interesting issue is if you view the source the page does not finnish loading.

I recall you saying that you did not use the latest git version but a beta2 version, perhaps that is the issue?

Dave

That's true, I'm using Beta 2 not git. I'll have to set up a test gallery with git and see if there's a compatibility issue somewhere.

Edit:
@floridave -- It looks like your markers do load, you just have to zoom out to see them. But it's definitely not loading the full page so something's not right.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Fri, 2009-07-31 20:43

@rWatcher you should probably switch to using git since I've made some API changes and have been keeping the contrib modules up to date with them.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2009-08-05 05:17
bharat wrote:
@rWatcher you should probably switch to using git since I've made some API changes and have been keeping the contrib modules up to date with them.

Done!

I've set up a brand new "testing" gallery with the lasted code from git, and installed the lastest tagsmap module from git (link). Strangely enough, I've still been unable to reproduce any of the above errors.

It seems bharat already committed an update to tagsmap as part of the API changes. The only thing I can think of is maybe the issue was fixed with those changes? I've attached the latest tagsmap to this post, hopefully that'll fix the problem.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-08-02 19:19

Yep, I've been updating all the contrib modules (including yours) to try to reduce the pain of API changes. If you put your stuff into git, I'll do my best to meet you halfway :-)
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2010-01-19 06:33
dreamkiller wrote:
I'm interested with using the exif GPS information. Hope it could work in the futur.

About this module, I tried it and nothing appears on the map the data is correctly added in the base

Okay, it appears that the issue is Firefox specific, which is basically the one browser I didn't test the module in (Internet Explorer, Google Chrome, and Safari all work fine) and why everything looks fine for me :)

It should now be fixed. I've attached the modified version here, and updated my github as well.

 
dreamkiller

Joined: 2008-01-28
Posts: 46
Posted: Wed, 2009-08-05 08:16

Nice work Rwatcher now it works with firefox 3.0.12 have you test with the 3.5.x version?

 
medicsource

Joined: 2006-11-29
Posts: 8
Posted: Mon, 2009-09-14 15:55
rWatcher wrote:
dreamkiller wrote:
I'm interested with using the exif GPS information. Hope it could work in the futur.

About this module, I tried it and nothing appears on the map the data is correctly added in the base

Okay, it appears that the issue is Firefox specific, which is basically the one browser I didn't test the module in (Internet Explorer, Google Chrome, and Safari all work fine) and why everything looks fine for me :)

It should now be fixed. I've attached the modified version here, and updated my github as well.

I have just installed and activates this module in my gallery3 (GIT) test site, but am not getting the setup options coming under content menue in admin. When I click on the MAP link in any of the galleries it just goes to page error with no map etc.

Any advice?

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2009-09-16 04:29
medicsource wrote:
I have just installed and activates this module in my gallery3 (GIT) test site, but am not getting the setup options coming under content menue in admin. When I click on the MAP link in any of the galleries it just goes to page error with no map etc.

Any advice?

It's definitely working for me with Beta 3, have you tried upgrading to that? It could be that something was glitchy with the version of Gallery you got from git.

 
glip

Joined: 2009-10-10
Posts: 1
Posted: Sat, 2009-10-10 22:23

After installing the module and into the administration module error message "Passed variable is not an array or object, using empty array instead. The problem is parsing a file module.info. Strings was not in "". Error caused helper module.php when parsed module.info. It would be appropriate in the next version to fix.

Tested on PHP 5.3, Linux and git version.

Sorry for my English.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2010-01-19 06:33

I've created an updated version of TagsMap:
- Merged in ckieffer's CSS changes for Gallery 3 Git
- Merged in some of the changes present in the 3nids version of TagsMap.
- Added in glip's fix from the above post.
- Tested everything against git (as of commit b6c1ba7ea6416630b2a44b3df8400a2d48460b0a)

It is attached here, and has been uploaded to my github account.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2011-04-27 03:42

I've made a few updates to the TagsMap module. This version includes the changes bharat made to the module on github. I've also fixed an issue with the tag links not working when used with the latest git versions of Gallery 3, and fixed a few issues that caused the entire tags_gpses table to get deleted instead of just a single row.

The new version can be downloaded from this post, or from my github account.

This module has been tested against Gallery 3 Git only, and will NOT work with Beta 3.

 
josi-no

Joined: 2010-03-05
Posts: 7
Posted: Fri, 2010-03-05 14:08

No pictures appear on the Google map. I have not assigned any tags to GPS coordinates, I only want to use the EXIF GPS coordinates. Isn't this possible?

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Fri, 2010-03-05 17:17
josi-no wrote:
No pictures appear on the Google map. I have not assigned any tags to GPS coordinates, I only want to use the EXIF GPS coordinates. Isn't this possible?

Not at this time, TagsMap and EXIF_GPS are two separate modules. There is a little bit of integration code in EXIF_GPS to get TagsMap coordinates to show up on the sidebar, but that's it.

 
hebhansen
hebhansen's picture

Joined: 2009-02-10
Posts: 573
Posted: Sat, 2010-03-06 10:53

subscribe

all the best
HB - http://www.image.agentura.dk

 
llSimsll

Joined: 2010-04-12
Posts: 5
Posted: Tue, 2010-04-13 18:43

Markers dosen't show here too :/
Using Gallery 3.0 RC1 (Santa Fe), and just downloaded latest module.

I'm using your guide to setup settings.

 
ThomasJPitts

Joined: 2010-08-31
Posts: 1
Posted: Wed, 2010-09-01 05:41

The map is no longer appearing on my installation - any ideas?

I have a feeling there's something up with one or more of the long/lat details - I've copied and pasted some from Google Maps, and used the marker for some too.

Feel free to have a look at http://www.thomasjpitts.co.uk/gallery3/index.php/tagsmap/googlemap and see what happens for you, or look through the source - I found a couple of errors and changed them, but it still isn't showing.

 
nodiseos123

Joined: 2010-09-03
Posts: 1
Posted: Fri, 2010-09-03 05:06

IN Gallery3 RC2, after installing the module, the option for configuration does not appear as an option under Content (only Comments and Tag are there).

 
rakso

Joined: 2003-07-31
Posts: 141
Posted: Sun, 2010-10-24 13:13

hello!

I am using the googlemaps module 0.5.6 on gallery2 and a lot of photos and albums are taggged with GPS-data.

how to import these to G3?

greetz

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2011-04-27 02:28

Comments are now permitted for this topic.

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Wed, 2011-04-27 03:47

@floridave: Thanks :)

For anyone using this module -- I've tested the current .zip file against Gallery 3.0.1. I've located and fixed a bug in the admin screen were the map type selection box wasn't working properly. Otherwise everything should now work fine with it. It can be downloaded here:
http://gallery.menalto.com/files/tagsmap_1.zip

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Thu, 2011-12-15 05:22

Here is the latest version of the TagsMap module, tested for use with Gallery 3.0.2.

 
Siplex

Joined: 2011-08-17
Posts: 1
Posted: Wed, 2011-08-17 12:57

Hey,
because of the limitations of the Google Maps API (I've a closed community gallery for my family)
I've ported the view files of the TagsMap module to OpenStreetMap.
The changed files are attached, If anybody else wants to use OpenStreetMap instead of Google Maps.

Thank you for the great module!

Siplex

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2011-08-19 00:52

Best thing to do would be to create a new module, then users will not have confusion.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Dutchfool

Joined: 2010-05-08
Posts: 21
Posted: Sat, 2011-11-26 11:37

Do I save these as html or php?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-11-26 18:37
Quote:
Do I save these as html or php?

See what I mean? wrote:
Best thing to do would be to create a new module, then users will not have confusion.

Not tired but I would overwrite the the existing files with the above files. So the above file names would change.
admin_tagsmap.html_.php_.txt would be
admin_tagsmap.html.php
If that does not work I would start a new thread so as not to distract from this module.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2012-07-03 03:10

I've found an issue with TagsMap -- it seems that when using dark themes with white text / links, the text or links in the dialog boxes on the map, become white as well, making it difficult/impossible to read:
[img]http://gallery.menalto.com/files/tagsmap-bug.png[/img]

This update fixes this problem by setting text color to black and link color to blue within the google map dialog. The color settings are stored in the tagsmap_menu.css file and can be further customized as necessary depending on the theme.

 
froginternet

Joined: 2011-12-12
Posts: 10
Posted: Wed, 2012-02-15 15:31

Is it possible to add a url link in the tag description?

 
rWatcher
rWatcher's picture

Joined: 2005-09-06
Posts: 722
Posted: Tue, 2012-07-03 03:15

I've updated this module:
- Renamed "Google Maps API key" to "Google APIs Console Key".
- Made Console Key optional.
- Added option to restrict the map page to registered users.
- Added breadcrumbs to the map page.
- Increased module version number to 3.

Everything is tested with Gallery 3.0.4.
Download: http://gallery.menalto.com/files/tagsmap.zip

 
blastpit

Joined: 2010-12-06
Posts: 7
Posted: Wed, 2012-12-26 09:02

Thanks for the update