Duyuru: 15 Nisan 2025'ten önce Earth Engine'i kullanmak için kaydedilen tüm ticari olmayan projelerin Earth Engine erişimini sürdürmek için ticari olmayan uygunluğu doğrulaması gerekir.
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Google Haritalar'ın temel haritasını değiştirir. Şunlara izin verir: 1) Geçerli MapType'ı ayarlama. 2) Temel harita için özel stiller sağlama (MapTypeStyles). 3) Temel harita için kullanılabilir mapTypeIds listesini ayarlama.
Parametre olmadan çağrılırsa harita türünü Google Haritalar'ın varsayılanına sıfırlar.
Bu ui.Map'i döndürür.
Kullanım
İadeler
Map.setOptions(mapTypeId, styles, types)
ui.Map
Bağımsız Değişken
Tür
Ayrıntılar
bu: ui.map
ui.Map
ui.Map örneği.
mapTypeId
Dize, isteğe bağlı
Temel haritayı ayarlamak için kullanılacak bir mapTypeId. Standart Google Haritalar API harita türlerinden birini seçmek için "ROADMAP", "SATELLITE", "HYBRID" veya "TERRAIN" değerlerinden biri ya da opt_styles sözlüğünde belirtilen anahtarlardan biri olabilir. Boş bırakılırsa ve opt_styles içinde yalnızca 1 stil belirtilirse bu stil kullanılır.
styles
Nesne, isteğe bağlı
Haritanın Harita Türü Kontrolleri'nde görünecek bir adla anahtarlanmış özel MapTypeStyle nesnelerinin sözlüğü. Şu sayfaya bakın: https://developers.google.com/maps/documentation/javascript/reference#MapTypeStyle
types
List<String>, isteğe bağlı
Kullanıma sunulacak mapTypeIds listesi. Atlanırsa ancak opt_styles belirtilirse tüm stil anahtarlarını standart Google Haritalar API harita türlerine ekler.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-07-25 UTC."],[[["Modifies the Google Maps basemap by setting the map type, providing custom styles, and controlling available map types."],["Accepts `mapTypeId`, `styles`, and `types` as parameters to customize the basemap's appearance and functionality."],["Resets the map to the default Google Maps style if called without any parameters."],["Allows the use of standard Google Maps API map types (\"ROADMAP\", \"SATELLITE\", \"HYBRID\", \"TERRAIN\") or custom styles defined using MapTypeStyle objects."],["Offers flexibility in controlling the visibility of map types through the `types` parameter."]]],["This tool modifies the Google Maps basemap by setting the `mapTypeId` (e.g., \"ROADMAP\", \"SATELLITE\"). It allows custom styles (`MapTypeStyles`) via a dictionary, with user-defined names. Users can control available map types using a list of `mapTypeIds`. If no parameters are specified it defaults to the original Google Maps basemap. Example usage is shown, to set different Map Types, add a style (like Inverted) or control the displayed Map Types.\n"]]