...tried it before, the same thing will try to do fresh install...
request/idea...what about using different marks on same map? Ability to choose mark type when entering coords?
jcampbell1
Joined: 2005-10-26
Posts: 8
Posted: Fri, 2005-11-11 02:59
ninjainvasion wrote:
Hi,
The only problem that I still have is the HTTP 500 internal server error whenever I go to the map.MapSiteAdmin page. My internet provider wasn't very helpful with the error log, but I could identify the code line that causes the error by inserting some die() calls... it seems that the glob() call on line 929 in MapSiteAdmin.inc causes the problem (the line is "foreach (glob($basegallerydir."images/map/*",GLOB_ONLYDIR) as $filenames)").
Does anybody have a clue?
I don't think this is related, but I get an error with the new module. Mine craps out and gives an error about the header. The solution I have found is to delete the last two blank lines from ShowMap.inc and MapSiteAdmin.inc. Hard to believe that does anything but it solves the problem.
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-11-11 03:46
Upgraded from 0.3.2 to latest (actual from cvs as of 7pm PST today) and viewing my map I have no markers displayed and a nice error message at the top of page
Warning: array_unique(): The argument should be an array in /var/www/localhost/htdocs/gallery2/modules/map/ShowMap.inc on line 46
I followed the wiki for upgrading.
EDIT: I just noticed by editing an image I had linked to the map has the Custom tab with entries still present and on the Google Map tab all entries are blank. I thought they supposed to have been automatically carried over.? Do I now have to manually update them all for the Google map tab?
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-11-11 04:05
EDIT 2: Well, I don't know what happened but the error cleared itself. Still have no markers unless I manually copy over the coordinates from Custom tab to Google map tab.
I noticed my G2 mysql database has two tables named g2_mapmap and g2_mapMap. All my coordinates are in the g2_mapmap and when I copy them over to the Google map tab they are written to the g2_mapMap table.
Did something go wrong? What's my next step?
Thanks!
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 07:53
Hi,
I modified the ShowMap.tpl a little bit to have a more compact JavaScript to produce the markers. The result should be exactly the same (if I made no errors), but the download of the map page should be a little bit faster.
The changes are:
Instead of creating a new GIcon and setting every attribute for each icon, use the GIcon copy constructor (ie. new GIcon(DefaultphotoIcon)) and modifying just the property that changes (ie. the image of different color). (This saves quite some lines of JavaScript)
Create only a new albumIcon for albums and only a new photoIcon for photos, instead of both each time. (Makes sense, duh?)
Create the HTML for the marker infoWindow inside a JavaScript function (createMarkerHTML(...)) instead of printing it every time. (This one reduces some more of the JavaScript/HTML code to download. On the other hand it probably slightly increases the JavaScript work that the browser has to do...)
and included the fix by galmoid for the zoom problem.
It works fine on my site, but it would be cool if somebody else could also test it. I attach the ShowMap.tpl (zipped) to this message, simply overwrite the old one in the modules/map/templates directory in order to test it.
Please comment!
------
Stealth activity reported - stay tuned for the Ninja Invasion
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-11-11 08:42
ninjainvasion,
I tried your revised ShowMap.tpl and it seems to work great on IE6, Firefox and wicked fast with Opera 9.
Zoom-in link works well. I only have 8 markers but the map does appear to load faster.
Good work!
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 09:09
swordfish wrote:
I noticed my G2 mysql database has two tables named g2_mapmap and g2_mapMap. All my coordinates are in the g2_mapmap and when I copy them over to the Google map tab they are written to the g2_mapMap table.
I think this is Termitenshort's favorite bug... sometimes capitals, sometimes not - you never know
------
Stay tuned for the Ninja Invasion
kwick60073
Joined: 2005-11-09
Posts: 8
Posted: Fri, 2005-11-11 14:03
Tried you modification ... It doesn't display a map and I get several errors in apache log about undefined index GxZoom. See below.
Quote:
[client 24.13.51.65] PHP Notice: Undefined index: GxZoom in /home/kenny/public_html/gallery2/modules/map/ShowMap.inc on line 274, referer: http://www.lexnik.net/~kenny/gallery2/main.php
There are similar errors for GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan.
I am using Gallery2 and map 0.4.1. For now, I have backed your change out.
Let me know if you need additional info.
Kenny
kwick60073
Joined: 2005-11-09
Posts: 8
Posted: Fri, 2005-11-11 14:23
I reverted back to my previous ShowMap.tpl and I still have the same problem! I could swear everything was working fine when I went to bed last night.
Kenny
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 14:53
igrcic wrote:
request/idea...what about using different marks on same map? Ability to choose mark type when entering coords?
Sure sounds easy enought to do ... we also need a "default" setting in case someone did not select one.
I'm gonna put a Feature request/idea section in the wiki :D
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 14:55
jcampbell1 wrote:
I don't think this is related, but I get an error with the new module. Mine craps out and gives an error about the header. The solution I have found is to delete the last two blank lines from ShowMap.inc and MapSiteAdmin.inc. Hard to believe that does anything but it solves the problem.
I have seen this happening 3 times to me already ... I dunno if it come from the zipping or the fact that the files are going to CSV ... I'm confused it used to not happen before
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 15:00
swordfish wrote:
EDIT 2: Well, I don't know what happened but the error cleared itself. Still have no markers unless I manually copy over the coordinates from Custom tab to Google map tab.
I noticed my G2 mysql database has two tables named g2_mapmap and g2_mapMap. All my coordinates are in the g2_mapmap and when I copy them over to the Google map tab they are written to the g2_mapMap table.
Did something go wrong? What's my next step?
Thanks!
hmmm ... well you could export the "data" part of g2_mapmap and import it to g2_mapMap so you wouldn't have to copy/paste manually everything.
Everywhere in the code i refer to mapMap but it was the same with customfield .... I just follow the same thing. I thought it was kinda weird but I also believed that it might be normal ...
Maybe you Mysql is case sensitive ? I'm not too sure. I'll check something
galmoid
Joined: 2005-11-07
Posts: 364
Posted: Fri, 2005-11-11 15:30
I find that this new ShowMap.tpl works just fine here.
-I have noticed that the 'Zoom In' link appears to be inconsistent (not
related to the new ShowMap.tpl). Sometimes it does not center the
map (appears to be on the first use); but instead, zooms without
actually centering.
-Not related to that inconsistency, I've also been trying out:
I noticed my G2 mysql database has two tables named g2_mapmap and g2_mapMap. All my coordinates are in the g2_mapmap and when I copy them over to the Google map tab they are written to the g2_mapMap table.
I haven't found any reference to g2_mapmap (lowercase) in the code... is it possible that there was one in an earlier version which could have caused swordfish's database to have 2 different tables?
------
Stay tuned for the Ninja Invasion
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 16:26
kwick60073 wrote:
Tried you modification ... It doesn't display a map and I get several errors in apache log about undefined index GxZoom. See below.
There are similar errors for GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan.
I think the modified .tpl shouldn't change the behavior of ShowMap.inc - but I'm not 100% sure, this is my first g2 template modification...
Anyway, did you check if the fields that have problems (GxZoom, GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan) are correctly set in your database? And maybe if you also have two different tables, g2_mapmap and g2_mapMap?
------
Stay tuned for the Ninja Invasion
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 16:31
igrcic wrote:
request/idea...what about using different marks on same map? Ability to choose mark type when entering coords?
Termitenshort wrote:
Sure sounds easy enought to do ... we also need a "default" setting in case someone did not select one.
What also would be cool is to have a differnt marker set for albums and photos - I think it should be easy to add a second marker set setting in the admin. These admin settings could also be the "default" setting if choosing a different marker for every point is enabled.
------
Stay tuned for the Ninja Invasion
djrm2
Joined: 2005-10-04
Posts: 54
Posted: Fri, 2005-11-11 17:49
Greetings.
Ripe with the expectation of great things with the route feature I have installed the Google Map module V0.4.1 ,everyting seems to have gone ok with the upgrade. I have tranferred my locations data to the new table. The map is looking fine as before. I have added a route by selecting some of my photos which appear on the map. However the route does not show on the map neither does anything appear on the Routes Management screen when I try to edit the route. Something is amis but I dont wnow wht. Any ideas to help me sort this problem.? Regards, Dave
Edit, Sorry I hadn't noticed the bit about Route Edit not being available. Where can I check if the route data has been entered properly? Dave.
Oops, it seems that it is vital that a sequence number is entered when creating a route, I works now. sorry to trouble you. tahnks again, Dave.
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-11-11 18:00
From the wiki:
Quote:
edit route doesn't work! It just returns me back to a list of routes.
But dont know if the button is functional at all, cuz this is the first version.
btw nice job Termite
=> did not implement it coz got tired at 3am :D
I reverted back to my previous ShowMap.tpl and I still have the same problem! I could swear everything was working fine when I went to bed last night.
Kenny
Sometime when you change a template you need to go and delete the template cache I regularely have the issue ....
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 18:16
ninjainvasion wrote:
I haven't found any reference to g2_mapmap (lowercase) in the code... is it possible that there was one in an earlier version which could have caused swordfish's database to have 2 different tables?
------
Stay tuned for the Ninja Invasion
No that is not possible, I have not changed anything in the code after hte first time BUT, my instruction to upgrade from 0.3.2 to 0.4.1 where mentioning g2_mapmap and maybe that is where the wrong table got created ....
Very likely
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 18:17
ninjainvasion wrote:
I think the modified .tpl shouldn't change the behavior of ShowMap.inc - but I'm not 100% sure, this is my first g2 template modification...
Anyway, did you check if the fields that have problems (GxZoom, GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan) are correctly set in your database? And maybe if you also have two different tables, g2_mapmap and g2_mapMap?
------
Stay tuned for the Ninja Invasion
You are aboslutely correct on that, modifying the .tpl does not affect the .inc
see you
-------------------
The Termite
kwick60073
Joined: 2005-11-09
Posts: 8
Posted: Fri, 2005-11-11 18:19
That makes sense...it also explains why it just started working after a little while. All it working again, even with the modified ShowMap.tpl.
New Question: With the recent improvements (0.4.1), the changes to album.tpl and photo.tpl don't seem to be needed anymore. Is this correct? If so, the info should be removed the the admin page and maybe a note added to the wiki.
I'd be happy to contribute, but just wanted to double check be changing anything.
Kenny
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 18:20
ninjainvasion wrote:
What also would be cool is to have a differnt marker set for albums and photos - I think it should be easy to add a second marker set setting in the admin. These admin settings could also be the "default" setting if choosing a different marker for every point is enabled.
Edit, Sorry I hadn't noticed the bit about Route Edit not being available. Where can I check if the route data has been entered properly? Dave.
The route appear on AdminPanel -> Route Management then it should show up on the map. If not I would like a copy/paste of the view source to check what's going on.
The Routes are stored in the table called g2_pluginparamtermap, there are all the settings for the map module and one of them is called "ROUTES" this is wehere the routes are stored.
EDIT: Also, sometime it happens to me that the route takes a little while to draw and that is due to the fact that they draw at the very end of the map loading ... everytile needs to be loaded before it starts drawing the polylines. It might be caused by the API or by the fact that the polilyne drawing is at the end of the file (not sure at this point)
Let me know !
--------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 18:27
kwick60073 wrote:
New Question: With the recent improvements (0.4.1), the changes to album.tpl and photo.tpl don't seem to be needed anymore. Is this correct? If so, the info should be removed the the admin page and maybe a note added to the wiki.
I'd be happy to contribute, but just wanted to double check be changing anything.
Kenny
Hmm yeah of course ... i will do that now, should be quick enought
voidtrance
Joined: 2005-10-21
Posts: 26
Posted: Fri, 2005-11-11 18:30
Is it possible to have the maps show the zoom slider and center button that is usually between the four directional buttons? I have played with all the settings possible, enabled the GxMagnifier (which I don't really know what it is!!) and I can't seem to get them to show up.
Thanx for your help!
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 18:42
voidtrance wrote:
Is it possible to have the maps show the zoom slider and center button that is usually between the four directional buttons? I have played with all the settings possible, enabled the GxMagnifier (which I don't really know what it is!!) and I can't seem to get them to show up.
Thanx for your help!
Yes if you choose "Stock - Large" in the theme tab, you can have the slider.
GxMagnifier is basically a zoomed windows that is linked to your mouse and let you see a "zoomed" version at all time.
See you
--------------------
The Termite
voidtrance
Joined: 2005-10-21
Posts: 26
Posted: Fri, 2005-11-11 18:48
Great! Thanx, it would have never occured to me that it could be there. I like this module more and more all the time. I guess, now I just need to start taking more picture and writing down where I took them
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-11-11 18:57
Don't we all
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 19:00
kwick60073 wrote:
New Question: With the recent improvements (0.4.1), the changes to album.tpl and photo.tpl don't seem to be needed anymore. Is this correct? If so, the info should be removed the the admin page and maybe a note added to the wiki.
Something else, I actually get a "Show Google Map" link for every item in every album view, although in my theme settings (matrix theme) I haven't selected to show "Google Map" or "Item actions". Is this a bug? Anybody (ie. Termitenshort ) know how to make this obey the theme settings? I can actually make these links disappear in the getItemLinks() function in module.inc.
------
Stay tuned for the Ninja Invasion
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-11-11 19:02
Is there a trick to removing the coordinates from an item (album / photo)? I can change them but not remove them.
Is there a trick to removing the coordinates from an item (album / photo)? I can change them but not remove them.
Dave
This is currently reported as a bug in the wiki. For the moment I think you would have to delete the coordinates directly in the database.
------
Stay tuned for the Ninja Invasion
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 19:14
Something else that would be cool... if you already have coordinates entered but want to adapt them, it would be great if the "Grab coordinate from Map" feature would center and zoom to the current values (GPS coordinates and zoom level). (Added this to the To do list)
------
Stay tuned for the Ninja Invasion
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 19:14
floridave wrote:
Is there a trick to removing the coordinates from an item (album / photo)? I can change them but not remove them.
that's a bug that I added when I had put some error control on the field ... I'll be fixing that. In the mean time you can go and edit the g2_mapmap table and just delete the entry you don't want to have :D
djrm2
Joined: 2005-10-04
Posts: 54
Posted: Fri, 2005-11-11 19:19
I had this problem where the route I created didn't show up. It must have been because I did not add any order numbers on my first attempt. On subsequent efforts I filled this in for every item and the routes now appear. This is tedious and prone to error - but it works. Dave
floridave
Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2005-11-11 19:19
Termitenshort wrote:
that's a bug that I added when I had put some error control on the field ... I'll be fixing that. In the mean time you can go and edit the g2_mapmap table and just delete the entry you don't want to have :D
Thanks, I guess I should read the wiki more often. ;-) I thought I read it yesterday but at the speed of this module even that would be late.
Dave
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 20:22
Igrcic has had a great idea:
We should all upload a pic (a logo, a photo, anything really) on a gallery2 with our GPS coordinate (doesn't have to be exact, don't give up your address ...)
Then a map would show where we all are !!!
Blue icons for developers
Green icons for testers
Purple icons for other users
Wouldn't that be fun ?
Well I have created a gallery album that has that possibility http://termite.responsiveweb.com/gallery2/v/dev/ , guest can upload pics and change the settings (we count on honesty to keep it acurate)
Thanks Igrcic for this really good idea and let's all upload a pic/photo/...
See you
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 20:38
igrcic wrote:
...tried it before, the same thing will try to do fresh install...
Did you also try to delete your template cache ? coz in the code it was definitively using the cache...
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 20:54
galmoid wrote:
0.4.1 is looking really good.
I found that I did not care to see the 'Show Google Map' link under each
album; but rather, only in the sidebar
I have added this to the module and uploaded revision to the CVS, thx galmoid :D
-------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 20:58
Quote:
No markers visible View All Available MarkerSets in Google Map Admin doesn't show any markers
Can I get more precision so I can fix this bug ? (I like view/source :D)
-------------------------
The Termite
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 21:04
Bug Fixing:
* Cannot delete GPS coordinate from an album/photo -> change the preg_match
* Cannot have 0 in ZoomLevel
* HTTP 500 Error In some cases the glob() function of PHP errors out, it needs to have *.* instead of *
Those are solved in the CVS. I will leave them in the wiki until I upload a new version
See you
-------------------------
The Termite
ninjainvasion
Joined: 2005-11-05
Posts: 78
Posted: Fri, 2005-11-11 21:29
Termitenshort wrote:
Thanks Igrcic for this really good idea and let's all upload a pic/photo/...
Very good idea indeed, and thanks Termite for making the gallery available!
Termitenshort wrote:
Can I get more precision so I can fix this bug ? (I like view/source :D)
Sent you pm - I'll also try to find out what's going wrong, but later
------
Stay tuned for the Ninja Invasion
FOBioPatel
Joined: 2004-07-25
Posts: 26
Posted: Fri, 2005-11-11 22:12
voidtrance wrote:
Is it possible to have the maps show the zoom slider and center button that is usually between the four directional buttons? I have played with all the settings possible, enabled the GxMagnifier (which I don't really know what it is!!) and I can't seem to get them to show up.
Thanx for your help!
GxMagnifier doesn't appear unless you are logged into the gallery.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 22:22
FOBioPatel wrote:
GxMagnifier doesn't appear unless you are logged into the gallery.
Bug added to the wiki
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-11-11 23:03
Termitenshort wrote:
ninjainvasion wrote:
I haven't found any reference to g2_mapmap (lowercase) in the code... is it possible that there was one in an earlier version which could have caused swordfish's database to have 2 different tables?
------
Stay tuned for the Ninja Invasion
Quote:
No that is not possible, I have not changed anything in the code after hte first time BUT, my instruction to upgrade from 0.3.2 to 0.4.1 where mentioning g2_mapmap and maybe that is where the wrong table got created ....
Very likely
Yep, thats exactly what happened to me. Not a big deal, an easy fix.
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 23:17
swordfish wrote:
Yep, thats exactly what happened to me. Not a big deal, an easy fix.
Sorry about that
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Fri, 2005-11-11 23:22
Termitenshort wrote:
FOBioPatel wrote:
GxMagnifier doesn't appear unless you are logged into the gallery.
Quote:
Bug added to the wiki
Hmm, this is odd. I don't see this issue in IE nor Firefox (G2 embedded) and tried on 3 different machines. G2 standalone only?
Termitenshort
Joined: 2005-10-09
Posts: 1894
Posted: Fri, 2005-11-11 23:37
swordfish wrote:
Hmm, this is odd. I don't see this issue in IE nor Firefox (G2 embedded) and tried on 3 different machines. G2 standalone only?
Talking about odd ... I have had the problem and now it just disapear and I can't reproduce it
igrcic
Joined: 2005-04-19
Posts: 78
Posted: Sat, 2005-11-12 00:08
swordfish wrote:
Hmm, this is odd. I don't see this issue in IE nor Firefox (G2 embedded) and tried on 3 different machines. G2 standalone only?
i cant confirm it.....it works nice for me for a long time now. not logged in.
swordfish
Joined: 2004-10-01
Posts: 388
Posted: Sat, 2005-11-12 00:12
I think a few folks reported the magnify icon for GxMagnifier does not center well (overlaps the up arrow)
when positioned in top left corner. This occurs when selecting Stock - small for Map control on Theme settings tab. I noticed if you select Stock - Large the magnify icon is positioned correctly.
Posts: 78
...tried it before, the same thing will try to do fresh install...
request/idea...what about using different marks on same map? Ability to choose mark type when entering coords?
Posts: 8
I don't think this is related, but I get an error with the new module. Mine craps out and gives an error about the header. The solution I have found is to delete the last two blank lines from ShowMap.inc and MapSiteAdmin.inc. Hard to believe that does anything but it solves the problem.
Posts: 388
Upgraded from 0.3.2 to latest (actual from cvs as of 7pm PST today) and viewing my map I have no markers displayed and a nice error message at the top of page
I followed the wiki for upgrading.
EDIT: I just noticed by editing an image I had linked to the map has the Custom tab with entries still present and on the Google Map tab all entries are blank. I thought they supposed to have been automatically carried over.? Do I now have to manually update them all for the Google map tab?
Posts: 388
EDIT 2: Well, I don't know what happened but the error cleared itself. Still have no markers unless I manually copy over the coordinates from Custom tab to Google map tab.
I noticed my G2 mysql database has two tables named g2_mapmap and g2_mapMap. All my coordinates are in the g2_mapmap and when I copy them over to the Google map tab they are written to the g2_mapMap table.
Did something go wrong? What's my next step?
Thanks!
Posts: 78
Hi,
I modified the ShowMap.tpl a little bit to have a more compact JavaScript to produce the markers. The result should be exactly the same (if I made no errors), but the download of the map page should be a little bit faster.
The changes are:
It works fine on my site, but it would be cool if somebody else could also test it. I attach the ShowMap.tpl (zipped) to this message, simply overwrite the old one in the modules/map/templates directory in order to test it.
Please comment!
------
Stealth activity reported - stay tuned for the Ninja Invasion
Posts: 388
ninjainvasion,
I tried your revised ShowMap.tpl and it seems to work great on IE6, Firefox and wicked fast with Opera 9.
Zoom-in link works well. I only have 8 markers but the map does appear to load faster.
Good work!
Posts: 78
I think this is Termitenshort's favorite bug... sometimes capitals, sometimes not - you never know
------
Stay tuned for the Ninja Invasion
Posts: 8
Tried you modification ... It doesn't display a map and I get several errors in apache log about undefined index GxZoom. See below.
There are similar errors for GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan.
I am using Gallery2 and map 0.4.1. For now, I have backed your change out.
Let me know if you need additional info.
Kenny
Posts: 8
I reverted back to my previous ShowMap.tpl and I still have the same problem! I could swear everything was working fine when I went to bed last night.
Kenny
Posts: 1894
Sure sounds easy enought to do ... we also need a "default" setting in case someone did not select one.
I'm gonna put a Feature request/idea section in the wiki :D
Posts: 1894
I have seen this happening 3 times to me already ... I dunno if it come from the zipping or the fact that the files are going to CSV ... I'm confused it used to not happen before
Posts: 1894
hmmm ... well you could export the "data" part of g2_mapmap and import it to g2_mapMap so you wouldn't have to copy/paste manually everything.
Everywhere in the code i refer to mapMap but it was the same with customfield .... I just follow the same thing. I thought it was kinda weird but I also believed that it might be normal ...
Maybe you Mysql is case sensitive ? I'm not too sure. I'll check something
Posts: 364
I find that this new ShowMap.tpl works just fine here.
-I have noticed that the 'Zoom In' link appears to be inconsistent (not
related to the new ShowMap.tpl). Sometimes it does not center the
map (appears to be on the first use); but instead, zooms without
actually centering.
-Not related to that inconsistency, I've also been trying out:
in place of the 'centerAndZoom'.
Posts: 78
I haven't found any reference to g2_mapmap (lowercase) in the code... is it possible that there was one in an earlier version which could have caused swordfish's database to have 2 different tables?
------
Stay tuned for the Ninja Invasion
Posts: 78
I think the modified .tpl shouldn't change the behavior of ShowMap.inc - but I'm not 100% sure, this is my first g2 template modification...
Anyway, did you check if the fields that have problems (GxZoom, GxZoomNum, GxSize, GxSizeX, GxSizeY, GxPan and GxAutoPan) are correctly set in your database? And maybe if you also have two different tables, g2_mapmap and g2_mapMap?
------
Stay tuned for the Ninja Invasion
Posts: 78
What also would be cool is to have a differnt marker set for albums and photos - I think it should be easy to add a second marker set setting in the admin. These admin settings could also be the "default" setting if choosing a different marker for every point is enabled.
------
Stay tuned for the Ninja Invasion
Posts: 54
Greetings.
Ripe with the expectation of great things with the route feature I have installed the Google Map module V0.4.1 ,everyting seems to have gone ok with the upgrade. I have tranferred my locations data to the new table. The map is looking fine as before. I have added a route by selecting some of my photos which appear on the map. However the route does not show on the map neither does anything appear on the Routes Management screen when I try to edit the route. Something is amis but I dont wnow wht. Any ideas to help me sort this problem.? Regards, Dave
Edit, Sorry I hadn't noticed the bit about Route Edit not being available. Where can I check if the route data has been entered properly? Dave.
Oops, it seems that it is vital that a sequence number is entered when creating a route, I works now. sorry to trouble you. tahnks again, Dave.
Posts: 27300
From the wiki:
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 1894
Sometime when you change a template you need to go and delete the template cache I regularely have the issue ....
Posts: 1894
No that is not possible, I have not changed anything in the code after hte first time BUT, my instruction to upgrade from 0.3.2 to 0.4.1 where mentioning g2_mapmap and maybe that is where the wrong table got created ....
Very likely
Posts: 1894
You are aboslutely correct on that, modifying the .tpl does not affect the .inc
see you
-------------------
The Termite
Posts: 8
That makes sense...it also explains why it just started working after a little while. All it working again, even with the modified ShowMap.tpl.
New Question: With the recent improvements (0.4.1), the changes to album.tpl and photo.tpl don't seem to be needed anymore. Is this correct? If so, the info should be removed the the admin page and maybe a note added to the wiki.
I'd be happy to contribute, but just wanted to double check be changing anything.
Kenny
Posts: 1894
Even better, do you mind updating the wiki ? (http://codex.gallery2.org/index.php/Gallery2:Modules:Map), you should also put your name in the developer team coz I will add your change to the code permanentely (thx btw)
Posts: 1894
The route appear on AdminPanel -> Route Management then it should show up on the map. If not I would like a copy/paste of the view source to check what's going on.
The Routes are stored in the table called g2_pluginparamtermap, there are all the settings for the map module and one of them is called "ROUTES" this is wehere the routes are stored.
EDIT: Also, sometime it happens to me that the route takes a little while to draw and that is due to the fact that they draw at the very end of the map loading ... everytile needs to be loaded before it starts drawing the polylines. It might be caused by the API or by the fact that the polilyne drawing is at the end of the file (not sure at this point)
Let me know !
--------------------
The Termite
Posts: 1894
Hmm yeah of course ... i will do that now, should be quick enought
Posts: 26
Is it possible to have the maps show the zoom slider and center button that is usually between the four directional buttons? I have played with all the settings possible, enabled the GxMagnifier (which I don't really know what it is!!) and I can't seem to get them to show up.
Thanx for your help!
Posts: 1894
Yes if you choose "Stock - Large" in the theme tab, you can have the slider.
GxMagnifier is basically a zoomed windows that is linked to your mouse and let you see a "zoomed" version at all time.
See you
--------------------
The Termite
Posts: 26
Great! Thanx, it would have never occured to me that it could be there. I like this module more and more all the time. I guess, now I just need to start taking more picture and writing down where I took them
Posts: 27300
Don't we all
Posts: 78
Something else, I actually get a "Show Google Map" link for every item in every album view, although in my theme settings (matrix theme) I haven't selected to show "Google Map" or "Item actions". Is this a bug? Anybody (ie. Termitenshort ) know how to make this obey the theme settings? I can actually make these links disappear in the getItemLinks() function in module.inc.
------
Stay tuned for the Ninja Invasion
Posts: 27300
Is there a trick to removing the coordinates from an item (album / photo)? I can change them but not remove them.
Dave
____________________________________________________
Gallery Frames / Mods || G1 Test Gallery
Posts: 78
This is currently reported as a bug in the wiki. For the moment I think you would have to delete the coordinates directly in the database.
------
Stay tuned for the Ninja Invasion
Posts: 78
Something else that would be cool... if you already have coordinates entered but want to adapt them, it would be great if the "Grab coordinate from Map" feature would center and zoom to the current values (GPS coordinates and zoom level). (Added this to the To do list)
------
Stay tuned for the Ninja Invasion
Posts: 1894
that's a bug that I added when I had put some error control on the field ... I'll be fixing that. In the mean time you can go and edit the g2_mapmap table and just delete the entry you don't want to have :D
Posts: 54
I had this problem where the route I created didn't show up. It must have been because I did not add any order numbers on my first attempt. On subsequent efforts I filled this in for every item and the routes now appear. This is tedious and prone to error - but it works. Dave
Posts: 27300
Thanks, I guess I should read the wiki more often. ;-) I thought I read it yesterday but at the speed of this module even that would be late.
Dave
Posts: 1894
Igrcic has had a great idea:
We should all upload a pic (a logo, a photo, anything really) on a gallery2 with our GPS coordinate (doesn't have to be exact, don't give up your address ...)
Then a map would show where we all are !!!
Blue icons for developers
Green icons for testers
Purple icons for other users
Wouldn't that be fun ?
Well I have created a gallery album that has that possibility http://termite.responsiveweb.com/gallery2/v/dev/ , guest can upload pics and change the settings (we count on honesty to keep it acurate)
The map can then be seen here: http://termite.responsiveweb.com/gallery2/main.php?g2_view=map.ShowMap
Thanks Igrcic for this really good idea and let's all upload a pic/photo/...
See you
-------------------------
The Termite
Posts: 1894
Did you also try to delete your template cache ? coz in the code it was definitively using the cache...
Posts: 1894
I have added this to the module and uploaded revision to the CVS, thx galmoid :D
-------------------
The Termite
Posts: 1894
Can I get more precision so I can fix this bug ? (I like view/source :D)
-------------------------
The Termite
Posts: 1894
Bug Fixing:
* Cannot delete GPS coordinate from an album/photo -> change the preg_match
* Cannot have 0 in ZoomLevel
* HTTP 500 Error In some cases the glob() function of PHP errors out, it needs to have *.* instead of *
Those are solved in the CVS. I will leave them in the wiki until I upload a new version
See you
-------------------------
The Termite
Posts: 78
Very good idea indeed, and thanks Termite for making the gallery available!
Sent you pm - I'll also try to find out what's going wrong, but later
------
Stay tuned for the Ninja Invasion
Posts: 26
GxMagnifier doesn't appear unless you are logged into the gallery.
Posts: 1894
Bug added to the wiki
Posts: 388
Posts: 1894
Sorry about that
Posts: 388
Posts: 1894
Talking about odd ... I have had the problem and now it just disapear and I can't reproduce it
Posts: 78
i cant confirm it.....it works nice for me for a long time now. not logged in.
Posts: 388
I think a few folks reported the magnify icon for GxMagnifier does not center well (overlaps the up arrow)
when positioned in top left corner. This occurs when selecting Stock - small for Map control on Theme settings tab. I noticed if you select Stock - Large the magnify icon is positioned correctly.