General Question

r0ck80y's avatar

How do i remove unnecessary buttons from a google map snippet on my blog?

Asked by r0ck80y (18points) July 21st, 2008

Say i add a small googlemap window on my page sidebar (say a 300×300 widget), the code provided by google has some direction, zooming, map/satellite/terrain view buttons. I dont want all that. How can i remove them?

Observing members: 0 Composing members: 0

3 Answers

jrpowell's avatar

I made a example of this for you. View the source to see how it was done. You will need to change the API key to the one for your site.

jrpowell's avatar

And you will need to edit this line for your location and zoom level.

map.setCenter(new GLatLng(37.4419, -122.1419), 13);

The “13” is the zoom level. Lat and Long should be obvious.

r0ck80y's avatar

Thanks johnpowell…i have used the api code as you showed. I guess i cant remove the terms of use line at the bottom right?

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther