How to rotate map markers with Skobbler - skmaps

Is there a way to rotate individual map marker with Skobbler in the iOS and Android SDK by specifying the degree?
For example, in google Map I can use: CLLocation Class london.rotation = degrees to specify the direction this map marker should point to in MapView.

At this point the SDK does not support this functionality.

Related

Surface Magnetism Horizontal z-axis Rotation issue

I've been using the MRTK RC1 Refresh Development Kit. I'm using Surface Magnetism, to have an object follow the room's surfaces, with the following settings:
Orientation Mode = "Full", Raycast Direction = "Camera Facing", Orientation Blend = "1"
Everything works as expected on vertical surfaces, however with horizontal surfaces the object keeps rotating on the Z-axis without stabilizing according to the headset location. Has anyone else been experiencing this issue?
Thanks!
I suggest filing an issue at the MixedRealityToolkit git project.

Is there a way to customize style of Bing Maps PolyLine?

Is it possible to add custom styling to polyline in Windows UWP maps control? For example can you make a gradient on the line so one side is bold and then fades to the other side, or maybe make the edges of the line blurred.
The UWP map control is a native C++ control and rendering of polylines, polygons, and MapIcons are done using native C++. As such most XAML styling functionalities are not an option. The MapPolyline class allows you to customize the stroke color, stroke thickness and the make the line a dashed line. Documentation is here: https://msdn.microsoft.com/en-us/library/windows/apps/xaml/windows.ui.xaml.controls.maps.mappolyline.aspx
The color must be a Color and not a brush.

Center screen at a SVG object

I'm developing a gps tracking app for android using custom SVG maps. I can print my exact position at the SVG map through the device's GPS but I'm having some difficulties when I want to pan/center the screen at my position. Basically the idea is to keep moving/panning the map automatically while i'm moving so the user won't have to do it by himself. I'm using the jquery.panzoom (https://github.com/timmywil/jquery.panzoom). Has anyone did this before, would appreciate any suggestions. Thanks
You could try using SVG fragment identifiers.
http://www.w3.org/TR/SVG11/linking.html#SVGFragmentIdentifiers
Basically you can supply a viewBox in the URL of the SVG you are linking to. That's assuming you are using an external SVG file (ie not embedded).
So for instance, if you want to show the top left 200x200 of an SVG, you can do:
http://url.of.my.svg/map.svg#svgView(viewBox(0,0,200,200))
An example: http://upload.wikimedia.org/wikipedia/commons/2/21/New_Zealand_location_map.svg#svgView(viewBox(800,1600,400,400))
Then when the GPS position changes, you just update the URL. It saves having to mess about with the contents of the file.
The only proviso is that I haven't checked that the Android WebView supports it. I'm assuming you are using a WebView??

Rotation for some elements

I am trying to do thing that is already done in default Android 2.3 camera application - rotation only for some elements (such as buttons) when changing orientation of the device.
For example, when I switch my phone to landscape orientation I don't need to change whole layout - I only need to rotate some UI elements.
Don't know about Camera application in Android 4, but in Android 2.2 it looks the same as I want.
Is it possible?
(and sorry for bad English, guys)
This is an old question but I've just stumbled across it by accident. In case anybody finds this and is stumped there are two easy solutions. Your elements support a 'rotate' attribute which can do most of the hard work for it (just set an angle), but beware this seems to change the canvas dimensions and can leave you with empty padding. There is also a Rotate Drawable which will help you rotate other drawables.

Google Earth Determining zoom level from bounding box

I got a Windows Forms app making use of Google Earth where users can draw a polygon on the map which is used as a geofence.
What I'd like to do is to be able to zoom to the polygon so that it fits nicely on screen with a click of a button. A sort of zoom to fit function.
Finding the centre of the polygon and setting the Google Earth camera to that lat/long is easy.
What I need is an algorithm that takes a bounding box of lats \ longs, screen height \ width and then determines the altitude to set the camera.
Does anyone have this algorithm or know where one can be found?
Thanks!!
To "zoom to the polygon" or any other KmlObject it is probably easiest to use the earth-api-utility-library.
See the methods createBoundsView, setToBoundsView and especially flyToObject
For example, where ge is the GEPlugin object and polygon is a KmlPolygon.
var gex = new GEarthExtensions(ge);
gex.util.flyToObject(polygon, { boundsFallback: true, aspectRatio: 1 } );

Resources