Giter VIP home page Giter VIP logo

stlocationrequest's People

Contributors

bryanchan777 avatar giulio92 avatar grodowski avatar oooseun avatar rico237 avatar sventiigi avatar wjiuxing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

stlocationrequest's Issues

Memory leaks

I found memory usage increased every time when a new STLocationRequestController was created and dismissed.
It seems like you didn't invalidate the timer.

Solution:
[viewDidLoad]
// assign the timer to a local var timer: NSTimer?
timer = NSTimer.scheduledTimerWithTimeInterval(15, target: self, selector: "changeRandomFlyOverCity", userInfo: nil, repeats: true)

[viewDidDisappear]
// invalidate the timer and release it.
timer?.invalidate()
timer = nil

UITapGestureRecognizer doesn't work

I'm using the mapView as the background for my login screen. I added a UITapGestureRecognizer to self.view but it hardly works. The Selector just does: self.view.endEditing(true) yet it only works very rarely after tapping the screen multiple times.

My only assumption is that since the screen is rotating; tap gestures are not always recognized. I tried implementing all different types of gestures and overriding UIGestureRecognizerDelegate methods but nothing seems to work.

Any ideas?

Allow for Custom Locations

I'd be super if I could specify a custom location.
Currently I have to edit the code and add the new location + GPS info.
Then updates to the code remove that custom location.

Can't close modally presented ViewController any more

Until now I have used STLocationRequest in a "normal" ViewController.
The only thing I changed was presenting the VC modally but now I can't close the VC itself anymore after showing the LocationRequest.

I use
self.navigationController?.dismissViewControllerAnimated(true, completion: nil)
for closing and it's working everywhere fine but not in the VC with the LocationRequest...

Compilation errors in STLocationRequestController

Hi,

First let me say that your library looks awesome!
I'm trying to use it in my project but I'm having some problems.

I modified my Podfile to include STLocationRequest:

platform :ios, '8.0'
use_frameworks!

target 'Squirlo' do
pod 'Google/SignIn'
pod 'GoogleMaps'
pod 'STLocationRequest'
end

target 'SquirloTests' do
end

target 'SquirloUITests' do
end

This is the output I'm getting when I'm running pod install:

Updating local specs repositories

CocoaPods 1.0.0 is available.
To update use: `gem install cocoapods`
Until we reach version 1.0 the features of CocoaPods can and will change.
We strongly recommend that you use the latest version at all times.

For more information see http://blog.cocoapods.org
and the CHANGELOG for this version http://git.io/BaH8pQ.

Analyzing dependencies
Downloading dependencies
Installing Font-Awesome-Swift (1.4.7)
Using Google (2.0.4)
Using GoogleAppUtilities (1.1.0)
Using GoogleAuthUtilities (2.0.0)
Using GoogleInterchangeUtilities (1.2.0)
Using GoogleMaps (1.13.0)
Using GoogleNetworkingUtilities (1.2.0)
Using GoogleSignIn (3.0.0)
Using GoogleSymbolUtilities (1.1.0)
Using GoogleUtilities (1.3.0)
Installing STLocationRequest (0.2.0)
Generating Pods project
Integrating client project
Sending stats
Pod installation complete! There are 3 dependencies from the Podfile and 11 total pods installed.

The problem is that when I go back to Xcode, I'm getting compilation errors coming from STLocationRequestController. In particular the compilation error I'm getting is for the following line:

self.timer = NSTimer.scheduledTimerWithTimeInterval(15, target: self, selector: #selector(STLocationRequestController.changeRandomFlyOverCity), userInfo: nil, repeats: true)

I can fix that by manually changing the above line to the following:

self.timer = NSTimer.scheduledTimerWithTimeInterval(15, target: self, selector: "changeRandomFlyOverCity", userInfo: nil, repeats: true)

After fixing the above error, I'm trying to use the library but when I'm trying to import STLocationRequest I'm getting an error saying No such module 'STLocationRequest'

What am I doing wrong?

Many thanks,
Alex

using pod with Swift 3.0 project

Hi!
I'm trying to use this cool library in a Swift 3.0 project with pod.
The problem is that when I'm doing pod install "Font-Awesome", 1.5.3 is installed instead of the 1.6.1, so the project doesn't compile because the 1.5.3 code is not written in Swift 3.0

What should I do :) ?

