Module: TagsMap
rWatcher
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. ---
|
||||||
Posts: 722
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]
Posts: 7994
Pulled!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 7
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?
Posts: 46
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
Posts: 722
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?
Posts: 46
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
Posts: 722
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?
Posts: 27300
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
Posts: 722
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.
Posts: 7994
@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!
Posts: 722
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.
Posts: 7994
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!
Posts: 722
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.
Posts: 46
Nice work Rwatcher now it works with firefox 3.0.12 have you test with the 3.5.x version?
Posts: 8
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?
Posts: 722
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.
Posts: 1
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.
Posts: 722
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.
Posts: 722
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.
Posts: 7
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?
Posts: 722
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.
Posts: 573
subscribe
all the best
HB - http://www.image.agentura.dk
Posts: 5
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.
Posts: 1
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.
Posts: 1
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).
Posts: 141
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
Posts: 27300
Comments are now permitted for this topic.
Posts: 722
@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
Posts: 722
Here is the latest version of the TagsMap module, tested for use with Gallery 3.0.2.
Posts: 1
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
Posts: 27300
Best thing to do would be to create a new module, then users will not have confusion.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 21
Do I save these as html or php?
Posts: 27300
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
Posts: 722
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.
Posts: 10
Is it possible to add a url link in the tag description?
Posts: 722
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
Posts: 7
Thanks for the update