2017-06-29 5 views
0
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 
    } 
} 

マップビューを再利用して独自のポッドフレームワークを作成しようとしていますが、Googleマップを動作させることができません。私はGoogleマップのポッドフレームワーク内

Use of undeclared type 'GMUClusterItem' 

私の輸入

import UIKit 
import GoogleMaps 
import GooglePlaces 

答えて

0

GMUClusterItemを得続ける は、別のライブラリからグーグルマップ-IOS-Utilsのです。

ポッドをインストールする:Google-Maps-iOS-UtilsこのライブラリをSwiftファイルにインポートする必要があります。

関連する問題