Thanks

Luca.

never show 3D scene once click Present STLocationRequestController -> Alright

Hi Sven Tiigi,
Thanks a lot for this awesome app! Would you mind take a look at the issue I have when I build and run it on my iPhone6+?

I build app with Xcode9.2 & I put screen record on youtube: https://youtu.be/7i2Z4zp91To
Xcode debug console shows following error, is this expected because of no 3D flyover data for my GPS location?

I already allowed STLocationRequest to access my location while using the app.

2018-03-03 07:08:29.613910-0800 STLocationRequestExample[2286:581454] Could not inset compass from edges 9
2018-03-03 07:08:29.614784-0800 STLocationRequestExample[2286:581454] Could not inset scale from edge 9
2018-03-03 07:08:29.642869-0800 STLocationRequestExample[2286:581454] Could not inset legal attribution from corner 4
2018-03-03 07:08:29.818637-0800 STLocationRequestExample[2286:581454] Could not inset legal attribution from corner 4
2018-03-03 07:08:30.018142-0800 STLocationRequestExample[2286:581454] Could not inset compass from edges 9
2018-03-03 07:08:30.018310-0800 STLocationRequestExample[2286:581454] Could not inset scale from edge 9
2018-03-03 07:08:30.638770-0800 STLocationRequestExample[2286:581610] Download failed: {x:2623 y:6334 z:14 (2623.6334.14 type: 16 pixel: 2 r2: 920000 Voltaire3D)} Error: Error Domain=GEOErrorDomain Code=-7 "(null)" UserInfo={HTTPStatus=404, NSErrorFailingURLStringKey=https://gspe11-ssl.ls.apple.com/tile?style=16&v=1203&z=14&x=2623&y=6334&sid=1448789466378065446706432234197647015410&accessKey=1520093909_ezmqz9c5nWKP2G61_ETJGJBlfWyYvciaFgB4sJByi2UyeMYVMAhcYOLBlpdmY62QGO77JKk20DxJpPqaKAp8ZlmY8jNaXeN7OY5G5Yfq2SIfwKRsLBiMr7DxJtL1MpokVpcyPZ3Ll9ZjRCccHsQVnp9NokUl%2BZVwzU0aMWQ%3D%3D}
2018-03-03 07:08:30.639438-0800 STLocationRequestExample[2286:581552] Download failed: {x:4822 y:6161 z:14 (4822.6161.14 type: 16 pixel: 2 r2: 260000 Voltaire3D)} Error: Error Domain=GEOErrorDomain Code=-7 "(null)" UserInfo={HTTPStatus=404, NSErrorFailingURLStringKey=https://gspe11-ssl.ls.apple.com/tile?style=16&v=1035&z=14&x=4822&y=6161&sid=1448789466378065446706432234197647015410&accessKey=1520093910_Q90fkWbwsaqZXDsO_Fetx3JZchM%2Bn3YnAs99s3tEvMhUpPJ8xaFafOcdSx%2BLaLKJzuE9uSc3lppshFToECwiQfD%2Fqf9%2BeQIfFmueFKPeW6WjEAKc0l%2F8ztZ7H1u%2FKE14O2G1XigPkqFn8K8U1mwNVlprmD3ugQl0M3%2FvL0w%3D%3D}
2018-03-03 07:08:30.639226-0800 STLocationRequestExample[2286:581620] [VKDefault] Failed to load DTM: 10049 2623 14
2018-03-03 07:08:30.640476-0800 STLocationRequestExample[2286:581620] [VKDefault] Failed to load DTM: 10222 4822 14
Retrieved STLocationRequestController.Event: didPresented
STLocationRequestController did presented
2018-03-03 07:08:35.559640-0800 STLocationRequestExample[2286:581611] Download failed: {x:4821 y:6161 z:14 (4821.6161.14 type: 16 pixel: 2 r2: 260000 Voltaire3D)} Error: Error Domain=GEOErrorDomain Code=-7 "(null)" UserInfo={HTTPStatus=404, NSErrorFailingURLStringKey=https://gspe11-ssl.ls.apple.com/tile?style=16&v=1035&z=14&x=4821&y=6161&sid=1448789466378065446706432234197647015410&accessKey=1520093915_LuvdJ7DpttTeiG5e_v42WPWU%2FXIuCWUWl4PTDKboQZXEKMtmSUZR7QZxXv5CQsKMoxcfOFd5nLAcE3%2F%2FAZA4vwcy9q8pryaHk8BN%2F29ii%2BUE7joCLV7d1%2FfrHKUhj9Ls8ObVj0DUaRg4Z9NhIzm8l1KzUu4MOsCUU81pK4w%3D%3D}
2018-03-03 07:08:35.560459-0800 STLocationRequestExample[2286:581620] [VKDefault] Failed to load DTM: 10222 4821 14
Retrieved STLocationRequestController.Event: locationRequestAuthorized
The user accepted the use of location services
didUpdateLocations UserLocation: Optional(<+37.68481274,-121.87087337> +/- 5.00m (speed 0.00 mps / course -1.00) @ 3/3/18, 7:07:32 AM Pacific Standard Time)
2018-03-03 07:08:52.241496-0800 STLocationRequestExample[2286:581933] Download failed: {x:4823 y:6160 z:14 (4823.6160.14 type: 16 pixel: 2 r2: 260000 Voltaire3D)} Error: Error Domain=GEOErrorDomain Code=-7 "(null)" UserInfo={HTTPStatus=404, NSErrorFailingURLStringKey=https://gspe11-ssl.ls.apple.com/tile?style=16&v=1035&z=14&x=4823&y=6160&sid=1448789466378065446706432234197647015410&accessKey=1520093931_xrU35PRj6DtyWNeh_f66Eu7UtuTstJ4vimk1Rv8zhzE9g8MIr9LFpuuirjUEvolmLjuhVjhfhmbSuAyFaVla2elxEuNuisCsxWgzZwQUDFcmR04KYP3JBBZjm8GOuf7IVIV%2FrljSoWUDcu3NAkX35pvRNX%2F%2B%2BuBPU6bAd9Q%3D%3D}
2018-03-03 07:08:52.241706-0800 STLocationRequestExample[2286:581620] [VKDefault] Failed to load DTM: 10223 4823 14
Retrieved STLocationRequestController.Event: didDisappear
STLocationRequestController did disappear
2018-03-03 07:08:52.378263-0800 STLocationRequestExample[2286:581947] Download failed: {x:77178 y:98571 z:18 (77178.98571.18 type: 15 pixel: 2 text: 2 r2: 260000 Voltaire3D)} Error: Error Domain=GEOErrorDomain Code=-2 "(null)"

Use STLocationRequest in objective-c ViewController

Hello I'm getting this error.

fatal error: unexpectedly found nil while unwrapping an Optional value (lldb)

I have a felling that the storyboard view is not loading but I'm not sure.This is how I try to present the view

STLocationRequestController *request = [[STLocationRequestController alloc] init]; [request setTitle:@"test"]; [request setTitleLabelText:@"test"]; [request setAllowButtonTitle:@"Alright"]; [request setNotNowButtonTitle:@"eded"]; [request setMapViewAlphaValue: 0.9]; [request setBackgroundViewColor: [UIColor lightGrayColor]]; [self presentViewController:request animated:YES completion:nil];

not working on IOS 11

Hi there,

It docent work after upgraded to iOS 11.

The popup box with "Alright" is clickable but docent accecpt the selection.

But if pressing " Not now " it goes away as it should.

Swift 4.2 Support?

The library, and underlying FlyoverKit does not compile with Swift 4.2 with a lot of deprecation issues. Is update to 4.2 is expectable anywhere soon?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.