簡體   English   中英

Pod框架內的Google Map

[英]Google Map inside a pod framework

class MarkerItem: NSObject, GMUClusterItem {
  var details: Any
  var filters: Filter
  var icon: UIImage
  var name: String!
  var position: CLLocationCoordinate2D
  var type: LocationService.LocationType
  var collapsed: Bool

  init(position: CLLocationCoordinate2D, name: String, icon: UIImage,
       filter: Filter, type: LocationService.LocationType, details: Any) {
    self.position = position
    self.name = name
    self.icon = icon
    self.filters = filter
    self.type = type
    self.details = details
    self.collapsed = true
  }
}

我正在嘗試創建自己的Pod框架,以重用一些地圖視圖,但是無法使用Google地圖。 我不斷

Use of undeclared type 'GMUClusterItem'

我的進口

import UIKit
import GoogleMaps
import GooglePlaces

GMUClusterItem來自單獨的庫Google-Maps-iOS-Utils

您需要為其安裝pod: Google-Maps-iOS-Utils ,然后將此庫導入您的Swift文件中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM