NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Website Development
Reload this Page google maps integration

Website Development Development concepts, scripts, sponsors and affiliate programs.

Advanced Search
1 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 07-29-2007, 03:07 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



google maps integration


hi i want to incorporate a google map with the starting point for example of barcelona with a search box


any one have an example of it or any easy way to do? thanks
jackdomain is offline  
Old 07-29-2007, 05:44 PM   #2 (permalink)
. .. deaol.com .. .
 
Deaol's Avatar
Join Date: Nov 2006
Location: Desolation Snd, B.C.
Posts: 2,261
Deaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant future
 


Ethan Allen Fund
If your meaning something like what I have done here on my site,

www.cwx.ca/maps.htm

it is possible have a look here --> http://www.google.com/apis/maps/
Deaol is offline  
Old 07-29-2007, 07:58 PM   #3 (permalink)
NamePros Regular
 
ablaye's Avatar
Join Date: May 2006
Location: WebmasterGround.com
Posts: 865
ablaye is on a distinguished road
 



Yes. Take a look at http://www.google.com/apis/maps/
I know a couple of good coders who can help you too if you are interested.
ablaye is offline  
Old 07-30-2007, 06:10 AM THREAD STARTER               #4 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



Hi first of all thanks to answer.

I’m a noob on this world and nowadays my abilities are basic on modifying...

Deaol your "maps" is what I was exactly searching. If you can help me or..."teach me" how to incorporate it with for example starting on Barcelona or any other city i will thanks a lot
jackdomain is offline  
Old 08-08-2007, 05:27 AM THREAD STARTER               #5 (permalink)
NamePros Regular
 
jackdomain's Avatar
Join Date: Mar 2007
Posts: 670
jackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nicejackdomain is just really nice
 



deaol?¿ :-(
jackdomain is offline  
Old 08-08-2007, 06:25 AM   #6 (permalink)
NamePros Regular
Join Date: Jun 2007
Posts: 204
Moses is an unknown quantity at this point
 



could it be done so that I have a small google map pic on the site(lets say 160*120 pixels) and once clicked a big map pop up in a new window. I am sure it can, but can it be done so that I dont have to make the small image myself but some kind of script will make it from the addresses that I have?
Moses is offline  
Old 08-08-2007, 07:51 AM   #7 (permalink)
. .. deaol.com .. .
 
Deaol's Avatar
Join Date: Nov 2006
Location: Desolation Snd, B.C.
Posts: 2,261
Deaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant futureDeaol has a brilliant future
 


Ethan Allen Fund
Originally Posted by jackdomain
deaol?¿ :-(
Hey jackdomain sorry I didn't get back sooner wasnt keeping an eye out on this thread. I will check out the code and reply here or pm you with some help (just kind of tied up at the moment .. work )
????: NamePros.com http://www.namepros.com/website-development/355586-google-maps-integration.html

Ok here you go, your going to want to add your API KEY and change the lat and long coordinates to locate the map over the part of the world you want

In Head
Code:
  <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=YOUR-API-KEY-HERE"
      type="text/javascript"></script>
    <script type="text/javascript">

    //<![CDATA[

    var map = null;
    var geocoder = null;

    function load() {
  if (GBrowserIsCompatible()) {
    map = new GMap2(document.getElementById("map"));
    map.addControl(new GLargeMapControl());
    map.addControl(new GMapTypeControl());
    map.addControl(new GScaleControl());
    map.setCenter(new GLatLng(50.11, -124.12), 4);
    geocoder = new GClientGeocoder();
  }
}

function showAddress(address) {
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert(address + " not found");
            } else {
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }
    //]]>
    </script>

In Body
Code:
<center><form action="#" onsubmit="showAddress(this.address.value); return false">
      <p>
        <input type="text" size="60" name="address" value="YOUR CITY NAME HERE" />
        <input type="submit" value="Go!" />
      </p>
      <div id="map" style="width: 600px; height: 400px"></div>
    </form></center>
Deaol is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 11:02 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger