Allotments 4 All

General => The Shed => Topic started by: Squash64 on February 17, 2013, 05:31:59

Title: How to add a location to Google maps?
Post by: Squash64 on February 17, 2013, 05:31:59
I want to add our allotments to Google maps - is this possible?
If so, how?

Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 17, 2013, 08:20:11
Depends what you mean Betty.
Unfirtunately google maps doesn't currently support adding markers to maps in the UK - you could do that here if you lived in the US!!  http://www.google.com/mapmaker

However of course you can add a google map to your website with your location marked - is that the sort of thing you mean?  Like www.barriedaleallotments.org.uk

This page does show you how but misses the bit about adding a pointer..

http://maps.google.co.uk/help/maps/getmaps/plot-one.html but click on the "plot many locations" link at the top of the page and it shows you how to add one or two pointers...

You will end up with some code to dump into your website..

The other thing you can do is to regisiter with google places but that is more of a business tool - this means that when you do a search on google your Map appears  like here https://www.google.co.uk/search?q=alleyns%20school.  This does involve proving you "own" the place...



Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 17, 2013, 17:01:44
Thanks Nick.
I looked at your website and that's exactly what I would like on ours.
How do you put the purple boundary bit on?
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 17, 2013, 17:32:53
Once you are logged into google maps and have created a map if you look in the top left corner of the map you should see thee icons.
One is a hand to move the map around, one is to add a pointer and the third is to draw line or a shape...

Let me know how you get on..
Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 17, 2013, 18:27:57
I'm probably being very thick here Nick, but I can see the icon
for drawing a shape but when I click on it, and choose 'Draw a line'
it doesn't do that, but just moves the map around.  I'm obviously
doing something wrong.....
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 07:20:14
Click and let go to make a point - move mouse to new location and click and let go again to make a line - do not hold the mouse button down..

Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 18, 2013, 10:24:37
Done it, thanks Nick.

Only problem is, the map looks too 'zoomed in', do you think
it matters?  I suppose people will zoom out if they really want to
find us.

Thanks for all your help, it's appreciated.  :icon_cheers:
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 10:41:25
YEah I seemed to have that issue if I remember..  Bear with me there is a way to fix it..
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 12:27:55
You should be able to go back to google maps and load you rmap.
If you can do that then head up to the link button.  Click that and it should look like this

(http://i.imgur.com/RRNcFuc.jpg)

Click on the Customise and preview embedded map.

Should help..

Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 12:37:28
Took the liberty of creating the code for you..Hope you dont mind!!

seems to work...


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15&amp;output=embed"></iframe>[br /]<small>View <a href="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15" style="color:#0000FF;text-align:left">Walsall Road Allotments[/url] in a larger map</small>
Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 18, 2013, 13:29:19
Quote from: BarriedaleNick on February 18, 2013, 12:37:28
Took the liberty of creating the code for you..Hope you dont mind!!

seems to work...


<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15&amp;output=embed"></iframe>[br /]<small>View <a href="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15" style="color:#0000FF;text-align:left">Walsall Road Allotments[/url] in a larger map</small>


I certainly don't mind - I'm very grateful that you took the time to
do it............however, it doesn't seem to work.  I'm obviously doing
something wrong  :BangHead:
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 14:15:05
You will need to copy all the text in the above box and paste it in to your site where your map is...
Starts with <iframe> ends with </small>

Just above my code snippet it says

Code:[Select] 

click on select and it selects everything in the code box.  Right click - Copy and then paste to browser..
I stuck it in a test web page...

http://web.alleyns.org.uk/Nick/betty.html (http://web.alleyns.org.uk/Nick/betty.html)

There is a link to a text file with the code in
Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 18, 2013, 14:45:34
Nick, you are going to get fed up with me in a minute - I did exactly what
you said but it still doesn't come up.  The test link you put on did work fine,
but not my copying and pasting on the website.

Something I noticed that what I paste does not end with </small>, but ends
with
</body></html></script>

I tried deleting this back to </small> but it didn't make any difference.

This is what comes up when I paste -

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15&amp;output=embed"></iframe>
<small>View <a href="https://maps.google.co.uk/maps/ms?msa=0&amp;msid=209051370142457295001.0004d5eed815e1b74935f&amp;ie=UTF8&amp;t=m&amp;source=embed&amp;ll=52.529277,-1.90763&amp;spn=0.009138,0.018239&amp;z=15" style="color:#0000FF;text-align:left">Walsall Road Allotments[/url] in a larger map</small></body></html></script>
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 16:28:36
No worries Betty - I am probably confusing the issue.

The code here is correct - http://web.alleyns.org.uk/Nick/code.txt - should open in a browser.
can you stick that on a page in your site.  I cant seem to find the map on http://www.growit.btck.co.uk anymore. Let me know the URL and Ill have a look..


Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 18, 2013, 17:51:03
Quote from: BarriedaleNick on February 18, 2013, 16:28:36
No worries Betty - I am probably confusing the issue.

The code here is correct - http://web.alleyns.org.uk/Nick/code.txt - should open in a browser.
can you stick that on a page in your site.  I cant seem to find the map on http://www.growit.btck.co.uk anymore. Let me know the URL and Ill have a look..

Nick - you are a STAR!!!!!
I'd removed the map, thinking that what you told me to put was all
that was needed.  Put the map back, added your stuff and
IT WORKED!!
Thank you so much!
:blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:  :blob7:   :blob7:  :blob7:  :blob7:  :wave:
Title: Re: How to add a location to Google maps?
Post by: Nigel B on February 18, 2013, 18:15:24


There's also something called Google Follow Your World. I dunno if anyone else has bothered with it?
As far as I can tell, You puts your marker and register your area with Google, then, when they are good and ready to update your area, I think they include your marker and site at the same time... Or maybe not... :tongue3:

https://followyourworld.appspot.com/

Title: Re: How to add a location to Google maps?
Post by: Squash64 on February 18, 2013, 20:05:08
Thanks Nigel, I've just done it.
Title: Re: How to add a location to Google maps?
Post by: BarriedaleNick on February 18, 2013, 20:51:18
Excellent.  Glad you got it sorted!!!