Canon Digital Photography Forums  

P.O.T.N. SUPPORT SHOP IS OPEN, check it out now!

Go Back   Canon Digital Photography Forums > 'Sharing Knowhow' section > Presentation
Register Rules FAQ Members List Search Today's Posts Mark Forums Read



Reply
 
Thread Tools Display Modes
Old 12th of September 2005 (Mon)   #1
Speedie
Member
 
Speedie's Avatar
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 353
Default My photos on a Google map

I just finished integrating a Google map of the UK on my photo website. Clicking on a marker on the map brings up a sample thumbnail image, clicking on the image goes to the gallery for that location. I don't have many locations yet but they will increase over time. The map is here. I learned how to do it with this article.
__________________
Gallery | Portfolio | PhotoBlog | Your photographs
Speedie is offline   Reply With Quote
This ad block will go away when you log in as member
Old 12th of September 2005 (Mon)   #2
thebrewer
Member
 
thebrewer's Avatar
 
Join Date: Jul 2005
Location: Mohawk Valley, NY
Posts: 772
Thumbs up Re: My photos on a Google map

Very nice! I see a new project ahead.

Rich
__________________

thebrewer is offline   Reply With Quote
Old 12th of September 2005 (Mon)   #3
Nidz
Goldmember
 
Nidz's Avatar
 
Join Date: Aug 2005
Location: VIC, Australia
Posts: 2,407
Default Re: My photos on a Google map

Hey I wanna do this.
__________________
Stop or I'll shoot!

CANON DIGITAL REBEL XT


Nidz is offline   Reply With Quote
This ad block will go away when you log in as member
Old 16th of September 2005 (Fri)   #4
Nidz
Goldmember
 
Nidz's Avatar
 
Join Date: Aug 2005
Location: VIC, Australia
Posts: 2,407
Default Re: My photos on a Google map

I gave it a go.. You will need some HTML knowledge.. I gave it a try and it's not as easy as it looks..
__________________
Stop or I'll shoot!

CANON DIGITAL REBEL XT


Nidz is offline   Reply With Quote
Old 17th of September 2005 (Sat)   #5
Speedie
Member
 
Speedie's Avatar
 
Join Date: Jun 2004
Location: United Kingdom
Posts: 353
Default Re: My photos on a Google map

If it's any help, here's the code that generates my map - you could maybe modify it to suit. You can see the different sections for each location (Tyneham, Weymouth etc.)

Code:
    <div id="map" style="margin-left: auto; margin-right: auto; width: 600px; height: 800px;"></div>
    <script type="text/javascript">
    //<![CDATA[
    
    var map = new GMap(document.getElementById("map"));
    map.addControl(new GMapTypeControl());
    map.addControl(new GLargeMapControl());
    map.centerAndZoom(new GPoint(-4, 55), 11);
    
    // Create the marker and corresponding information window
function createInfoMarker(point, address) {

   var marker = new GMarker(point);
   GEvent.addListener(marker, "click",
      function() {
         marker.openInfoWindowHtml(address);
      }
   );
  return marker;
}

    // Tyneham
    var point = new GPoint(-2.1728, 50.6209);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/tyneham.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/tyneham/fireplaces-thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/tyneham.php'>Tyneham</a>, Dorset - England's<br />lost village.</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // Weymouth
    var point = new GPoint(-2.4591, 50.6138);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/weymouth.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/weymouth/weymouth014-thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/weymouth.php'>Weymouth & Portland</a>, Dorset.</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // Bedfont Lakes
    var point = new GPoint(-0.4543, 51.4426);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/bedfont.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/bedfont-lakes/bedfont-lakes023-thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/bedfont.php'>Bedfont Lakes Country Park</a>,<br />Middlesex.</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // Hastings Country Park
    var point = new GPoint(0.6324, 50.8674);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/hastings.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/hastings/hastings041-thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/hastings.php'>Hastings Country Park</a>,<br />East Sussex.</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // Scottish Borders
    var point = new GPoint(-2.6576, 55.3727);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/scot-borders.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/scottish-borders/Scot_Borders_IMG_0062_thumb.JPG'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/scot-borders.php'>Scottish Borders</a></font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // East Devon
    var point = new GPoint(-3.4133, 50.5662);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/devon.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/devon/devon006-thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/devon.php'>East Devon</a></font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);

	 // Leeds Castle
    var point = new GPoint(0.6253, 51.2489);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/leeds-castle.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/leeds-castle/IMG_0567_thumb.JPG'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/leeds-castle.php'>Leeds Castle</a>, Kent</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);
	 
	 // Sound Mirrors
    var point = new GPoint(0.9520, 50.9572);
    address = "<a href='http://www.mgpages.co.uk/digitalnature/sound-mirrors.php'><img border='0' src='http://www.mgpages.co.uk/digitalnature/sound-mirrors/sound_mirrors%20013_thumb.jpg'</a><br /><font face='Arial' size='2'><a href='http://www.mgpages.co.uk/digitalnature/sound-mirrors.php'>Sound Mirrors</a>, Kent</font>";
    var marker = createInfoMarker(point, address);
	 map.addOverlay(marker);


    //]]>
    </script>
__________________
Gallery | Portfolio | PhotoBlog | Your photographs

Last edited by Speedie : 17th of September 2005 (Sat) at 05:58.
Speedie is offline   Reply With Quote
Old 17th of September 2005 (Sat)   #6
Crypto
Goldmember
 
Crypto's Avatar
 
Join Date: Aug 2005
Location: Northern Va
Posts: 2,643
Default Re: My photos on a Google map

very cool. Thanks for sharing
__________________
TCProimages
Canon 5DII
Canon 40D
Canon 100-400L, Canon 24-70L, Canon MP65 macro
Crypto is offline   Reply With Quote
Old 17th of September 2005 (Sat)   #7
TSEE
Goldmember
 
TSEE's Avatar
 
Join Date: Mar 2005
Location: Middle of Nowhere, USA.
Posts: 4,961
Default Re: My photos on a Google map

Darn that's neat. I like it a lot. Neat "portfolio" idea for travel photographers. Nice, very nice.
__________________
-Sue (TSEE)
My gear list finally got too long to list under my sig.

"All of us have photographic memory, some of us just don't have film."
"I hate cameras. They are so much more sure than I am about everything."
TSEE is offline   Reply With Quote
Old 17th of September 2005 (Sat)   #8
tonytony
Member
 
Join Date: Jun 2005
Location: Ireland
Posts: 132
Default Re: My photos on a Google map

Quote:
Originally Posted by Speedie
The map is here. I learned how to do it with this article.
Really cool and thank-you for sharing. I am sure it will get popular soon

Cheers,
Antonio
tonytony is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
P.O.T.N. Guest Map rssfhs POTN Member Activities 203 7th of January 2011 (Fri) 23:46
World map riyada Nature & Landscapes 9 13th of July 2007 (Fri) 21:15
Relief Map? T.D. Still Life, B/W & Experimental 19 20th of December 2006 (Wed) 00:05
Panoramio.com: Display your photos over Google Maps eduardo Presentation 2 14th of December 2005 (Wed) 09:46
Google moon photos Jonny The POTN Lounge 3 21st of July 2005 (Thu) 10:20


All times are GMT -5. The time now is 16:52.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This forum is not affiliated with Canon in any way and is run as a free user helpsite by Pekka Saarinen, Helsinki Finland. You will need to register in order to be able to post messages. Cookies are required for registering and posting. HTML in messages is not allowed, plain website addresses are automatically made active by the board.