Solved

Few questions about Google Map API?

Posted on 2014-04-09
2
413 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

This article discusses how to create an extensible mechanism for linked drop downs.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
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…

734 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