Author Topic: Google Maps integration  (Read 18473 times)

0 Members and 1 Guest are viewing this topic.

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Google Maps integration
« 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.

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. 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.

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: Google Maps integration
« Reply #1 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.

?

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Google Maps integration
« Reply #2 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline sigma

  • Full Member
  • ***
  • Posts: 127
    • View Profile
    • http://cydonian.com
Re: Google Maps integration
« Reply #3 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.

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Google Maps integration
« Reply #4 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.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline gnikolay

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • Tourism in Crimea, Ukraine
Re: Google Maps integration
« Reply #5 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.

?

Offline SAD

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Туристические ФотоАльбомы
Re: Google Maps integration
« Reply #6 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


Sergey


Offline gnikolay

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • Tourism in Crimea, Ukraine
Re: Google Maps integration
« Reply #7 on: January 31, 2006, 07:19:34 AM »
Спасибо SAD!
именно то что нужно - и класно же выглядит:)
буду пробовать такое для 4images сделать.



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




Offline SAD

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Туристические ФотоАльбомы
Re: Google Maps integration
« Reply #8 on: January 31, 2006, 08:05:53 AM »
gnikolay
потом поделись изысками :)
Sergey


Offline impss

  • Sr. Member
  • ****
  • Posts: 382
    • View Profile
    • Cusstom.net
Re: Google Maps integration
« Reply #9 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.


Offline SAD

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Туристические ФотоАльбомы
Re: Google Maps integration
« Reply #10 on: February 27, 2006, 02:13:09 PM »
Спасибо SAD!
именно то что нужно - и класно же выглядит:)
буду пробовать такое для 4images сделать.

Удалось прикрутить?
Sergey


Offline tdkpaul

  • Full Member
  • ***
  • Posts: 205
    • View Profile
Re: Google Maps integration
« Reply #11 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.


« Last Edit: September 03, 2006, 05:19:08 PM by tdkpaul »

Offline host

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Google Maps integration
« Reply #12 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

Offline sigma.

  • Full Member
  • ***
  • Posts: 148
  • cydonian.com/potd
    • View Profile
    • sigma's gallery
Re: Google Maps integration
« Reply #13 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

Offline host

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Google Maps integration
« Reply #14 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.