Questions about using dynamic maps

Asked

Viewed 1,490 times

3

My sister sells Avon and I decided to do something very simple that are the records of her clients. So far so good, but I’d like to add the Google Maps map to her website. I found the Google API but with a lot of things, what I want is simple thing, when opening the customer register has 3 tabs HOME | ADDRESS | MAP By clicking on tab "map" would like that inside the DIV or IFRAME or another element, show me the map of her client’s address. It’s a simple thing, something like this:

https://www.google.com/maps/preview/place/AQUI-VAI-O-CEP

If I change the zip code and put the one on my street and copy the link and paste it into the browser it opens the link right now if I put it inside a DIV or a IFRAME he does not carry.

How to solve?

  • 1

    Did you take the iframe code from the maps page itself? Click on the chain link icon and take it from there.

1 answer

1


Try to make the URL in this format:

https://www.google.com/maps?q=<CEP_COM_TRACO>,%20Brasil&output=embed

An example of what it would look like:

https://www.google.com/maps?q=49100-000,%20Brasil&output=embed

This is because the Google Maps Preview (new Google Maps) you are using needs to be used by someone who is logged in to Google and agreed to test this new version!

I hope it helps!

  • Rodolfo did not work. See example: http://www.zenasloc.com.br/mapa.htm Still not showing

  • Try now, I edited the answer to try another alternative. do not forget the &output=embed at the end of the URL

  • Right, with this I will use the old version of Google right and I will have no problem in knowing whether or not the guy is logged in. Would that be it? Gave straight. Check this out: http://www.zenasloc.com.br/mapa.htm Worked on both Chrome and IE.

  • Protinho, I was able to adjust until a map to take a route, with this I will be able to know what her route from one point to another. Thanks.

  • I’m glad you did! Exactly, this way it is not necessary for the user to be logged in to Google.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.