Google Maps custom marker - can an iframe accept it like static maps?
I was reading the Static Maps API and it says you can include a custom token in the GET parameters. You are simply linking to the image file.
I now have a second google map in iframe
and was wondering if you can attach custom markers using GET parameters? Below is the attribute src
iframe
.
http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=111+Fake+Street+Noosaville+Queensland+Australia&ie=UTF8&output=embed
I can't seem to find any documentation on how to do this, if possible.
Is it possible?
a source to share
As far as I know, you cannot add custom marker icons to maps.google.com
, but you should be able to add a marker using a custom marker.
You may also be interested in checking out the following link which describes all the known parameters that can be passed to maps.google.com
:
While this is not an official API, I think it's fair to say that they should be reliable enough as they are the same parameters as for permalinks in Google Maps.
Alternatively, you can use the Google Maps API instead . You will get all the features you had with the static maps API (and more), and it will look a lot like the iframe you are using right now.
a source to share