Google Map in Coppermine Gallery, version 2 (of mod and api) - Page 5 Google Map in Coppermine Gallery, version 2 (of mod and api) - Page 5
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Google Map in Coppermine Gallery, version 2 (of mod and api)

Started by Tranz, May 07, 2006, 10:05:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gt4mike

Yes, but in your Private message because the photos are too hot. ;)

Tranz

You have the gmap css showing up twice. Otherwise, changing #gmap height value works.

gt4mike

You have right.

I have delete the CSS style in google_map.php

And i have modified the height from #gmap in :

/plugins/master_template/codebase.php

It work's fine.  ;D

Thanks

Brunosh

Quote from: bongadam on August 08, 2006, 12:54:25 AM
Thank you very much for this great mod ! It is amazing.
I used it for few month without any problem. But now, if I have 3 or more pictures with the same lat/long, tab doesn't work (nothing is displayed when I clic to mark) and if I clic to image, a JS error occurs :


Erreur : [Exception... "Could not convert JavaScript argument arg 0 [nsIDOMHTMLDivElement.appendChild]"  nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)"  location: "JS frame :: http://maps.google.com/mapfiles/maps2.59.api.js :: Lb :: line 45"  data: no]
Fichier source : http://maps.google.com/mapfiles/maps2.59.api.js
Ligne : 45


I have noticed than Brunosh'map has the same error (http://yourbde.free.fr/coppermine/map.php)

This problem is quit new, all was ok before.

I have tried to upgrade the mod with your recent modification, without success  :'(

Bongadam

ps : sorry for my poor english

I checked and it is true that my main map http://yourbde.free.fr/coppermine/map.php was not working anymore!

so finally I followed this instruction =>

Quote from: TranzNDance on August 08, 2006, 07:03:00 AM
Yeah, something happen to the api code so for now, I'd recommend rolling back the version. In include/map.inc.php

Look for this:
<script src="http://maps.google.com/maps?file=api&amp;v=$version&amp;key=$map_key" type="text/javascript">


Replace with:
<script src="http://maps.google.com/maps?file=api&amp;v=2.58&amp;key=$map_key" type="text/javascript">


This is just temporary until Google fixes the latest version.

But I still have nothing on my main map  :'(
I don't know what is wrong!!!

Could it be possible that I tagged too much photos and the script doesn't like it ?

As for bongadam the other maps for albums and pictures are ok...

TranzNDance as during july I need you again  :)

Tranz

Brunosh,

I think you copied too much text when you got the coordinates for this image: http://yourbde.free.fr/coppermine/displayimage.php?pos=-463

Notice that the map is broken on that page, too.

Hope that helps.

Brunosh

False Alarm... lol
working again...
I tagged a photo with a piece of text...
he did not liked it I guess!

Everything Green, Super Green  ;)

TranzNDance, as the others, I'm loking foward for your code gathering the tags !
great feature for the future  ;)

[edit] haha you checked faster than me for my own website! Oh TranzNDance, again I am impressed  ;) :D

Cino

Thanks for a great mod!!! You already said it, reading exif would have been better. Would make the import go real smooth. Thanks again tho!!! keep up the great work.

jidol

Thank very much for great mod! If it waspossible to read  geolocated exif date, It would be amazing!!!!

Just one silly question, how to display in admin mode hybrid map insted of default map for editing the position? ( I tried it Settings/Google API and with no result). It is better if you need to locate your pics precisly in the more remote areas not covered with detailed maps.
Thank for your time.

Tranz

You can change in Config: Default type for small map

Or just click the type option button in the top right corner. If that's not available, let me know.

jidol

Quote from: TranzNDance on October 22, 2006, 05:08:44 PM
You can change in Config: Default type for small map

Or just click the type option button in the top right corner. If that's not available, let me know.

I changed that option a few times without any result - I set small map to hybrid, but still is being displayed as a  normal map.
As well there si  no button to switch to another map type in admin mode ( when I am updating single picture).

Again  big thank you for time spent with my questions :'(

Tranz

Sorry, that's my bad. In editOnePic.php,

FIND:
map.addControl(new GSmallMapControl());

REPLACE with:
map.setMapType({$CONFIG['gmap_small_type']});
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());


I have updated the code on the first page. Thanks for bringing it up. edipics.php is a little bit more complicated so I'll look into that.

pocketmon

Hi,

I am new to this forum, and like this mod very very much.
So, I spend sometime, (ok, not as much as applying this mod..) to check how to add EXIF support.

It's simpler than I expect, and The code I modified does work on my test bed.

However, I never write any PHP code before this. So, maybe please TranzNDance take a look at this code, to make this mod complete.

just my .02

arlon

This plugin seems great.. just.. I can't get it to work :-(

here is the map page http://www.agfx.eu/_/map.php "internal error"
Everything seems to work fine (admin, sql, etc..) except the main page.. how can I be the only one with such a problem? :-S

I checked the copy/paste twice, any suggestions?

Thanks in advance..

Tranz

pocketmom, thanks for your contribution. I'll take a look at it when I can.

arlon, have you checked that the chmod permissions are correct? If they are, can you copy the map file, rename it test.php and put in the following:
<?php
phpinfo
();
?>


arlon

#94
This is strange.. I can't create a phpinfo file, but can only access these informations via the server admin page.. here they are
[removed]
(hope it works)
what should I look for? (I'm pretty unexperienced, as you can understand :))

arlon

sorry for another post: I changed permissions for albums and include folders, during installation.. nothing else..

Tranz

OK, instead of the php info, can you have the following in between the php tags:

echo 'hello world';

There could be any number of reasons why there is a server error. One could be improper chmod setting. I want to see if the problem is with the file or with the code. I doubt the map code would cause a server error.

Tranz

Here's a post with a list of possible reasons for a 500 error:
http://www.lunarforums.com/forum/index.php?topic=36218.msg270977#msg270977

If none of them apply, and you've done the testing I've suggested, I would advise you ask your webhost.

I've removed the link to your phpinfo page. You really don't want others to see it. I just wanted you to see if there are issues with your settings or with the map file.

arlon

ok, I'll check this out!!

thanks a lot for your help, I'll let the board know if (and how) I'll solve this :)

pocketmon


I found that the following code doesn't work. 
if($exifRawData['GPS']['Longitude Reference']=='W') ..
So I changed it to
if(strncmp($exifRawData['GPS']['Longitude Reference'],"W",1)==0) ...

Now it should be ok for west and south earth location.