4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: sigma on November 19, 2005, 05:48:54 PM

Title: Google Maps integration
Post by: sigma on November 19, 2005, 05:48:54 PM
Was wondering if someone would like to help me with this Mod. I currently have it working within iframe.

Demo can be seen here http://cydonian.com/photos/index.php?template=gmap
I have Info Windows displaying on Markers which allow HTML. If you click on the Image in the Info Balloon you will go directly to that Category or Image. Not to difficult to get this going using just Iframe and the Google API (http://www.google.com/apis/maps/).

What I would like to do now is add a couple admin functions. Lets say I want to add a new picture to my 4images DB. I need to add a feild to the upload window that will allow me to specify the GMap location using Coordinates that Google Map recognises. You can get free Geocode here (http://www.infosports.com/m/map.htm). I also would like the thumbnail image for that image to be also used in the Info Balloon you create for the GMap Marker.

The GMap code to add a marker with lat/long coordinates is the following.

Code: [Select]
// One more point and marker
// Give your Marker a name here
var point## = new GPoint(-79.4951605796814, 43.84219580772155);
var marker## = createMarker(point##,'<b>Title of Image or Category<b><br><a href="http://www.yourdomain.com/location/" target="_parent"><img src="http://yourdomain.com/image.jpg" width=140 height=105 border="0"></a></div>')
map.addOverlay(marke##);

This is the code needed to be entered into the gmap.htm file with the google map info.

Anyone interested in lending me a hand with this?
The Google Map code im still learning but I've got it working for what I need. Nows its just a matter of connecting it to the 4images database and automating some upload funtions.
Title: Re: Google Maps integration
Post by: sigma on November 27, 2005, 03:47:49 PM
Either no one else is interested in a mod like this or its too difficult to code.

?
Title: Re: Google Maps integration
Post by: V@no on November 27, 2005, 07:59:39 PM
The problem is that the members will have to manualy get the geocode for your site - not many would willing to do so. If you could get such from their IP, or something, - that would be something more productive.
Title: Re: Google Maps integration
Post by: sigma on November 28, 2005, 04:31:06 AM
There is a way for google maps to generate this information using markers. It outputs the info to a input field. I know of another site that uses google maps this way. What I really need to do is test some code in the upload.php . I'll see what I can do. In the end all I will need help with is pushing some code into the gmap.htm or gmap.php file so it can update and be stored in the db.

Keep you posted.
Title: Re: Google Maps integration
Post by: V@no on November 29, 2005, 06:08:12 AM
Ops...I think missread your post, I was talking about completly different usage of google map...
my bad.
Title: Re: Google Maps integration
Post by: gnikolay on January 25, 2006, 06:33:01 AM
I am intrested also in such integration :)

and for now also made this by hand: http://www.otdyh.crimea.ua/vt-webf.html
fulscren map of Crimea Ukraine, text in Russian - but not more:)

not a familiar with php/mysql, could some one help as?
sure, from this integration 4images only better!

I think this info should be useful:
http://sourceforge.net/projects/phpgooglemaps/
http://www.xml.com/lpt/a/2005/08/10/google-maps.html

as Vano pointed - visitors will not get latidute longitude numbers, but we can simplifier this task with showing map and asking them to click on map where the foto was shot - and then pas lan/lot value to the form
I use myself this map: http://www.mapki.com/index.php?title=Get_Lon_Lat

Vano глянь плиз, может это не сложно совсем?

Either no one else is interested in a mod like this or its too difficult to code.

?
Title: Re: Google Maps integration
Post by: SAD on January 26, 2006, 12:41:30 PM
I am intrested also in such integration :)

and for now also made this by hand: http://www.otdyh.crimea.ua/vt-webf.html
fulscren map of Crimea Ukraine, text in Russian - but not more:)

not a familiar with php/mysql, could some one help as?
sure, from this integration 4images only better!

I think this info should be useful:
http://sourceforge.net/projects/phpgooglemaps/
http://www.xml.com/lpt/a/2005/08/10/google-maps.html

as Vano pointed - visitors will not get latidute longitude numbers, but we can simplifier this task with showing map and asking them to click on map where the foto was shot - and then pas lan/lot value to the form
I use myself this map: http://www.mapki.com/index.php?title=Get_Lon_Lat

Vano глянь плиз, может это не сложно совсем?

Either no one else is interested in a mod like this or its too difficult to code.

?


Вот тут есть некое решение такого
http://coppermine-gallery.net/forum/index.php?topic=26571.0


Title: Re: Google Maps integration
Post by: gnikolay on January 31, 2006, 07:19:34 AM
Спасибо SAD!
именно то что нужно - и класно же выглядит:)
буду пробовать такое для 4images сделать.



Вот тут есть некое решение такого
http://coppermine-gallery.net/forum/index.php?topic=26571.0



Title: Re: Google Maps integration
Post by: SAD on January 31, 2006, 08:05:53 AM
gnikolay
потом поделись изысками :)
Title: Re: Google Maps integration
Post by: impss on January 31, 2006, 02:26:37 PM
Anyone else take a look at V@nos website?
http://gallery.vano.org/

He has a google map mod, I was hopping he was going to post his code, once he is done beta testing it.

Title: Re: Google Maps integration
Post by: SAD on February 27, 2006, 02:13:09 PM
Спасибо SAD!
именно то что нужно - и класно же выглядит:)
буду пробовать такое для 4images сделать.

Удалось прикрутить?
Title: Re: Google Maps integration
Post by: tdkpaul on September 03, 2006, 05:02:49 PM
There are already google maps out there!
But unfortunately only for coppermine and menalto gallery 2

http://coppermine-gallery.net/forum/index.php?topic=31206.0

http://codex.gallery2.org/index.php/Gallery2:Modules:Map


This modifications might help to customise them to 4images.


Title: Re: Google Maps integration
Post by: host on January 23, 2007, 12:27:34 PM
Hi All, 

are there still some people interested in this feature?

I played a little bit with Google-Maps and have it basically working.
It is based on some other websites where I found Google-Maps integrated in 4images.

At the moment it is not really finished, but I'm working on it...

You can find the example(s) here:
http://gallery.holger-stroeder.de/cat10.htm?l=english
http://gallery.holger-stroeder.de/img241.htm?l=english

If somebody is interested, I'll publish the coding...

Greets
Holger
Title: Re: Google Maps integration
Post by: sigma. on January 28, 2007, 08:35:45 PM
Nice work. I have my own setup right now but It needs alot of improvements.
The best example I've seen so far is on mawenzi's website

check it out. http://klick.kl.funpic.de/google_maps.php
Title: Re: Google Maps integration
Post by: host on January 30, 2007, 03:07:38 PM
Nice work. I have my own setup right now but It needs alot of improvements.
The best example I've seen so far is on mawenzi's website

check it out. http://klick.kl.funpic.de/google_maps.php

Thanks  :D
...and from mawenzi's site I learned a lot about google-maps integration.
Title: Re: Google Maps integration
Post by: host on February 11, 2007, 04:36:30 PM
Please see:
http://www.4homepages.de/forum/index.php?topic=16533 (http://www.4homepages.de/forum/index.php?topic=16533)

Greets HoSt
Title: Re: Google Maps integration
Post by: Borin on May 25, 2007, 11:20:07 AM
First, congratulations, sigma, your web is genial!!!!

I have searched Google maps ...and ..in  4images forum was the solution...

but "my 4images forum" is "spanish 4 images forum"


Very interesting

I will study it!!!!


Thanks