How to indicate direction with Skobbler polylines? - skmaps

I'm building an offline driving tour app with skobbler. In the app there is a custom route for users to follow. I can draw the Polyline using SKPolyline class, but it'd be much better if there is a way to indicate the direction directly on the Polylines. For example, when you use skobbler's ForeverMap for routing, the app displays arrows on the route to indicate the direction.
What could be a possible way to do this?
Ideas considered:
1) Use multiple point routing, which I can use to connect all the tour destinations and use the provide direction. But this doesn't seem possible with Skobbler at this point.
2)Rotate map markers to point to the directions. Skobbler doesn't support this either.
Any advice is very appreciated.

Currently it's not possible to draw directed polylines (polylines with a direction arrow in them, similar to routes) with the SDK.
Neither is rotating map markers.
From 2.4 though, you will be able to create multi point routes - routes with via points (intermediate points) - the current ETA for 2.4 is end of February but you can have a peek at the 2.4 iOS beta build (that includes via points routing & navigation) using cocoapods

Related

Android Studio: Google Map v2 How to Create Route Made by Multiple Polylines following the Roads Only

I cant found step by step tutorial about multiple polylines following a route in google maps and I need to code routes using multiple coordinates using Android Studio-Google Map. Ive been searching about weeks now and I don't have a single clue where to start coding multiple polyline that connects to the road to make a route. Any tips would really help me. It is kinda like connecting A->B,B->C,C->D to make a specific route possibly using array of latlng. My project is like bus routes, I need to code many different routes and only show 1 route at a time.
I only found straight polylines, codes like these. Not much of a help to what I need.
Polyline line = mMap.addPolyline(new PolylineOptions()
.add(new LatLng(16.416213, 120.582274), new LatLng(16.415246, 120.590181))
.width(5)
.color(Color.RED));
Anyone could give me a better idea or maybe one of kinda a step by step?
A big thanks if you could help me.

Is it possible to show a satellite map on Windows 10 UA app

I'm trying to make my first Windows 10 UA desktop app. I have a working map, but it shows the road type of map. The problem with this is, the detail isn't there, and may people won't be able to get enough info out of this.
Is there a way I can switch the map view from a road to a satellite map?
Edited for response
Sorry I miss understood, didn't realize you where using the MapControl class. Below is a link that explains how to use 3d aerial and street views (towards the bottom)
https://msdn.microsoft.com/en-us/library/windows/apps/mt219695.aspx
the code you are looking for is something like
MapControl1.Style = MapStyle.Aerial3DWithRoads;
Absolutely! You can use the Bing maps API. http://www.microsoft.com/maps/choose-your-bing-maps-API.aspx
Here is a link to a guide on getting started.
https://msdn.microsoft.com/en-us/library/ff428643.aspx
From the API you can then select the satellite map instead of the road.

Creating a Roof function

I'm having trouble to create a roof via code.
I know how to create a stairs for example :
I start a StairsEditScope and use CreateSketchedLanding with all the right parameters to create my stairs and just commit the StairsEditScope, but for a roof i cant find a clue on how to create it from scratch, any leads?
Revit provides different kinds of roofs. It is best to understand the various types from an end user point of view before starting to drive them programmatically. The simplest one is defined by a horizontal outline. You can create a roof from such an outline using the Document.NewFootPrintRoof method. Such a roof can be flat, or you can specify a slope for each edge of the outline profile. The Building Coder Xtra labs provide a working sample in the external command Lab2_0_CreateLittleHouse in Labs2.cs:
https://github.com/jeremytammik/AdnRevitApiLabsXtra/blob/master/XtraCs/Labs2.cs
Here are some other roof-related posts on The Building Coder:
RoomsRoofs SDK Sample
Roof Eave Cut
Creating an Extrusion Roof

Which tools to build a complete interactive mapping application/web application?

I want too build a web application, and I am looking at the tools I will have to use.
I want to use a real time map
I'm a thinking about :
Tilemill to get .png in order to constitue the background of my maps
or get data from a webite in shp files to build layers for this in mapnik.
Mapnik Build layers with the data I want to add on my map.
Mapnik : Put layers together and generate a map.
TileStache : generate tiles for my application.
Openlayers : Display my map with tiles in a browser.
Once my map is displayed, I'd like to add interactivity. For example when you go over a line or a circle (a town/ an event), then it gives you the attributes of this object.
But the lines and circles will integrated dirctly to the mapnik map, so I need to add some javascript to make it dynamic and open a pop-up. How do I do this ? Using Openlayer javascript libraries or node.js.
What is your advice on the question/the way I want to use theese tools?
Thanks a lot!
I'm in a similar situation, so I don't know the answer, but from what I've been able to figure out I think you're on the right track.
I started off using the Mapbox approach, which simplifies things as long as your data is static. You use Tilemill not only to generate your PNG tiles (once you've used Carto to do some nice styling) but also to import your data sets.
TileMill can export your TileJSON and UTFGrid files with the PNG tiles all packaged up and ready to use. Mapbox will then host all that stuff for you, and you can use their mapbox.js library (an extension of Leaflet) to bring it all together in the browser, with full interactivity. Opening popups would be something you'd do in Javascript in the browser - and if you mean infoWindows (the overlay window that's associated with a map point) then that would be a call to the Leaflet API.
If you're happy to create your layers and import your data offline this approach seems to be really simple and powerful; Mapbox will even render out tiles using multiple layers overlaid - so for example you can see your circles on top of a satellite image, merged into a single PNG.
The problem really comes in when your data needs to be live and you can't therefore prepare it all ahead of time in TileMill. I'm still trying to figure this all out but it does seem as though a combination of TileStache and Mapnik would be able to serve you up the TileJSON, GeoJSON and UTFGrid files you'd need as well as the tiles themselves, in the way you've outlined in the question.
You might also want PostGIS and GeoDjango or similar behind the scenes in order to hold and manage your live data, respectively.
As I said, I'm still trying to actually get my full stack working so I can't vouch for this 100% but if your data is gathered upfront then I'd definitely recommend the TileMill route for simplicity's sake.
I hope that's a help!

Drawing Routes on Map using MapKit based on current location

In my application i want to draw Routes based on the current location moving, For Example If i am starting at a point and while i am moving the current location also navigates with me, I have to draw route along the way i am moving.
I saw some sample applications but in those apps the Lat and Long values are hardcoded. How can i do this, I want to draw the route dynamically along the moving of current app. Please give me any idea.
Thanks.
Apple supplied a demo application called Breadcrumb with the 2010 WWDC Developer videos that does exactly this. You can get the sample code from here: http://developer.apple.com/videos/wwdc/2010/

Resources