Termite, I was just looking in the download archive to check for changes and to my suprise some of the files were dated 27/01/2006 !
hth Dave
Now THAT is the weirdest thing ....
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Sat, 2005-10-29 03:05
djrm2 wrote:
swordfish wrote:
gowdy,
If you use the link "Get via a Map" under your Custom Fields tab then you don't have to surf off to another site to figure out the Lat/Long. This makes plugging in the lat/long coordinates all automatic for you.
Err, I just realized that feature was taken out due to the module replacing a few G2 theme template files.
I think Termitenshort will include instructions on how to manual add the link for those who want it in an upcoming map-module update.
Swordfish, I think you are wrong here, I'm pretty sure it was the 'go back to the map' link which was removed, although I left it in anyway. The "Get via a map" relies on the GPSmap.* files in the module.
As you mentioned before the "Get via a Map" does indeed show co-ordinates and automatically puts them into the GPS custom field when editing an album or photo. It is very handy too.
Dave
Oops! Yes, you're absolutely correct. I got the two confused.
Canuck249
Joined: 2005-10-24
Posts: 3
Posted: Sat, 2005-10-29 12:48
Hello,
Hello,
I am trying to get this up and running. I have a few odd things happening - maybe someone can help me out.
Here are the details - ImageMagick 6.2.5, Map Module 0.3.1, Map Theme 1.0.2
I can not seem to create any push pins. I get "Unkown Error Creating...." I have tried all the tricks I could find on this board to no avail? Any suggestions.
Also, it seems I still need to have the Google Map Key in the albums even though I put it in the Map setting in the admin page - is this right?
My map seems to ignore all the settings I make in the admin page regarding zoom, lat long to center on - this seems to mean to me that my site is completely ignoring it for some reason?
I don't get the zoom feature even though I have the Map Module installed. Do I need to do something to enable it for users?
I have tried to figure it out for a week now, and I am stuck. Any ideas? Any help people could suggest would be great.
Regards,
Matt
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Sat, 2005-10-29 13:55
Hi,
Thanks a lot for this great module! It's also nice to see that the developers are so active answering questions in this forum...
I have tried installing the module today and encountered a problem most probably related to the multi-site setup of my gallery: the links to
basemarkers as 'Man.png' point to the particular site rather than the 'base' site of the gallery installation. The result is that they are
not found...
In the "Markers Creation Tool" for example, the links to the basemarkers are:
I am trying to get this up and running. I have a few odd things happening - maybe someone can help me out.
Here are the details - ImageMagick 6.2.5, Map Module 0.3.1, Map Theme 1.0.2
I can not seem to create any push pins. I get "Unkown Error Creating...." I have tried all the tricks I could find on this board to no avail? Any suggestions.
Also, it seems I still need to have the Google Map Key in the albums even though I put it in the Map setting in the admin page - is this right?
My map seems to ignore all the settings I make in the admin page regarding zoom, lat long to center on - this seems to mean to me that my site is completely ignoring it for some reason?
I don't get the zoom feature even though I have the Map Module installed. Do I need to do something to enable it for users?
I have tried to figure it out for a week now, and I am stuck. Any ideas? Any help people could suggest would be great.
Regards,
Matt
The Map module and the theme are separated.
The Theme display picture on a map for a specific album (the one to which you apply the theme to) and the module creates a map view to disply all pictures and album that have GPS coordinates setup.
Now that this is said, it's pretty obvious that when you are using both, there some kind of overlap
The module enable a display call ShowMap that can be viewd byt /pathtogallery/main.php?g2_view=map.ShowMap
Now for the problem you are having with the marker creation it's usually related to imagemagick. The "convert" tool needs to be in the path for the module to function right.
If from the command-line you can run "convert" and it runs, then there is something weird with PHP that it cannot get to the tool.
For the time being you can specify the path to your install in the MapSiteAdmin.inc @ line 534
Just input the full path of the "convert" too in front of convert.
That also makes me think that I could gather this setting from the "imagemagick" module itself ... I guess I'll be looking into that :D
-------------------------
The Termite
Canuck249
Joined: 2005-10-24
Posts: 3
Posted: Sat, 2005-10-29 16:15
Hello,
I was jsut editing my comments as I missed that one line. I am such a moron!
Thanks so much for your help. I will play with the imagemagick thing.
Thanks
Matt
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2005-10-29 17:17
Canuck249 wrote:
Hello,
I was jsut editing my comments as I missed that one line. I am such a moron!
Thanks so much for your help. I will play with the imagemagick thing.
Thanks
Matt
You're not a moron, this just prove that I need to put more comments in the code ;)
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2005-10-29 17:40
chrisvdb wrote:
Hi,
Thanks a lot for this great module! It's also nice to see that the developers are so active answering questions in this forum...
I have tried installing the module today and encountered a problem most probably related to the multi-site setup of my gallery: the links to
basemarkers as 'Man.png' point to the particular site rather than the 'base' site of the gallery installation. The result is that they are
not found...
In the "Markers Creation Tool" for example, the links to the basemarkers are:
Hmmm I haven't got the case before ... Can you please try this:
Can you please change true to false on
Line 77 and 264 of MapSiteAdmin.inc,
Line 63 of ShowMap.inc.
This should solve your problem, if it does let me know so I add a test in there to verify for the existance of multi-site install
Thanks
---------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sat, 2005-10-29 18:02
Canuck249 wrote:
Hello,
I was jsut editing my comments as I missed that one line. I am such a moron!
Thanks so much for your help. I will play with the imagemagick thing.
Thanks
Matt
I have a made a quick update to the MapSiteAdmin.inc file that gather the ImageMagick path from the ImageMagick module and then chdir to it to create the marker and chdir back to where it was before....
Right after line 529 add the following:
foreach (array('path', 'jpegQuality', 'cmykSupport') as $key) {
list ($ret, $magic[$key]) = GalleryCoreApi::getPluginParameter('module', 'imagemagick', $key);
if ($ret->isError()) {
return array($ret->wrap(__FILE__, __LINE__), null);
}
}
$oldcwd = getcwd();
chdir($magic['path']);
and then right before
if (empty($error)) {$status['generated']=1;}
you can add
chdir($oldcwd);
Let me know if it fixes your issue
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Sat, 2005-10-29 18:19
Termitenshort wrote:
Hmmm I haven't got the case before ... Can you please try this:
Can you please change true to false on
Line 77 and 264 of MapSiteAdmin.inc,
Line 63 of ShowMap.inc.
This should solve your problem, if it does let me know so I add a test in there to verify for the existance of multi-site install
Hi,
Thanks for the quick response! I tried changing the three 'trues' to 'falses' (the second one was ca 10 lines off, though), but
it didn't solve my problem In fact, on first sight everything looks exactly the same as before. The are still no marker
images on the Markers Creation Tool page for example. The links that are created are the same as before...
I'm running version 0.3.1 on php5.
Let me know if there is anything else I can do to help debugging!
Cheers,
Chris.
rgo
Joined: 2005-10-29
Posts: 2
Posted: Sat, 2005-10-29 21:45
Help me Obi Wan Kenobi you’re my only Hope
Ok guys I know every one hates to educate the new guy but I am really confused. What do I need to get this thing working? I installed both Map Module 0.3.1 and Map Theme 1.0.2. DO I need them both? What is the difference? I just want to make a basic album with the linked pictures like you see in the demo link provided with Map Theme 1.0.2. Once I installed it how do I link the pictures to the map? Finally Every time I go to an album where I have set the map theme as default I get this error:
“The Google Maps API key on this web site was register for a different web site. You can generate a new key for this site at http://www.google.com/apis/maps.
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Sat, 2005-10-29 23:21
rgo,
Simply use one or the other but not both at the same time. If you want all the bells & whistles then
use the latest map-module-0.3.1
Look for updates to this module posted by Termitenshort. The map theme has not been updated in a while
and was done by someone else (shocksll). Then for the theme you can use whatever G2 theme you like
for your albums. I use a modified version of the Matrix theme embedded in WordPress.
To link your pictures to the Map just edit an album or individual images, click on Custom Fields tab
and insert your GPS coordinates.
Ok, go try it and report back if you still need help.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2005-10-30 00:19
chrisvdb wrote:
Let me know if there is anything else I can do to help debugging!
Can you explain me exactly how the multi-site install works and also how your setup is as far as folder goes ?
I'm trying to figure it out with the doc, but I'm starting to think I'm retarded :D
Thanks!
-------------------------
The Termite
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Sun, 2005-10-30 08:54
Termitenshort wrote:
Can you explain me exactly how the multi-site install works and also how your setup is as far as folder goes ?
I'm trying to figure it out with the doc, but I'm starting to think I'm retarded :D
Well, it's quite simple. In case of my setup we have:
The base site http://absurdistan.org/gallery2/, which has its own path on my server (/var/www/org/absurdistan/www/gallery2). This directory contains a full gallery installation, except for the actual picture data.
One of the depending sites is http://chris.vandenberghe.org/photos/. The matching directory on the server is /var/www/org/vandenberghe/chris/photos. This directory contains only:
./main.php
./embed.php
./index.php
./upgrade
./upgrade/index.php
./config.php
./.htaccess
and the g2data directory.
Hope this helps!
Thanks,
Chris.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2005-10-30 16:41
Thanks Chris, this definitively shade some light. My guess is that in the config.php you have a line at th bottom that specify the path to the codebase right ?
like $gallery->setConfig('galleryBaseUrl', 'http://absurdistan.org/gallery2/');
So i'm gonna add a quick check for this variable existence and value.
thx
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2005-10-30 16:48
Hello All,
For the feature of being able to display limited amount of markers, I was thinking of the following:
- Create a "Group" feature that you enable and manage via the AdminPanel/Theme.
- On the Admin Panel you can choose:
+ Which default group to display (All is the only pre-created group)
+ Add and delete Groups, view all groups (with their thumbnails)
+ Add a Thumbnail for a group (uploaded in the module directory)
+ Choose when the thumbnail list goes (right, left, top or bottom of the map)
- There would then be a new CustomField added to each photos/album called "Group" with a list controlled by the AdminPanel.
- On the Map you have a list of thumbnails, a click on a thumbnails displays the markers associated with it.
- I have not thought of subgroups just yet.
Before I start coding away, What do you all think about this idea ?
-------------------------
The Termite
samkuhn2
Joined: 2004-04-13
Posts: 60
Posted: Sun, 2005-10-30 18:00
I wouldn't put too much work into making the custom "group" tag thing work. The flickr/virtual album request is #2 on the list of top requested features for Gallery. These tag/virtual albums would duplicate the feature that you're proposing. While we can't be certain, the devs seem reasonably willing to fulfill the top requests.
OK I have the dropdown of the various navigation/panning controls working on the admin page.
Now to implement it in the showMap.tpl file.....
The trouble I have is the mixing of php, smarty and javascript.
How does one include a php file in smarty tags that will also call another file?
Example: in ShowMap.tpl I want to call a file: /map/templates/controls/control.tpl
That file will in-turn call; /map/templates/name of control.tpl
the name of control is a variable called $map['MapControlType'] and can be called from /map/templates/ShowMap.tpl successfully.
Thanks in advance for the education.
Dave
OO I have not seen that you were having an issue, just saw your message looking around in the thread ...
I guess the easiest solution would be to include /map/templates/name of control.tpl directly into ShowMap.tpl but I'm not sure if it's possible.
Can you give more details as of how it's currently done ?
See you !
--------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Sun, 2005-10-30 18:27
samkuhn2 wrote:
I wouldn't put too much work into making the custom "group" tag thing work. The flickr/virtual album request is #2 on the list of top requested features for Gallery. These tag/virtual albums would duplicate the feature that you're proposing. While we can't be certain, the devs seem reasonably willing to fulfill the top requests.
It shouldn't be too much work but there would be definitively some overlapp there. It should be fairly simple to adapt it later on when the "tag" feature is on for virtual albums
Do you know if there is some beta or a beginning of code available ?
If not, maybe I can starting looking into it and see what happen. I guess I don't want to code it it doesn't answer to the original idea ;)
Also today there is some confusion betweem the map=module and the map-theme, maybe this feature will help in having only one solution instead
samkuhn2
Joined: 2004-04-13
Posts: 60
Posted: Sun, 2005-10-30 19:16
I didn't search the dev's mailing list for what is planned/in the works for 2.1, but here is what I found in the forums here regarding keyword/virtual albums:
There was/is also a Summer of Code effort in this area (although no one was assigned to it):
Quote:
Create Keyword Albums
Gallery 2 supports album and item keywords, IPTC and EXIF metadata. Wouldn't it be cool if it had dynamic albums based on keywords? So if you want to find all the photos about "family", you click a link and it creates an album just for you.
Deliverable: New G2 module that lets you create dynamic albums based on keywords and save them for later. This will require additional changes in the core framework; it can't be done solely as a separate module.
Thanks Chris, this definitively shade some light. My guess is that in the config.php you have a line at th bottom that specify the path to the codebase right ?
like $gallery->setConfig('galleryBaseUrl', 'http://absurdistan.org/gallery2/');
So i'm gonna add a quick check for this variable existence and value.
Idd! That's exactly the line that's there... if you have some (even very-beta) code, I can give it a try if you want!
Thanks for the help,
Chris.
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Mon, 2005-10-31 02:19
Added the ability to select the control style/colors for the navigation.
MapSiteAdmin.inc -- Changed the MapControlSize to MapControlType and made it a dropdown.
it searches the /map/templates/controls directory to new control types.
module.inc -- Changed the MapControlSize to MapControlType
ShowMap.inc -- Changed the MapControlSize to MapControlType and include() the proper templates/controls file for the custom controls. (the custom controls are not included if the "stock" google controls are used.
templates/Header.tpl -- include a transparent .png fix for IE if a custom control is selected.
templates/MapSiteAdmin.tpl -- Changed the MapControlSize to MapControlType and made it a dropdown.
templates.ShowMap.tpl -- Add the custom images inside the div if the $map.MapControlType is not stock
New files:
various files in the map/templates/controls directory of various control types/colors pngbehavior.htc to fix the IE .png transparency issue. /images/blank.gif for the pngbehavior.htc to fix the IE .png transparency issue.
Known issue:
GxMagnifier does not work if the pngbehavior.htc is used in IE. Works fine in FF. I did try other JS fixes and CSS fixes for the IE .png transparency issue but have not been successful.
Thinks to do:
-fix the transparent .png/Gxmangifier issue
-add more control styles
-add this to the map theme
long term:
change this all to xml files. and use the API to modify the controls.
Idd! That's exactly the line that's there... if you have some (even very-beta) code, I can give it a try if you want!
Thanks for the help,
Chris.
Ok, I think this would work great then:
In MapSiteAdmin.inc
Around line 77 and 267 you should find a line like this:
$base = $urlComponents['path'];
right after this line, add the following:
$baseURL = $gallery->getConfig('galleryBaseUrl');
if (!empty($baseURL)) $base = $baseURL;
In ShowMap.inc
Same thing the line should around line 64
If it all work better for you, I will make this update, add floridave's code and I added a few options to the Admin panel and fixed the issue with the marker's size and colors.
Also I've created a couple more markers
Sometime today or tomorrow will be a quick update :D
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Mon, 2005-10-31 16:32
Termitenshort wrote:
Ok, I think this would work great then:
In MapSiteAdmin.inc
Around line 77 and 267 you should find a line like this:
$base = $urlComponents['path'];
right after this line, add the following:
$baseURL = $gallery->getConfig('galleryBaseUrl');
if (!empty($baseURL)) $base = $baseURL;
In ShowMap.inc
Same thing the line should around line 64
If it all work better for you, I will make this update, add floridave's code and I added a few options to the Admin panel and fixed the issue with the marker's size and colors.
Also I've created a couple more markers
Sometime today or tomorrow will be a quick update :D
It works! Thanks a lot...
A happy Chris.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Mon, 2005-10-31 19:31
After trying the code for the controls I add the following on first access to the AdminPanel:
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 211
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
I hope this isn't messing anything up, everything else is perfectly fine on my end, I'm gonna bundle up the all thing together for 0.3.2 version
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 00:51
Here are the latest changes, new version triggered by Floridave's addition, I took advantage of this to add the few correction to the code I was working on
This is version 0.3.2 now
2005-10-31: (floridave) Changes:
- Added the posibility to change the map control style (thx floridave)
- Add a theme feature to choose the map control style (thx floridave)
- (ehd) Fix an issue with multisites installs
- (ehd) Added more basemarkers
- (ehd) fixed problems with colors
- (ehd} added tooltips on the map with album/photo name
- (ehd) fixed a problem with the marker Sizes not updating correctly (fixed -> static)
- (ehd) Added a message when a marker is already created
What's left to do
What's left to do
- Add more option to the admin panel to customize GxMagnifier (2nd Zoom window docked)
- Add the creation of the icon with characters using the default UTF characters set
- Maybe add a section where you select if you want all the characters or not or no characters.
- Add a theme feature to choose the window styles
- Ability to autopopulate the custom GPS field based on EXIF tags for photos
- Enable possibility to have different MAPs per Album
- Add posibility to create a legend
- Maybe another idea would be to have the "zoom in" map on a second TAB in the infowindow ? (it seems pretty easy to accomplish)
- Open for more?
EDIT: Re-upload to fix a bug in the control image dispaying for multi-site installs
EDIT: Corrected 2 Bugs and re-uploaded, you need nothing else but the enclosed file
Enjoy !
-------------------------
The Termite
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2005-11-01 05:08
Termitenshort wrote:
- Add a theme feature to choose the window styles
Can you expalin this new feature? Or this this the GxMagnifier themeing?
Dave
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 06:42
floridave wrote:
Quote:
- Add a theme feature to choose the window styles
Can you expalin this new feature? Or this this the GxMagnifier themeing?
Dave
I'm trying to put together a "template" system for the info windows displayed when clicked on an item. I personally don't really like the default so I have changed it.
Now I want to put that in the module so that users can choose which template to use to display their info-windows
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Tue, 2005-11-01 09:36
Termitenshort wrote:
Here are the latest changes, new version triggered by Floridave's addition, I took advantage of this to add the few correction to the code I was working on
This is version 0.3.2 now
2005-10-31: (floridave) Changes:
- Added the posibility to change the map control style (thx floridave)
- Add a theme feature to choose the map control style (thx floridave)
- (ehd) Fix an issue with multisites installs
- (ehd) Added more basemarkers
- (ehd) fixed problems with colors
- (ehd} added tooltips on the map with album/photo name
- (ehd) fixed a problem with the marker Sizes not updating correctly (fixed -> static)
- (ehd) Added a message when a marker is already created
What's left to do
What's left to do
- Add more option to the admin panel to customize GxMagnifier (2nd Zoom window docked)
- Add the creation of the icon with characters using the default UTF characters set
- Maybe add a section where you select if you want all the characters or not or no characters.
- Add a theme feature to choose the window styles
- Ability to autopopulate the custom GPS field based on EXIF tags for photos
- Enable possibility to have different MAPs per Album
- Add posibility to create a legend
- Maybe another idea would be to have the "zoom in" map on a second TAB in the infowindow ? (it seems pretty easy to accomplish)
- Open for more?
Enjoy !
Thanks for the new release! Everything seems to work fine, except for the zoom controls. I took a quick look in the generated html code, but didn't immediately see where the controls are called (and thus couldn't figure out if it was a problem similar to the multi-site thing). Perhaps somebody can take a look at my map?
In the configuration I tried several different Map Control Sizes / Types, but none of them show anything on the map... for the moment I selected 'roundblue'.
I also have a couple of feature requests that I will post in seperate message later today.
Cheers,
Chris.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 14:44
I forgot to add the variable in from of the images sources for all the path problems,
Here is the ShowMap.tpl that will fix your problems
I also re-uploaded the module up in the other post.
Sorry about that
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 14:44
Also, I was about to add the "characters" to be displayed in the markers and I thought that It might be a better idea if it was specifi to each album/photo with some default.
I.E. : In the Admin Panel you would choose the default color, shape, character for photos and albums and then you can specify the same settings in each CustomField.
What do you think ? Should we keep the existing or should we instead has the markers created on the fly for each item ?
-------------------------
The Termite
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Tue, 2005-11-01 16:04
Termitenshort wrote:
I forgot to add the variable in from of the images sources for all the path problems,
Here is the ShowMap.tpl that will fix your problems
I also re-uploaded the module up in the other post.
Sorry about that
Aarrrgghh, now nothing shows up anymore ;-) Didn't have time to look at it yet, though...
Cheers,
Chris.
igrcic
Joined: 2005-04-19
Posts: 78
Posted: Tue, 2005-11-01 16:35
Hi guys, this are the warnings i get when using 0.3.2
Warning: loadtemplate(***/gallery2/modules/map/templates/controls//control.inc): failed to open stream: No such file or directory in ***/gallery2/modules/map/ShowMap.inc on line 231
Warning: loadtemplate(): Failed opening '***/gallery2/modules/map/templates/controls//control.inc' for inclusion (include_path='.:/php/includes:/www/web/htdocs/klase/') in ***/gallery2/modules/map/ShowMap.inc on line 231
there are some other issues too.
1) Settings for control type (big/small/none) are not being remebered when press save buttun in GoogleMap
module settings (only in v0.3.2, in 0.3.1 works ok)
2) icons in map dont show up, or only the magnify icon is shown.
dotnature
Joined: 2005-10-26
Posts: 224
Posted: Tue, 2005-11-01 17:37
Sorry if this is actually a feature I havent tested it out yet, but it would be cool if you could click a marker on the page and it shows that marker on the map, so you can have several different colored markers showing differant things. An example would be say a green marker for hotels and a red marker for restaurants, clicking show all would show both markers on map, clicking green would just show hotels on map, etc. This would help reduce clutter and help people doing more specific searches with the map. Cheers and sorry if this is already a feature I will have time to test it soon.
TheGoOse
Joined: 2002-12-31
Posts: 50
Posted: Tue, 2005-11-01 18:27
chrisvdb wrote:
Aarrrgghh, now nothing shows up anymore ;-) Didn't have time to look at it yet, though...
I have just installed the latest google map module V3.0.2 complete with later addition of ShowMap.tpl and I too get no map display whatsoever. If I view the page source in my browser I can see lots of stuff which looks similar to how it used to look but I have no idea what the problem is just yet. The page display is like that of chrisvdbs, i.e. empty.
To upgrade I de-activated the old module, moved it away and copied the new module in its place. Then upgraded and activeated the new module. I saw no error mesages at all this time and I 'think' it all got installed properly. but the problem persists.
I see there is a new custom field 'Zoom Level' in my albums and phots, they are blank.
Anyone got any ideas how to fault find this? Regards, Dave.
edit:
For what its worth the 'Get via a Map' feature is still working.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 19:42
chrisvdb wrote:
Aarrrgghh, now nothing shows up anymore ;-) Didn't have time to look at it yet, though...
Cheers,
Chris.
Yes I think I know what your problem is, try to go back to the AdminPage and do a save, it seems that it doesn't gather the Marker size and so is unable to display them correctly ....
Basically you have an erro showing up at New Gsize(,) ... the values should be the ones from the getimagesize. I'll take a look as of why it happened
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 19:47
igrcic wrote:
Hi guys, this are the warnings i get when using 0.3.2
Warning: loadtemplate(***/gallery2/modules/map/templates/controls//control.inc): failed to open stream: No such file or directory in ***/gallery2/modules/map/ShowMap.inc on line 231
Warning: loadtemplate(): Failed opening '***/gallery2/modules/map/templates/controls//control.inc' for inclusion (include_path='.:/php/includes:/www/web/htdocs/klase/') in ***/gallery2/modules/map/ShowMap.inc on line 231
there are some other issues too.
1) Settings for control type (big/small/none) are not being remebered when press save buttun in GoogleMap
module settings (only in v0.3.2, in 0.3.1 works ok)
2) icons in map dont show up, or only the magnify icon is shown.
Maybe you can try doing a "maintenance -> delete template cache"
You seem to have a problem with 2 different templates being used, the normal template has a dropdown for the control type and not a radio anymore. Also there is a bunch more option than just "small/large/none"
Let us know if it fixes your problems
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 19:49
dotnature wrote:
Sorry if this is actually a feature I havent tested it out yet, but it would be cool if you could click a marker on the page and it shows that marker on the map, so you can have several different colored markers showing differant things. An example would be say a green marker for hotels and a red marker for restaurants, clicking show all would show both markers on map, clicking green would just show hotels on map, etc. This would help reduce clutter and help people doing more specific searches with the map. Cheers and sorry if this is already a feature I will have time to test it soon.
This is not currently a feature and would indeed be good, It's currently on the todo (it shows up as grouping) and hopefully will be there soon
TheGoOse
Joined: 2002-12-31
Posts: 50
Posted: Tue, 2005-11-01 19:58
I've tried both deleting template cache and re-saving options, but there's still no map
Now, I have checked the file over and over and I see no reason for it to not work ....
basically what's happenning is that it does not populate the size of the markers and so fail to create any marker which leads to the Javascript to fail and so the map doesn't display ....
I guess the bottom line is that it should just work , the same function is used in the AdminPanel to display the "current size" of the basemarkers...
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 20:15
I was taking a close look into the sourcecode of all of you who provided a link and you all have the same behavior:
The map is trying to use a marker called "marker_default.png" which does not exist ... this is probably why it doesn't get a size for it and so is not able to display the markers...
Now I need to figure out why it's trying to use a marker called "default" ...
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 20:25
I have tried to gather the sizes of the markers in a different way, you just need the enclosed ShowMap.inc file, overwrite the existing and please let me know if it works better for you guys...
-------------------------
The Termite
djrm2
Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-01 20:30
Termitenshort wrote:
I have tried to gather the sizes of the markers in a different way, you just ned the enclosed ShowMap.inc file, overwrite the existing and please let me know if it works better for you guys...
-------------------------
The Termite
Yep, thats better
Just one thing, this is the first time I've seen the magnify icon not quite placed properly, Oh well.
edit: That was with 'Stock small' selected, everything is correct with 'Stock large'
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 20:33
djrm2 wrote:
Yep, thats better
Just one thing, this is the first time I've seen the magnify icon not quite placed properly, Oh well.
Cool, I guess I will replace all 0.3.2 module with the one including this file for new comers
djrm2 Can you show me a screenshot of the placement problem ? I'd like to check something ...
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Tue, 2005-11-01 20:40
I have been lokking around for a solution to a precentage based map size instead of a fixed number and I found a partial one !!
indeed, I've got it so that it uses 100% of the available space (width and height) but it's based on the size of the window and does not adjust when the window gets resized.
Does anyone know how to work the onResize function ? I'm not able to make it so that it automatically adjusts
Right now, you need to hit the refresh button for the size of the map to be refreshed to the size of the window so it's not perfect but it's getting close :D
-------------------------
The Termite
djrm2
Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-01 20:43
Termitenshort wrote:
djrm2 wrote:
Yep, thats better
Just one thing, this is the first time I've seen the magnify icon not quite placed properly, Oh well.
Cool, I guess I will replace all 0.3.2 module with the one including this file for new comers
djrm2 Can you show me a screenshot of the placement problem ? I'd like to check something ...
Termite, see your PM for weblink showing problem, Dave
djrm2
Joined: 2005-10-04
Posts: 54
Posted: Tue, 2005-11-01 22:00
The practice of updating download archives is, at best, confusing, is there a CVS database for the google map module?
Use of a revion control system would help users to see the diffs on new and updated modules.
Please accept this as an attempt at constructive criticism.
hth Dave.
chrisvdb
Joined: 2005-10-29
Posts: 13
Posted: Tue, 2005-11-01 22:02
Termitenshort wrote:
I have tried to gather the sizes of the markers in a different way, you just need the enclosed ShowMap.inc file, overwrite the existing and please let me know if it works better for you guys...
It does! Thanks...
I have two feature requests that I would like to share:
1) I was thinking together with a colleague about different ways of making the map module more friendly towards the very typical high concentration of markers in a particular area (e.g., your home country). We came up with the following... it would be nice to be able to define multiple maps, all with their own configuration settings: the setting we have now (markers, zoom level, initial center, ...), plus a name, plus a list of albums we want on this map. I could imagine that one would be able to specify something like A,B+,C*; meaning album A, album B and its childern, and album C and all of its ancestors (there is probably a better format). Additionally, we could give a map also a coordinate (its center point?), and allow to add this to other maps (so, A,B+,C*,map_D).
This setup would allow us to do the following. Make a world map and put all your travelling albums on this world map. On your home country (where you typically have many different albums) you put only a link to a second map. When you click on this map, the second map with only the albums of your home country opens, zoomed in and centered on your home country.
2) Would it be possible to allow for routes? I often have albums that refer to a tour (a hiking tour or trip through multiple coutries) rather than one location. I would find it great if it were possible to put a set of coordinates that are shown as a marker on the first coordinate, then line segments connecting all the coordinates in order, and finally a second marker at the last coordinate. Does the google api allow for this? Would it be difficult to implement?
Would any of these features also be useful to anybody else?
Best regards,
Chris.
igrcic
Joined: 2005-04-19
Posts: 78
Posted: Tue, 2005-11-01 22:03
Termitenshort wrote:
Maybe you can try doing a "maintenance -> delete template cache"
You seem to have a problem with 2 different templates being used, the normal template has a dropdown
for the control type and not a radio anymore. Also there is a bunch more option than just "small/large/none"
Let us know if it fixes your problems
Stupid me, forgot to do that I usually do it. Everything works OK now, but I have some weird error now,
the map height is only 40-50px ?? Im attaching the picture.....
Posts: 1894
Now THAT is the weirdest thing ....
Posts: 388
Oops! Yes, you're absolutely correct. I got the two confused.
Posts: 3
Hello,
Hello,
I am trying to get this up and running. I have a few odd things happening - maybe someone can help me out.
Here are the details - ImageMagick 6.2.5, Map Module 0.3.1, Map Theme 1.0.2
I can not seem to create any push pins. I get "Unkown Error Creating...." I have tried all the tricks I could find on this board to no avail? Any suggestions.
Also, it seems I still need to have the Google Map Key in the albums even though I put it in the Map setting in the admin page - is this right?
My map seems to ignore all the settings I make in the admin page regarding zoom, lat long to center on - this seems to mean to me that my site is completely ignoring it for some reason?
I don't get the zoom feature even though I have the Map Module installed. Do I need to do something to enable it for users?
I have tried to figure it out for a week now, and I am stuck. Any ideas? Any help people could suggest would be great.
Regards,
Matt
Posts: 13
Hi,
Thanks a lot for this great module! It's also nice to see that the developers are so active answering questions in this forum...
I have tried installing the module today and encountered a problem most probably related to the multi-site setup of my gallery: the links to
basemarkers as 'Man.png' point to the particular site rather than the 'base' site of the gallery installation. The result is that they are
not found...
In the "Markers Creation Tool" for example, the links to the basemarkers are:
http://chris.vandenberghe.org/photos/modules/map/basemarkers/Man.png (particular site) rather than http://absurdistan.org/gallery2/modules/map/basemarkers/Man.png (base site).
Cheers,
Chris.
Posts: 1894
The Map module and the theme are separated.
The Theme display picture on a map for a specific album (the one to which you apply the theme to) and the module creates a map view to disply all pictures and album that have GPS coordinates setup.
Now that this is said, it's pretty obvious that when you are using both, there some kind of overlap
The module enable a display call ShowMap that can be viewd byt /pathtogallery/main.php?g2_view=map.ShowMap
Now for the problem you are having with the marker creation it's usually related to imagemagick. The "convert" tool needs to be in the path for the module to function right.
If from the command-line you can run "convert" and it runs, then there is something weird with PHP that it cannot get to the tool.
For the time being you can specify the path to your install in the MapSiteAdmin.inc @ line 534
Just input the full path of the "convert" too in front of convert.
That also makes me think that I could gather this setting from the "imagemagick" module itself ... I guess I'll be looking into that :D
-------------------------
The Termite
Posts: 3
Hello,
I was jsut editing my comments as I missed that one line. I am such a moron!
Thanks so much for your help. I will play with the imagemagick thing.
Thanks
Matt
Posts: 1894
You're not a moron, this just prove that I need to put more comments in the code ;)
Posts: 1894
Hmmm I haven't got the case before ... Can you please try this:
Can you please change true to false on
Line 77 and 264 of MapSiteAdmin.inc,
Line 63 of ShowMap.inc.
This should solve your problem, if it does let me know so I add a test in there to verify for the existance of multi-site install
Thanks
---------------------
The Termite
Posts: 1894
I have a made a quick update to the MapSiteAdmin.inc file that gather the ImageMagick path from the ImageMagick module and then chdir to it to create the marker and chdir back to where it was before....
Right after line 529 add the following:
and then right before
you can add
Let me know if it fixes your issue
Posts: 13
Hi,
Thanks for the quick response! I tried changing the three 'trues' to 'falses' (the second one was ca 10 lines off, though), but
it didn't solve my problem In fact, on first sight everything looks exactly the same as before. The are still no marker
images on the Markers Creation Tool page for example. The links that are created are the same as before...
I'm running version 0.3.1 on php5.
Let me know if there is anything else I can do to help debugging!
Cheers,
Chris.
Posts: 2
Help me Obi Wan Kenobi you’re my only Hope
Ok guys I know every one hates to educate the new guy but I am really confused. What do I need to get this thing working? I installed both Map Module 0.3.1 and Map Theme 1.0.2. DO I need them both? What is the difference? I just want to make a basic album with the linked pictures like you see in the demo link provided with Map Theme 1.0.2. Once I installed it how do I link the pictures to the map? Finally Every time I go to an album where I have set the map theme as default I get this error:
“The Google Maps API key on this web site was register for a different web site. You can generate a new key for this site at http://www.google.com/apis/maps.
Posts: 388
rgo,
Simply use one or the other but not both at the same time. If you want all the bells & whistles then
use the latest map-module-0.3.1
Look for updates to this module posted by Termitenshort. The map theme has not been updated in a while
and was done by someone else (shocksll). Then for the theme you can use whatever G2 theme you like
for your albums. I use a modified version of the Matrix theme embedded in WordPress.
To link your pictures to the Map just edit an album or individual images, click on Custom Fields tab
and insert your GPS coordinates.
Ok, go try it and report back if you still need help.
Posts: 1894
Can you explain me exactly how the multi-site install works and also how your setup is as far as folder goes ?
I'm trying to figure it out with the doc, but I'm starting to think I'm retarded :D
Thanks!
-------------------------
The Termite
Posts: 13
Well, it's quite simple. In case of my setup we have:
The base site http://absurdistan.org/gallery2/, which has its own path on my server (/var/www/org/absurdistan/www/gallery2). This directory contains a full gallery installation, except for the actual picture data.
One of the depending sites is http://chris.vandenberghe.org/photos/. The matching directory on the server is /var/www/org/vandenberghe/chris/photos. This directory contains only:
./main.php
./embed.php
./index.php
./upgrade
./upgrade/index.php
./config.php
./.htaccess
and the g2data directory.
Hope this helps!
Thanks,
Chris.
Posts: 1894
Thanks Chris, this definitively shade some light. My guess is that in the config.php you have a line at th bottom that specify the path to the codebase right ?
like
$gallery->setConfig('galleryBaseUrl', 'http://absurdistan.org/gallery2/');
So i'm gonna add a quick check for this variable existence and value.
thx
-------------------------
The Termite
Posts: 1894
Hello All,
For the feature of being able to display limited amount of markers, I was thinking of the following:
- Create a "Group" feature that you enable and manage via the AdminPanel/Theme.
- On the Admin Panel you can choose:
+ Which default group to display (All is the only pre-created group)
+ Add and delete Groups, view all groups (with their thumbnails)
+ Add a Thumbnail for a group (uploaded in the module directory)
+ Choose when the thumbnail list goes (right, left, top or bottom of the map)
- There would then be a new CustomField added to each photos/album called "Group" with a list controlled by the AdminPanel.
- On the Map you have a list of thumbnails, a click on a thumbnails displays the markers associated with it.
- I have not thought of subgroups just yet.
Before I start coding away, What do you all think about this idea ?
-------------------------
The Termite
Posts: 60
I wouldn't put too much work into making the custom "group" tag thing work. The flickr/virtual album request is #2 on the list of top requested features for Gallery. These tag/virtual albums would duplicate the feature that you're proposing. While we can't be certain, the devs seem reasonably willing to fulfill the top requests.
http://sourceforge.net/tracker/index.php?func=detail&aid=1204624&group_id=7130&atid=357130
Posts: 1894
OO I have not seen that you were having an issue, just saw your message looking around in the thread ...
I guess the easiest solution would be to include /map/templates/name of control.tpl directly into ShowMap.tpl but I'm not sure if it's possible.
Can you give more details as of how it's currently done ?
See you !
--------------------
The Termite
Posts: 1894
It shouldn't be too much work but there would be definitively some overlapp there. It should be fairly simple to adapt it later on when the "tag" feature is on for virtual albums
Do you know if there is some beta or a beginning of code available ?
If not, maybe I can starting looking into it and see what happen. I guess I don't want to code it it doesn't answer to the original idea ;)
Also today there is some confusion betweem the map=module and the map-theme, maybe this feature will help in having only one solution instead
Posts: 60
I didn't search the dev's mailing list for what is planned/in the works for 2.1, but here is what I found in the forums here regarding keyword/virtual albums:
http://gallery.menalto.com/node/23490?from=0&comments_per_page=50
http://gallery.menalto.com/node/38478?highlight=flickr
There was/is also a Summer of Code effort in this area (although no one was assigned to it):
http://gallery.menalto.com/node/32322?highlight=flickr
Posts: 13
Idd! That's exactly the line that's there... if you have some (even very-beta) code, I can give it a try if you want!
Thanks for the help,
Chris.
Posts: 27300
Added the ability to select the control style/colors for the navigation.
MapSiteAdmin.inc -- Changed the MapControlSize to MapControlType and made it a dropdown.
it searches the /map/templates/controls directory to new control types.
module.inc -- Changed the MapControlSize to MapControlType
ShowMap.inc -- Changed the MapControlSize to MapControlType and include() the proper templates/controls file for the custom controls. (the custom controls are not included if the "stock" google controls are used.
templates/Header.tpl -- include a transparent .png fix for IE if a custom control is selected.
templates/MapSiteAdmin.tpl -- Changed the MapControlSize to MapControlType and made it a dropdown.
templates.ShowMap.tpl -- Add the custom images inside the div if the $map.MapControlType is not stock
New files:
various files in the map/templates/controls directory of various control types/colors
pngbehavior.htc to fix the IE .png transparency issue.
/images/blank.gif for the pngbehavior.htc to fix the IE .png transparency issue.
Known issue:
GxMagnifier does not work if the pngbehavior.htc is used in IE. Works fine in FF. I did try other JS fixes and CSS fixes for the IE .png transparency issue but have not been successful.
Thinks to do:
-fix the transparent .png/Gxmangifier issue
-add more control styles
-add this to the map theme
long term:
change this all to xml files. and use the API to modify the controls.
Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 1894
Ok, I think this would work great then:
In MapSiteAdmin.inc
Around line 77 and 267 you should find a line like this:
right after this line, add the following:
In ShowMap.inc
Same thing the line should around line 64
If it all work better for you, I will make this update, add floridave's code and I added a few options to the Admin panel and fixed the issue with the marker's size and colors.
Also I've created a couple more markers
Sometime today or tomorrow will be a quick update :D
Posts: 13
It works! Thanks a lot...
A happy Chris.
Posts: 1894
After trying the code for the controls I add the following on first access to the AdminPanel:
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 211
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
Notice: Undefined index: MapControlType in c:\program files\easyphp1-8\www\gallery2\modules\map\MapSiteAdmin.inc on line 205
I solved it by adding
Before line 196
I hope this isn't messing anything up, everything else is perfectly fine on my end, I'm gonna bundle up the all thing together for 0.3.2 version
-------------------------
The Termite
Posts: 1894
Here are the latest changes, new version triggered by Floridave's addition, I took advantage of this to add the few correction to the code I was working on
This is version 0.3.2 now
2005-10-31: (floridave) Changes:
- Added the posibility to change the map control style (thx floridave)
- Add a theme feature to choose the map control style (thx floridave)
- (ehd) Fix an issue with multisites installs
- (ehd) Added more basemarkers
- (ehd) fixed problems with colors
- (ehd} added tooltips on the map with album/photo name
- (ehd) fixed a problem with the marker Sizes not updating correctly (fixed -> static)
- (ehd) Added a message when a marker is already created
What's left to do
What's left to do
- Add more option to the admin panel to customize GxMagnifier (2nd Zoom window docked)
- Add the creation of the icon with characters using the default UTF characters set
- Maybe add a section where you select if you want all the characters or not or no characters.
- Add a theme feature to choose the window styles
- Ability to autopopulate the custom GPS field based on EXIF tags for photos
- Enable possibility to have different MAPs per Album
- Add posibility to create a legend
- Maybe another idea would be to have the "zoom in" map on a second TAB in the infowindow ? (it seems pretty easy to accomplish)
- Open for more?
EDIT: Re-upload to fix a bug in the control image dispaying for multi-site installs
EDIT: Corrected 2 Bugs and re-uploaded, you need nothing else but the enclosed file
Enjoy !
-------------------------
The Termite
Posts: 27300
Can you expalin this new feature? Or this this the GxMagnifier themeing?
Dave
Posts: 1894
I'm trying to put together a "template" system for the info windows displayed when clicked on an item. I personally don't really like the default so I have changed it.
Now I want to put that in the module so that users can choose which template to use to display their info-windows
Posts: 13
Thanks for the new release! Everything seems to work fine, except for the zoom controls. I took a quick look in the generated html code, but didn't immediately see where the controls are called (and thus couldn't figure out if it was a problem similar to the multi-site thing). Perhaps somebody can take a look at my map?
In the configuration I tried several different Map Control Sizes / Types, but none of them show anything on the map... for the moment I selected 'roundblue'.
I also have a couple of feature requests that I will post in seperate message later today.
Cheers,
Chris.
Posts: 1894
I forgot to add the variable in from of the images sources for all the path problems,
Here is the ShowMap.tpl that will fix your problems
I also re-uploaded the module up in the other post.
Sorry about that
-------------------------
The Termite
Posts: 1894
Also, I was about to add the "characters" to be displayed in the markers and I thought that It might be a better idea if it was specifi to each album/photo with some default.
I.E. : In the Admin Panel you would choose the default color, shape, character for photos and albums and then you can specify the same settings in each CustomField.
What do you think ? Should we keep the existing or should we instead has the markers created on the fly for each item ?
-------------------------
The Termite
Posts: 13
Aarrrgghh, now nothing shows up anymore ;-) Didn't have time to look at it yet, though...
Cheers,
Chris.
Posts: 78
Hi guys, this are the warnings i get when using 0.3.2
Warning: loadtemplate(***/gallery2/modules/map/templates/controls//control.inc): failed to open stream: No such file or directory in ***/gallery2/modules/map/ShowMap.inc on line 231
Warning: loadtemplate(): Failed opening '***/gallery2/modules/map/templates/controls//control.inc' for inclusion (include_path='.:/php/includes:/www/web/htdocs/klase/') in ***/gallery2/modules/map/ShowMap.inc on line 231
there are some other issues too.
1) Settings for control type (big/small/none) are not being remebered when press save buttun in GoogleMap
module settings (only in v0.3.2, in 0.3.1 works ok)
2) icons in map dont show up, or only the magnify icon is shown.
Posts: 224
Sorry if this is actually a feature I havent tested it out yet, but it would be cool if you could click a marker on the page and it shows that marker on the map, so you can have several different colored markers showing differant things. An example would be say a green marker for hotels and a red marker for restaurants, clicking show all would show both markers on map, clicking green would just show hotels on map, etc. This would help reduce clutter and help people doing more specific searches with the map. Cheers and sorry if this is already a feature I will have time to test it soon.
Posts: 50
Same happens in my gallery. Any ideas?
Thanks in advance!
Posts: 54
I have just installed the latest google map module V3.0.2 complete with later addition of ShowMap.tpl and I too get no map display whatsoever. If I view the page source in my browser I can see lots of stuff which looks similar to how it used to look but I have no idea what the problem is just yet. The page display is like that of chrisvdbs, i.e. empty.
To upgrade I de-activated the old module, moved it away and copied the new module in its place. Then upgraded and activeated the new module. I saw no error mesages at all this time and I 'think' it all got installed properly. but the problem persists.
I see there is a new custom field 'Zoom Level' in my albums and phots, they are blank.
Anyone got any ideas how to fault find this? Regards, Dave.
edit:
For what its worth the 'Get via a Map' feature is still working.
Posts: 1894
Yes I think I know what your problem is, try to go back to the AdminPage and do a save, it seems that it doesn't gather the Marker size and so is unable to display them correctly ....
Basically you have an erro showing up at New Gsize(,) ... the values should be the ones from the getimagesize. I'll take a look as of why it happened
Posts: 1894
Maybe you can try doing a "maintenance -> delete template cache"
You seem to have a problem with 2 different templates being used, the normal template has a dropdown for the control type and not a radio anymore. Also there is a bunch more option than just "small/large/none"
Let us know if it fixes your problems
Posts: 1894
This is not currently a feature and would indeed be good, It's currently on the todo (it shows up as grouping) and hopefully will be there soon
Posts: 50
I've tried both deleting template cache and re-saving options, but there's still no map
Posts: 1894
Now, I have checked the file over and over and I see no reason for it to not work ....
basically what's happenning is that it does not populate the size of the markers and so fail to create any marker which leads to the Javascript to fail and so the map doesn't display ....
I guess the bottom line is that it should just work , the same function is used in the AdminPanel to display the "current size" of the basemarkers...
-------------------------
The Termite
Posts: 1894
I was taking a close look into the sourcecode of all of you who provided a link and you all have the same behavior:
The map is trying to use a marker called "marker_default.png" which does not exist ... this is probably why it doesn't get a size for it and so is not able to display the markers...
Now I need to figure out why it's trying to use a marker called "default" ...
-------------------------
The Termite
Posts: 1894
I have tried to gather the sizes of the markers in a different way, you just need the enclosed ShowMap.inc file, overwrite the existing and please let me know if it works better for you guys...
-------------------------
The Termite
Posts: 54
Yep, thats better
Just one thing, this is the first time I've seen the magnify icon not quite placed properly, Oh well.
edit: That was with 'Stock small' selected, everything is correct with 'Stock large'
Posts: 1894
Cool, I guess I will replace all 0.3.2 module with the one including this file for new comers
djrm2 Can you show me a screenshot of the placement problem ? I'd like to check something ...
Posts: 1894
I have been lokking around for a solution to a precentage based map size instead of a fixed number and I found a partial one !!
indeed, I've got it so that it uses 100% of the available space (width and height) but it's based on the size of the window and does not adjust when the window gets resized.
Does anyone know how to work the onResize function ? I'm not able to make it so that it automatically adjusts
Right now, you need to hit the refresh button for the size of the map to be refreshed to the size of the window so it's not perfect but it's getting close :D
-------------------------
The Termite
Posts: 54
Termite, see your PM for weblink showing problem, Dave
Posts: 54
The practice of updating download archives is, at best, confusing, is there a CVS database for the google map module?
Use of a revion control system would help users to see the diffs on new and updated modules.
Please accept this as an attempt at constructive criticism.
hth Dave.
Posts: 13
It does! Thanks...
I have two feature requests that I would like to share:
1) I was thinking together with a colleague about different ways of making the map module more friendly towards the very typical high concentration of markers in a particular area (e.g., your home country). We came up with the following... it would be nice to be able to define multiple maps, all with their own configuration settings: the setting we have now (markers, zoom level, initial center, ...), plus a name, plus a list of albums we want on this map. I could imagine that one would be able to specify something like A,B+,C*; meaning album A, album B and its childern, and album C and all of its ancestors (there is probably a better format). Additionally, we could give a map also a coordinate (its center point?), and allow to add this to other maps (so, A,B+,C*,map_D).
This setup would allow us to do the following. Make a world map and put all your travelling albums on this world map. On your home country (where you typically have many different albums) you put only a link to a second map. When you click on this map, the second map with only the albums of your home country opens, zoomed in and centered on your home country.
2) Would it be possible to allow for routes? I often have albums that refer to a tour (a hiking tour or trip through multiple coutries) rather than one location. I would find it great if it were possible to put a set of coordinates that are shown as a marker on the first coordinate, then line segments connecting all the coordinates in order, and finally a second marker at the last coordinate. Does the google api allow for this? Would it be difficult to implement?
Would any of these features also be useful to anybody else?
Best regards,
Chris.
Posts: 78
Stupid me, forgot to do that I usually do it. Everything works OK now, but I have some weird error now,
the map height is only 40-50px ?? Im attaching the picture.....