animated journey using mapkit polyline - ios

Good morning,
I have an app with a search list showing the trips.
After selectina one of it I need to show the trip viewing on the map a little car following all coordinates related for every GPS points I have in my trip's database for that trip.
Basically my app have three view the login page, the search page and the mapview.
In the search page I need also to include a filter by the city name (start or end) and the trip date range.
About the animation of the trip it's possible to include a bar at the bottom of map view to have play ,forward anda back buttons like a record player ?
Thank's in advance and sorry for my english.
Brunix

Related

View and Geolocation fields

There is something wrong with my views and the way it's communicating with geolocation field. Firstly the map is not opening zoomed out so you can see all locations within the view which means I have to zoom out to see all the map markers.
Secondly, whenever the markers are hovered or clicked they don't show any relevant field data or links to the nodes of which the markers are related. I've tried every configuration that I can think of in views Format, Fields and Filter criteria and nothing seems to work.
My entity structure consists of Venues and Events. The Venue has the geolocation field which is entity referenced in the Event with inline_entity_form (complex). The view I'm working from is an Events view with a relationship to Venues. I've also tried putting a geolocation field directly in the Event entity and I still have the same problem.
Does anybody have a solution to these issues?
screenshot of current map view
add attachment for your map and also separate page for the list of your fields.Also in the filter criteria exposed the boundary of you geolocation field.Enable ajax,it works for me.

Adding Button/Label on Pdf Page using PDFKIT

I am trying to add some interactive buttons on pdf pages. I am showing Pdf file using Apple PDFKit and I have implemented UITapGesture, so when user tap on screen I show a annotation on it, issue is I want to mark this annotation as number like 1,2,3 etc. and whenever user click on this annotation user should be prompt a message that do you want to delete it? and then remove it.
Now,
How can I give annotation as numbers 1,2,3 etc.?
How can I add action on this same annotations? so that user can delete it on action?
Note: If you are unable to understand use case, then just take an example of placing balls of snooker game on different places.

Enable user to select location from drop down or map?

I have an app that automatically gets the user's location via GPS if enabled, but I'd like to provide an option to allow the user to manually input the location. I'm not sure how this can work form a UX or technical perspective. Below is my screenshot from my table.
If the user disables Automatic, I'm not sure what the best way for the table to react or what controls to use. Should I open a modal view and display drop downs for the user to select their: country > Province > City? Or maybe to allow them to place a pin on a map? Could it be very simple to implement a text box that allows the user to enter an address then I can geocode it instead? I eventually want to end up with coordinates in my app code.
What kind of data or services do I need to accomplish this? It's a small feature, but I'm finding it to have many factors involved. Any help or advice would be greatly appreciate!
I would suggest implementing a UIMapView with 1. a UISearchBar above it 2. a UIButton that pings the user to their current location, to the right of the searchBar and above the mapView 3. an 'Add Location' button at the bottom left of the mapView and 4. a 'Cancel' button at the bottom right of the mapView. The 'Add Location' button would use the center coordinate of the map.
When a user switches from 'Automatic' to 'Manual' put a button to the right of the label that says 'Add Location' or 'Update Location'. Pressing this button would animate the previously discussed view to sweep in, or however you want to animate it.
Good luck with your design!

Changing balloon text with Gmaps4rails

I'm using Gmaps4rails to display a google map in my rails application. I have a list of locations displayed correctly on the map, but when I click one of the points, the balloon which pops up doesn't show the information I want displayed. I don't think it would be hard to change the data/format of the balloon information, but I can't find where this balloon information is stored!
What files within Gmaps4rails define what information is displayed in the balloon when a point on the map is clicked?
You must redefine gmaps4rails_infowindow method in your model, for example:
def gmaps4rails_infowindow
"<h1>#{self.name}</h1><p>#{self.address}</p><p>#{self.description}</p>"
end
Security Warning

Show featured item in view

This is more of a generalized approach question. I wanted to see if anyone could give me some pointers.
I'm making a rails app that will have a "featured item". This item will have a start date/time and an end date/time, and only one item will be within that time range (so, if today is within item X's range, item X is the current featured item).
For showing this in my View, would it be best just to show whichever one has a start date that's <= than today's date/time and end date that's >= than today's date/time, or is there a better way to approach it? Each item will have a picture and some text - nothing too fancy.
I'm looking forward to hearing your thoughts.
I would put the featured logic in your model. The time constraints you have sound good. It is good to put the featured logic in your model because you can then make a validation that ensures that no item has a featured time range that overlaps another one. Then in your view you could simply call something like Post.get_featured and that would get the current featured post.

Resources