我希望用戶能夠在我的自定義Google地圖集成中放置一個別針,類似於在Google的「我的地圖」部分中這樣做的功能。雖然我無法找到任何有關允許用戶通過API放置新引腳的任何信息。任何人都可以提供一些信息或指向正確的方向嗎?Google Maps API - 放置新針
回答
如果您使用V3,可以在http://www.geocodezip.com/v3_example_click2add_infowindow.html找到一個很好的示例。 http://econym.org.uk/gmap/上的教程也是一個很好的開始,並且在V2和V3處有大量有用的鏈接,位於http://www.geocodezip.com/。
很好的示例感謝 – P6345uk 2012-09-26 12:42:45
這裏是另一個例子,更基本。 http://www.lotusmarketing.ca/misc/googlemap/ – 2013-03-28 01:16:00
Hi @Sonia您好,請分享您的示例代碼嗎? – 2016-04-13 11:39:17
- 1. Google Maps API - 放置動畫
- 2. Google Maps API標記未放置
- 3. Google Maps Api - 新手
- 4. Google Maps API v3 - maxZoomService
- 5. Google Maps API與Google Maps Engine?
- 6. Google Maps API v2 vs Google Maps API v3?
- 7. google-maps-api-3
- 8. Google Maps API業務位置
- 9. 地理位置+ Google Maps API?
- 10. Google Maps Places API
- 11. Google maps API watchPosition
- 12. PhoneGap/Cordova:Google Maps API - 在我的位置放下別針
- 13. Google Maps API OVER_QUERY_LIMIT
- 14. Google Maps API - 標記
- 15. Grails + Google Maps API
- 16. Google Maps API。投影
- 17. Google Maps API:檢測位置並放置標記
- 18. google-maps-api-v3 getProjection
- 19. Google Maps API JS
- 20. Google Maps API 3
- 21. Google maps API javascript
- 22. Google Static Maps Api?
- 23. Google Maps API Rectangle
- 24. Google Maps API
- 25. Google Maps API + Jquery
- 26. Google Maps API查詢
- 27. Google Maps API V3:fromContainerPixelToLatLng
- 28. Google Maps JavaScript API - 自動縮放級別?
- 29. Google Maps API標記和縮放
- 30. Google Maps Javascript API附加縮放比例
查看Google Maps API文檔:[通過地圖保存用戶添加的數據](https://developers.google.com/maps/documentation/javascript/info-windows-to-db) – 2017-08-29 17:21:01