Google Earth APIを使用して、特定の座標に目印を作成しました。今度は、デフォルトのマーカーアイコンよりも意味のあるユーザーをユーザーに表示するため、目印と同じ座標に画像を配置したいと考えています。これを行う方法はありますか?Google Earthアプリ画像
3
A
答えて
1
どれ画像が目印のアイコンとして使用することができます。
これを行うには、目印を作成してから、そのスタイルを画像ファイルを指すカスタムスタイルに設定します。
この方法では、必要な画像は目印と同じ座標になります。
何か、次が動作するように、明らかにあなたがイメージを指すようにhttp://yourserver/yourimage.png
を変更する必要があります。詳細については
// Create the placemark.
var placemark = ge.createPlacemark('');
placemark.setName("placemark");
// Define a custom icon.
var icon = ge.createIcon('');
icon.setHref('http://yourserver/yourimage.png');
var style = ge.createStyle(''); //create a new style
style.getIconStyle().setIcon(icon); //apply the icon to the style
placemark.setStyleSelector(style); //apply the style to the placemark
// Set the placemark's location.
var point = ge.createPoint('');
point.setLatitude(12.345);
point.setLongitude(54.321);
placemark.setGeometry(point);
// Add the placemark to Earth.
ge.getFeatures().appendChild(placemark);
は、APIドキュメントに目印のセクションを参照してください。 http://code.google.com/apis/earth/documentation/placemarks.html
0
関連する問題
- 1. Google Earth Engine画像コレクションのすべての画像をエクスポートする(Google Earth Engine API)
- 2. Google Earthのパスラベル
- 3. Google Cast Receiverアプリの画面解像度
- 4. Google Earth Engine python apiから画像コレクション内の各画像を繰り返してダウンロードする方法
- 5. FeatureCollectionにGoogle Earth Engineの画像コレクション内の各画像のバンドの値を設定する
- 6. Google Earthで画像が正しく表示されない理由
- 7. Google Earthリンク企業サーバのPDFまたは画像ファイルを目印に
- 8. Google Earthモデル変換
- 9. QtとGoogle Earth API
- 10. Google Earth API get coordinate
- 11. ピクセル値Google Earth Engine
- 12. Google EarthのHTTPSネットワークリンク
- 13. geckofx用Google Earthプラグイン
- 14. Google Earthプラグインのコンテキストメニュー
- 15. GoogleマップEarth View future
- 16. Android用Google Earth API
- 17. Google EarthのビジュアリゼーションがGoogle Earthのポップアップで機能しない
- 18. iOSアプリにGoogle Earthを統合できますか?
- 19. JavaScriptを使用したGoogle EarthアプリのIDEですか?
- 20. Google EarthアプリにKMLを表示しない
- 21. Google Earthプラグイン上のスーパーフィッシュドロップダウンメニュー
- 22. Google Earthでポイントポリラインポリゴンを追加
- 23. Google Earth 6.2.1.6014のKMLサポート
- 24. Google Earthタイムスタンプアニメーションシーケンスの問題
- 25. Google EarthのJS APIのLatLngBounds?
- 26. Google Earth「Gray Buildings」モデルをダウンロード
- 27. Google EarthのKML解析エラー
- 28. Virtual EarthまたはGoogle Maps
- 29. Google Earth - リッチクライアントアーキテクチャまたはリッチインターネットアーキテクチャ
- 30. ラボ2 Google Earth Engine - Image.selectエラー