Solved

Few questions about Google Map API?

Posted on 2014-04-09
2
398 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A publishing tool, a Version Control System, or a Collaboration Platform! These can be some of the defining words for the two very famous web-hosting Git repositories: Bitbucket and Github. Git is widely used amongst the programmers and developers f…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

910 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

23 Experts available now in Live!

Get 1:1 Help Now