Google Maps URL with pushpin and satellite basemap

后端 未结 1 1156
自闭症患者
自闭症患者 2021-01-02 04:37

Background Information

I can form a simple valid Google Maps URL that has a pushpin on a coordinate like so using the query parameter:



        
相关标签:
1条回答
  • 2021-01-02 05:10

    You are right in that this can't be done with the new Google Maps APIs. The "Search" URL scheme allows pinning but no satellite view, whilst the "Display a map" scheme allows satellite views but no pinning.

    However, it is possible get both pinning and satellite views by using this old, no-official-documentation, scheme:

    http://maps.google.com/maps?t=k&q=loc:47.5951518+-122.3316393
    

    The t parameter used to work with a number of different values but only two seem to currently still work:

    • t=m - Normal map view
    • t=k - Satellite view

    Note that unofficial documentation for the other parameters can be found here. Some of these may also still work.

    0 讨论(0)
提交回复
热议问题