wrld3d / ios-api

iOS API for WRLD: Stunning, Interactive 3D Maps
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

How to implement it in iOS SDK Recce App move the effect of the box #14

Open leftsider123 opened 7 years ago

leftsider123 commented 7 years ago

hello! We have recently in using the iOS SDK to do a similar to Recce APP application, several problems, hope to get your help!

1.How to implement it in iOS SDK Recce App move the effect of the box?

  1. How can we achieve marker animation and remove effect?
  2. Recee App removed as it was from the screen has removed a certain distance, how do I set this distance?

If there is one demo, can be sent to my mailbox, 1124955669 @qq.com thank you so much!

jonty-dawson commented 7 years ago

Hi - sorry for the delayed response.

It sounds like you are trying to build something similar to our C++ WRLD App, but using the Objective-C WRKD iOS SDK from this repository.

WRLD App is built using our C++ 11 SDK, and is open source - see here: https://github.com/wrld3d/wrld-example-app We do not yet have an equivalent example app that uses the Objective-C WRLD iOS SDK - the app code is largely C++.

If you are trying to build a similar ap using the WRLD iOS SDK, a good place to start is the walkthrough guide.

Markers automatically animate on and off as they reach the edge of the screen. You can find an example code snippet of how to create a marker here: https://docs.eegeo.com/ios/latest/docs/examples/create-a-marker/

I hope this helps, but please ask again if you have a question about a specific feature in this API. It might be useful to include a code snippet or github link to explain what you are trying to do.

leftsider123 commented 7 years ago

thank you very much! Recce ap has a small box, follow poi, how to use oc to achieve? 1 1

jonty-dawson commented 7 years ago

Hi

Your screenshot looks like it is taken from our old 'Recce App' - please note that this has now been replaced by 'WRLD App', as mentioned above.

The code for the pop-up view you show is available here:

https://github.com/wrld3d/wrld-example-app/blob/master/ios/ios_src/SearchResultPoi/View/YelpSearchResultPoiView.h https://github.com/wrld3d/wrld-example-app/blob/master/ios/ios_src/SearchResultPoi/View/YelpSearchResultPoiView.mm

It is a standard iOS UIView. The code might be useful if you wanted to implement something similar in an app that uses the Objective-C WRLD iOS SDK.

If you want to position a pop-up view on screen so that it hovers above a Marker, we do not currently have a convenient way of obtaining a screen-space anchor position from a Marker. We hope to add this feature soon.

leftsider123 commented 7 years ago

thank you very much! Because we are doing with the SDK API, recently there will be a few requirements, but oc API does not provide, should you help to see if the public;

  1. The custom iconkey markers;
  2. Get the map loading progress;
  3. Control whether display indoor map markers;
  4. the animation of makers disappear and display ; thank you again!
jonty-dawson commented 7 years ago

Hi

For some of these points, it may already be possible to do what you want:

  1. The custom iconkey markers; See: https://docs.eegeo.com/ios/latest/docs/examples/create-a-marker-with-a-different-icon/ For 'iconKey', you can use any value of field 'id' in: https://github.com/wrld3d/ios-api/blob/master/resources/pin_sheet.json

  2. Get the map loading progress; With reasonable network speed and a typical map view, loading takes only few seconds. We don't have "percentage remaining" loading progress, but you can receive notification when the initial map loading is complete. See: https://docs.eegeo.com/ios/latest/docs/examples/map-streaming-complete-notification/ You could use this to display, for example, a 'buffering' icon during loading.

  3. Control whether display indoor map markers; We don't currently have a way of hiding all the 'Enter indoor map' markers - we'll consider adding this.

  4. the animation of makers disappear and display ; We don't have immediate plans to add an animation to markers when appearing and disappearing - instead, they simply fade in and out.

Thanks for your feedback, it is really useful to know what features you would like to see.