开发者

Google Maps custom marker - can the iframe accept one like the static maps?

I was reading the static maps API, and it says you can include a custom marker in the GET params. You simply link to an image file.

I now have a second Google Map within an iframe, and was wondering if you can attach custom markers via the GET params to it? Here is the src attribute of the iframe currently.

http://maps.google.com/maps?f=q&开发者_JAVA技巧amp;source=s_q&hl=en&geocode=&q=111+Fake+Street+Noosaville+Queensland+Australia&ie=UTF8&output=embed

I can't seem to find the documentation on how to do this, if possible.

Is this possible?


As far as I know you cannot add custom marker icons on maps.google.com, but you should be able to add a marker with a custom label.

You may also be interested in checking out the following reference, which describes all the known parameters that can be passed to maps.google.com:

  • Mapki: Google Map Parameters

While this is not an official API, I think it is fair to say that these should be quite reliable, since they are the same parameters used for the permanent links in Google Maps.


On the other hand, you may want to consider using the Google Maps API instead. You will get all the capabilities you had with the Static Maps API (and more), and it will look pretty much the same as the iframe you are using right now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