Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-14-2009, 11:08 AM   PM User | #1
noneforit
Regular Coder

 
noneforit's Avatar
 
Join Date: Apr 2009
Location: England
Posts: 268
Thanks: 10
Thanked 20 Times in 20 Posts
noneforit is an unknown quantity at this point
Embed Google Maps?

Hello

I am creating a website which will need to embed a google map which needs to be searchable.

Basically people need to go to the website, put in thier road name and allow comments to be seen.

I have seen it where a comment can be assigned to a specific point in a map for example zooming in to see someones house, and there is a comment on the map which pops up saying 'so and so's house'

Now I know how to embed the map in but im not sure how to have the search function (so people can put in their road name) and the comments bit??

Any help appreciated
noneforit is offline   Reply With Quote
Old 07-15-2009, 02:43 AM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,211
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
You have to call two separate Google methods.

First, you have to "GeoCode" the location. That gives you the latitude and longitude of the given address (or not! some addresses can't be geocoded or produce multiple geocodings because of ambiguity). *THEN* you can use the lat/long to specify the point on the map.

Just go to the google maps APIs and look at the many examples they have there. It's tedious coding, but it's not hard.
Old Pedant is online now   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:34 PM.


Advertisement
Log in to turn off these ads.