Skip to content

Commit

Permalink
Add NMap delegate methods #71
Browse files Browse the repository at this point in the history
  • Loading branch information
jinios committed Jan 21, 2019
1 parent b978c00 commit 44a63ce
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MartHoliday/MartHoliday.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
FD0202902146559B0083BE22 /* Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = FDC2A941212458F400A1E2FF /* Extensions.swift */; };
FD0202912146565C0083BE22 /* MartHolidayTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD0202612146517B0083BE22 /* MartHolidayTests.swift */; };
FD11EAE321203A4C003EB3E9 /* BranchTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD11EAE221203A4C003EB3E9 /* BranchTableViewCell.swift */; };
FD15A11021F38DBB00B7276A /* LocationSearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD15A10F21F38DBB00B7276A /* LocationSearchViewController.swift */; };
FD1B4F212126BB8B00946311 /* SlideBackgroundView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1B4F202126BB8B00946311 /* SlideBackgroundView.swift */; };
FD1B4F232126BBD200946311 /* SlideTopView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1B4F222126BBD200946311 /* SlideTopView.swift */; };
FD1CC4DF211DF10A00B21E09 /* SearchViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = FD1CC4DE211DF10A00B21E09 /* SearchViewController.swift */; };
Expand Down Expand Up @@ -164,6 +165,7 @@
FD0202612146517B0083BE22 /* MartHolidayTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MartHolidayTests.swift; sourceTree = "<group>"; };
FD0202632146517B0083BE22 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FD11EAE221203A4C003EB3E9 /* BranchTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BranchTableViewCell.swift; sourceTree = "<group>"; };
FD15A10F21F38DBB00B7276A /* LocationSearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LocationSearchViewController.swift; sourceTree = "<group>"; };
FD1B4F202126BB8B00946311 /* SlideBackgroundView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SlideBackgroundView.swift; sourceTree = "<group>"; };
FD1B4F222126BBD200946311 /* SlideTopView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SlideTopView.swift; sourceTree = "<group>"; };
FD1CC4DE211DF10A00B21E09 /* SearchViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchViewController.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -330,6 +332,7 @@
FD91364D216EF70B001A21DF /* AppInfoViewController.swift */,
FD9654CE2172593B00C17D76 /* ReachabilityViewController.swift */,
FD9654D0217259D800C17D76 /* IndicatorViewController.swift */,
FD15A10F21F38DBB00B7276A /* LocationSearchViewController.swift */,
);
path = ViewController;
sourceTree = "<group>";
Expand Down Expand Up @@ -780,6 +783,7 @@
FD80CE212160D70100C16150 /* MartMapDelegate.swift in Sources */,
FD228F382142EB1A0062B75F /* BranchList.swift in Sources */,
FD1CC4E1211DF76300B21E09 /* DetailViewController.swift in Sources */,
FD15A11021F38DBB00B7276A /* LocationSearchViewController.swift in Sources */,
FDB3AD69216FBA7F002209A2 /* NetworkManager.swift in Sources */,
FD11EAE321203A4C003EB3E9 /* BranchTableViewCell.swift in Sources */,
);
Expand Down
15 changes: 15 additions & 0 deletions MartHoliday/MartHoliday/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,21 @@ Cgo
</objects>
<point key="canvasLocation" x="648.79999999999995" y="157.87106446776613"/>
</scene>
<!--View Controller-->
<scene sceneID="U0x-QV-y44">
<objects>
<viewController id="0c7-x9-EAa" sceneMemberID="viewController">
<view key="view" contentMode="scaleToFill" id="iGd-SD-Jr7">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<viewLayoutGuide key="safeArea" id="eFQ-Aq-t96"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="z1Q-hG-VW4" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="1639" y="147"/>
</scene>
<!--Main View Controller-->
<scene sceneID="27w-gz-Gyf">
<objects>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//
// LocationSearchViewController.swift
// MartHoliday
//
// Created by YOUTH2 on 20/01/2019.
// Copyright © 2019 JINiOS. All rights reserved.
//

import UIKit

class LocationSearchViewController: UIViewController, NMapViewDelegate, NMapPOIdataOverlayDelegate, NMapLocationManagerDelegate {

override func viewDidLoad() {
super.viewDidLoad()


}


func locationManager(_ locationManager: NMapLocationManager!, didUpdateTo location: CLLocation!) {
<#code#>
}

func locationManager(_ locationManager: NMapLocationManager!, didFailWithError errorType: NMapLocationManagerErrorType) {
<#code#>
}

func onMapOverlay(_ poiDataOverlay: NMapPOIdataOverlay!, imageForOverlayItem poiItem: NMapPOIitem!, selected: Bool) -> UIImage! {
<#code#>
}

func onMapOverlay(_ poiDataOverlay: NMapPOIdataOverlay!, anchorPointWithType poiFlagType: NMapPOIflagType) -> CGPoint {
<#code#>
}

func onMapOverlay(_ poiDataOverlay: NMapPOIdataOverlay!, imageForCalloutOverlayItem poiItem: NMapPOIitem!, constraintSize: CGSize, selected: Bool, imageForCalloutRightAccessory: UIImage!, calloutPosition: UnsafeMutablePointer<CGPoint>!, calloutHit calloutHitRect: UnsafeMutablePointer<CGRect>!) -> UIImage! {
<#code#>
}

func onMapOverlay(_ poiDataOverlay: NMapPOIdataOverlay!, calloutOffsetWithType poiFlagType: NMapPOIflagType) -> CGPoint {
<#code#>
}

func onMapView(_ mapView: NMapView!, initHandler error: NMapError!) {
<#code#>
}





}

0 comments on commit 44a63ce

Please sign in to comment.