[英]Google static maps API with no labels?
我正在使用Google靜態地圖來獲取Android中的圖像(在ImageView中顯示)。 以下是我獲取圖片的方法:
https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY
哪個生成此圖像:
但是,我想擺脫“谷歌”和“地圖數據@ 2016谷歌” ,以及像“布魯克菲爾德廣場”和“紐約證券交易所”這樣的地方 。
您可以使用style=feature:all|element:labels|visibility:off
刪除所有標簽style=feature:all|element:labels|visibility:off
如下所示:
https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY&format=png&style=feature:all|element:labels|visibility:off
但是除了照片底部的標簽之外,它會刪除所有內容。
編輯:
我發現了如何擺脫所謂的“興趣點”,但兩個底部標簽仍然存在。
https://maps.googleapis.com/maps/api/staticmap?center=New+york,NY&zoom=13&size=300x200&maptype=roadmap%20&markers=color:red%7CNew+york,NY&format=png&style=feature:poi|element:labels|visibility:off
甚至可以刪除它們嗎?
嘗試
feature:poi|element:labels|visibility:off
檢查一下
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.