Hi,
I want to be able to filter the Google Map onto each album in my gallery, http://come2see.co.nz/gallery2/main.php
then link to these from each corresponding webpage of the main site.
I have read the codex page "User Guide" but got confused there.
It says if a site can be reached by two different URLS, one with and one without the www, that two filters must be made, both using the same API. This seems to confuse the computer
Can you help me to understand this please.
Gaynor
Gallery version = 2.2.5 core 1.2.0.7
PHP version = 4.3.11 apache
Webserver = Apache
Database = mysqlt 4.1.20-max-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Ffmpeg, Getid3, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none, none
Operating system = Linux web115.opentransfer.com 2.6.14.4 #2 Wed Jan 4 22:51:21 CST 2006 i686
Default theme = matrix
gettext = enabled
Locale = en_GB
Browser = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Paradise.net; .NET CLR 2.0.50727)
Posts: 27300
I don't understand what you want to do.
You can link to your map:
http://come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap
with a regular link
<a href="http://come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap">map</a>
Are you wanting to link to your map with www in the url? like:
http://www.come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap
?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 27300
Do you have the "Enable the Filter Feature:" setting checked? it will give you an additional tab for filtering on albums for example.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 508
The part of the User Guide you're referring to is talking about map key profiles, not filters. Google requires you to sign up for an API Key if you want to use Google Maps on your website. The module allows you to store a number of different keys for your site, because a site could be accessed by different addresses. When you try to load the map, the module will look up and use the API key that matches the address by which the map is being accessed. It's just a dumb match; it doesn't know the difference between http://example.com and http://www.example.com so you have to have two different map key profiles. That's what that point in the User Guide means.
As for the filters, I think Dave's got you on the right track.
Posts: 426
Thank you both.
This having to have two APIs bothers me though. Do I need two?
Dave, Some people will access my site, and thus my gallery, with the www and some without.
I am wanting people to be able to click a link under a map on the website and bring up the appropriate interactive Google map.
I seem to have that working now, thanks.
http://come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap&g2_Group=&g2_filter=Home
Gaynor
Posts: 27300
if you want people to see the map with 2 different urls then you need two different keys. What bothers you? That is a google thing and not much we can do about that.
http://come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap&g2_Group=&g2_filter=Home < works
http://www.come2see.co.nz/gallery2/main.php?g2_view=map.ShowMap&g2_Group=&g2_filter=Home < does not so you need the other key
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 508
Yes, you're going to need to add another key, because I just tried to access it using www.come2see.co.nz and it said there was no API key. The easiest way for you to fix it is to access your gallery using www.come2see.co.nz (note the www), go to Site Admin->Google Maps->Add Profile, then follow the Google link and paste the key back into the text box.
Posts: 426
Thank you both
It seems the problem solved itself.
I followed SiliconFriend's suggestion and opened
www.come2see.co.nz
then clicked the Gallery button which opened http://come2see.co.nz/gallery2/main.php
So no matter which URL is used to access the website, the gallery button opens it without the www
At least that is one of my problems solved
Gaynor
Posts: 426
Now this is how to get only the markers I want to show for a particular filter....
Create the specific album and its filter. Set the level for filter to "1" so it only shows the items in that album, not its subalbums.
In this album create replicas of the items required from other albums. (Thus having an item in more than one filter is not a volume problem)
Open the album, and create markers for all these replicas.
(Be careful that the marker is made for the replica, not the original which will not show in this filter)
Gaynor
Posts: 426
Oh Dear - another 2 problems
I want to click a filter and see the map zoomed in to the Waitomo District as it is in
http://come2see.co.nz/gallery2/v/Workings/Map_Waitomo_Filter.jpg.html
but it shows thumbnails that are not all in the Waitomo Folder.
The correct row of thumbnails show when clicking the filter Album:Waitomo_ District, but the map is not zoomed or centred on Waitomo.
http://come2see.co.nz/gallery2/v/Workings/Map_Waitomo_District_Album_Filter.jpg.html
I could not see any way to set the zoom or centre for Album filters.
Also when Auto Grouping is enabled (which is useful for other things) the filter menu bar is elongated and covers a large amount of the thumbnails line -- a decided nuisance.
http://come2see.co.nz/gallery2/v/Workings/Map_Waitomo_District_Album_FilterGroupEnabled.jpg.html?g2_enterAlbum=0
Sorry to be such a pest, but I am trying to get the maps set up in a way that will be really useful to this website, which will become huge.
Gaynor
Posts: 508
I've never been very happy with the way all that worked. I always wanted to be able to navigate my gallery via the map (click an album marker and it then shows the markers for its contents and you can click on photos or view subfolders, etc.)
As far as the zoom and center, you could try setting coordinates and a zoom level on the album itself (Edit Album->Google Map) and see if that fixes it. Don't know what to tell you about the filter bar--the styles for map page are all screwed up and I don't know a lot about styles, myself.
Posts: 426
Thanks, I did set the album co-ordinates as you advised and then
I managed to find zoom and centre in site Admin/Google Map/General Settings
I checked the "Auto Center and Zoom:" and that solved that.
That page is quite clear once we know what it is about, but when we are out of practise, it is not intuitive.
To see the thumbnails, I moved the thumbnail bar (in Site admin/googlemap/theme) to the bottom. It says "Height for TOP & BOTTOM position, Width for LEFT & RIGHT position" but there is no way to set it to the left and setting to the right does not work. Maybe it works with a smaller map.
I managed to shorten the filter menu by changing settings I had somewhere (and cannot find now) of "Autogroup by album" and "autogroup something else"
While mentioning this I should comment too that the filter menu should be in the line above the map where it says which filter it is using, so it does not obscure the map.
((I was helping sort through wording of this module early last year, but then the Termite and I both got busy elsewhere, and I have lost the work I had done on it. And clearly I am having to relearn it all again.))
Gaynor