Solved

Few questions about Google Map API?

Posted on 2014-04-09
2
396 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
Comment Utility
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
Comment Utility
Thanks
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to dynamically set the form action using jQuery.
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now