Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private func initializeMapWize() {
- let options = MWZUIOptions()
- options.restrictContentToVenueId = Constants.mapWizeVenueId
- options.centerOnVenueId = Constants.mapWizeVenueId
- let settings = MWZMapwizeViewUISettings()
- settings.followUserButtonIsHidden = false
- settings.menuButtonIsHidden = false
- settings.mainColor = UIColor(named: "aquamarineColor")!
- mapwizeView = MWZMapwizeView(frame: view.frame, mapwizeOptions: options, uiSettings: settings)
- mapwizeView.delegate = self
- mapwizeView.translatesAutoresizingMaskIntoConstraints = false
- view.addSubview(mapwizeView)
- mapwizeView.topAnchor.constraint(equalTo: view.topAnchor).isActive = true
- mapwizeView.leadingAnchor.constraint(equalTo: view.leadingAnchor).isActive = true
- mapwizeView.trailingAnchor.constraint(equalTo: view.trailingAnchor).isActive = true
- mapwizeView.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement