Solved

Few questions about Google Map API?

Posted on 2014-04-09
2
402 Views
Last Modified: 2014-04-13
I have few questions about Google Map API. Please help me to understand better.  After reading this article, http://www.experts-exchange.com/Programming/Languages/Scripting/PHP/A_3350-Using-the-Google-Maps-API-in-PHP.html

I think I have to use Google Static map from here, https://developers.google.com/maps/documentation/staticmaps/?csw=1

My questions are,
1) What about this URL, https://developers.google.com/maps/documentation/javascript/tutorial

2) Using static map, Can I display the dynamic address with custom marker as per my customization?

Please clarify.
0
Comment
Question by:Loganathan Natarajan
2 Comments
 
LVL 38

Accepted Solution

by:
Tom Beck earned 500 total points
ID: 39991742
The article you cited by Ray Paseur describes a method using PHP to dynamically generate the <img> tag for you static map. You plug in the parameters and the code generates an image tag similar to this:

<img border="0" src="//maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=13&size=600x300&maptype=roadmap&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318&markers=color:red%7Clabel:C%7C40.718217,-73.998284&sensor=false" alt="Points of Interest in Lower Manhattan" />

It's use on a web site would be as described in the developers.google.com link you provided next.

For question 1.) The cited link is to a developers.google.com page that describes how to use the Maps API to generate a map with javascript. This is a completely different way of getting a map, unrelated to the static map method which does not require javascript.

For question 2.) Can you display the dynamic address? Certainly. How do you want to display it? On the map, above the map?
0
 
LVL 36

Author Closing Comment

by:Loganathan Natarajan
ID: 39998269
Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question