Snapping control in openlayers 3 - openlayers-3

I want to use the snap control in my project. I saw a lot of examples on how to use it in openlayers 2. In my project I am using openlayers 3. Is there a snap control in openlayers 3?

No. It is marked as an open issue, https://github.com/openlayers/ol3/issues/1164. If you look at the source code for modifyinteraction and drawinteraction at https://github.com/openlayers/ol3/blob/master/src/ol/interaction/modifyinteraction.js and https://github.com/openlayers/ol3/blob/master/src/ol/interaction/drawinteraction.js you will see that some of the mechanics of snapping are in place already, but there is no snapping control. OL3 is still in beta (edit, gamma) and there is only a limited budget, so we will either have to wait, or write it yourself and issue a pull request on github :D.

Related

Animated Marker on Mapbox

It seems that mapbox updated its ios SDK recently with some huge change.
For example, it seems that it is not possible anymore to provide a layer as a custom marker, or to animate a marker as in this example:
https://www.mapbox.com/mapbox-ios-sdk-legacy/examples/cakeyframeanimation/
It seems that every reference to that example is related to a RMM* named class which has been deprecated.
How can I implement an animation in a Mapbox's MGLMapView?
Any kind of suggestion is appreciated, from a series of png to a CAEmitterLayer, to a generic view to be used as a marker so that I could do anything I want with it.
View-based annotations/markers is a feature that will be coming in the v3.3.0 release. Once you’re able to use views, you’ll also be able to use the same Core Animation methods you’re familiar with.
If you would like to try out a pre-release version of v3.3.0, have a look at alpha 3, which has preliminary support for view-based annotations — see MGLAnnotationView.

iOS custom Time Picker l

I want to create time picker in iOS like following image
Please suggest me any available framework or way to achieve this type of timer in iOS.
In this image when user click on red circle and drag to the number what he want to set.
For example In given image currently it is 12 i.e 12:00AM if I dragged to 4 then Time should be 04:00 AM
I was also in need of exactly same component so i created one.
Please check the below link...
Here's Link 2 Component
I have given provision of theme in my project, for you requirement you need to set isDarkTheme to TRUE.
Hope this is as per expectations....
Feel free to vote if you like my answer/Project.
Simple and pretty standard stuff can be done with little core graphics or UIDynamics for animation, present controller as model view
Maybe you were looking for this one - ESTimePicker. It is under BSD license, so you can use it in commercial projects...

create animation in iOS project like Adobe after effect

I have to create the same animation like http://dribbble.com/shots/1078726-Animated-UI-AE-giveaway in my iOS application.
Is there any iOS SDK for the same which can be used for this?
Any help would be appreciated
That depends on what SDK support you are looking for. You can rotate views in 3D space with a perspective using Core Animation allowing you to fold them.
I would recommend that you read this article about the Anatomy of a Folding Animation. That should get started with folding views. The rest seems to be applying the same kind of fold animation many different times on different parts of the UI.
You will not get any ready made project same as you want.
But you can always learn from example.
If you really want to learn animation in iOS that you should read:
Basic iOS 6 iPhone Animation using Core Animation
You can alo refer Apple iOS document of Core Animation: About Core Animation
If you want to see example from some developer that visit : Search results for animation
This two I think very related to you :
FlipTransform for iOS
MPFoldTransition for iOS
PaperFold-for-iOS

Getting started with animations

I am trying to create an animation in which a circle will be containing some text or image inside it, when user will tap on circle, the circle will reveal its child circles, which will be containing some details in text form. This is something similar to discovr app http://discovr.info/. I am totally a newbie in graphics and animation world. I have read several post & documents like where to start with animations, opengl, core animation, cocos2d etc, but still don't know how should I start working on this application. I will be really grateful if you can help me in getting stating up this project. Please also tell me where else I should look for resources.
Thanks in advance,
Regards.
Great start for CoreAnimation (if you don't want to read whole Apple documentation) could be this tutorials by Mike Nachbaur (4 parts):
Animating Interfaces with Core Animation: Part 1
Animating Interfaces with Core Animation: Part 2
Animating Interfaces with Core Animation: Part 3
Animating Interfaces with Core Animation: Part 4
When new iOS trainees in my job are starting to learn CA I often give them this tutorials because everything is clearly explained there.
There are some great guides in the Apple developer library.

Two forms to snap each other

I have a question regarding to two forms snapping each other.
For example if I move one form close to another and it's in certain distance then it's edge snaps to another forms edge. After snapping, I can move two forms by moving only one form. How can I achieve this?
I have seen this effect in Skype, DVD Decrypter and in ImgBurn.
Try using the TJvFormMagnet component of the JVCL (JEDI Visual Component Library).
I was using dynamically created forms and JvFormMagnet didn't seem to work for me. You can try the TMagnet Pas file component for snapping of forms to one another. A great alternative to docking. Get it Here with demo and compiled example. Its really very simple.

Resources