Appcelerator Titanium - marker on Image - imageview

I have a floor plan of the building in which need to place marker on different location of the rooms and area. I have achieved this in Android native but needs to do for the cross platform in titanium.
The approach I used was - get the x,y coordinates for each room and overlay a flag icon or something. I'm not sure how this would work with titanium.
Any other approaches will also be good.
The main idea of the app is highlight the room with marker when user search for the particular room.
Thanks

Related

Creating the stereo photosphere without Unity

I'm working on a Daydream app using the Google VR SDK/NDK. To submit the app to Google Play, I need a 360-degree stereo photosphere. I've seen directions for creating this with Unity, but is there any way to create this without Unity?
I've taken a screenshot of the app in stereo mode, but I don't think that will satisfy the requirement.
Google doesn't provide any tools to capture in-app photospheres in non-Unity apps at this time. Some devs produce photospheres in modeling apps like Maya and Blender.
You could always cheat and make your "Daydream 360 degree stereoscopic image" in Photoshop. Just use the same image twice, once on top and once on the bottom.
I think others have already done this, because I have noticed a few wrong looking previews in the store. Where if I close one eye, parts of the image disappear.
If you change your mind and make one with Unity, this plugin worked nicely for me: https://www.assetstore.unity3d.com/en/#!/content/38755

Windows Band Tile GeoFencing

We are going to be developing Tiles for the Microsoft Band 2. Is there anyway to Geo-Fence certain Tiles based on GPS that are created for business use so they only work within the confines of the company area?
It depends on what you mean by "work within the confine of the company area". You cannot run code on the Band itself (only read from or push to the Band via an application running on your mobile device), so you cannot prevent the user from arbitrarily opening a Tile if it's present on the Band. There are also no geo-fencing features related to Tiles on the Band.
If you don't want custom buttons within a Tile to function when outside of a given region--that's easy. Button press events are sent to and handled by the application on the mobile device and can simply be ignored if the user is outside that region.
If you don't want the user to see any content in the Tile outside of a given region, you may be able to use the Tile opened events to give your application an opportunity to clear the content of the Tile if the mobile device is outside that region (and then to re-send it if inside that range). Still, pushing content to the Band over a Bluetooth takes time so the user may still have the opportunity to see the content before it's cleared/updated. Even if were fast, you can only connect to the Band when both Bluetooth is enabled and the Band is within range of the mobile device. If the user were to turn off Bluetooth on the Band or just step far enough away from the mobile device, the user will be able to see all existing content within the Tile.

Qt Screenshot sharing app - How to select the area of a screen

I am trying to code an app in Qt for capturing and then sharing the screenshots. For now my application captures the screenshot, shows a preview and saves it. I am yet to do the upload part. but before that I would like to be able to select the area of the screen of which the screenshot needs to be captured.
I tried searching and I couldn't find any helpful articles or documents in Qt. So can anyone help me?
PS: The idea is to create a similar app like lightshot and several other similar tools.
Thanks in advance
There are two methods that you can use for this: -
1) Capture an image of the screen and then display that, full screen to the user, essentially allowing the user to crop the image.
2) A more commonly used method is to create a full-screen, topmost window that has no title bar and is transparent. This allows the user to drag out an area, which you can draw an outline to represent the area the user requires.
I recommend the 2nd method and creating a transparent window is simply a matter of changing the window flags, as you can see here.

Specific way of selecting a location on a google map

I've inherited a small project. The person before me created a native app for iPhone, implemented in objective-c, and my job is to remake it as a webapp with PhoneGap for iOS and Android.
In my predecessor's original implementation, part of the app has the functionality of allowing the user to drop a marker on a map to select a location. I found a comparable way of doing this, but the supervisor wants the exact way she'd done it, which I'm having a little trouble with. Let me describe:
In her native app, the map appears with a marker in the center of it. The user then slides the map around beneath the marker (which stays in place on the screen), until the marker is positioned over the spot they want. Then they hit a button marked "Select," and those coordinates are sent to the app for irrelevant other operations.
I'm trying to do the exact same thing with the google-maps javascript api and html/css, and I can't figure it out. Do any of you Gmaps pros have any ideas?
You may observe the center_changed-Event of the map. When it fires set the position of the marker to the new center of the map.
Another suggestion:
For a better effect instead of a marker you may use a custom control. You may insert a marker-image there so it will look like a marker. To place it in the center, push the control to
map.controls[google.maps.ControlPosition.RIGHT_CENTER]
(it will be vertically centered then) and apply the horizontal centering by adding a right-margin to the control

Masking the Google Map in iOS

In my app I have displayed some custom overlay on google map using MKOverlay with the help of TileMap sample code. My requirement is, I need to mask the entire google map underneath the overlay.That is, I want rest of the map area to appear to be in gray except my custom overlay.
Could anyone give me direction on how to achieve this?
Thanks in advance,
I don't know all the calls that you'd need to cover but I know how to find out. In the TileMap example code provided by Apple they show how the MKMapView will call for tiles. All you'd need to do is swap out the code that finds files on disk and swap in some code that always returns a grey square every time.
However this won't remove the Google logo or stop the app from downloading the map tiles from Google in the background. If you find out how to stop that please let me know.

Resources