overlay

Adding a custom marker to map - Android

我的梦境 提交于 2019-12-03 22:53:40
问题 I currently have an app which displays google maps to the user using MapView. I have been trying to place a marker on the map using this code, public boolean onTouchEvent(MotionEvent event, MapView mapView) { if (event.getAction() == 1) { GeoPoint p = mapView.getProjection().fromPixels((int) event.getX(), (int) event.getY()); DemoOverlay demoOverlay = new DemoOverlay(); mapView.getOverlays().add(demoOverlay); mapView.invalidate(); } return false; } I have a Demo Overlay set up which puts a

How can I make a fullscreen overlay on the OS X desktop?

眉间皱痕 提交于 2019-12-03 21:37:05
I want to make some kind of drawable surface that exists beneath the mouse cursor but above everything else rendered on the desktop. I am trying to create a "trail" behind the mouse. How can I do this in Cocoa and Objective-C? You need to subclass NSWindow to create a borderless window and set its window level to something like NSScreenSaverWindowLevel - 1 . - (id)initWithContentRect:(NSRect)contentRect styleMask:(NSUInteger)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag { self=[super initWithContentRect:contentRect styleMask:NSBorderlessWindowMask backing:bufferingType

Add overlays to video on Android [closed]

笑着哭i 提交于 2019-12-03 21:20:53
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 3 years ago . I'm developing an Android application, this application load video file from android gallery that saved on SD Card. I need to know how can I add overlays to this video I need to add title and image on this video like brand images I can not find an example or tutorial describe how to do this operation Do I have to use decoding to add overlays? , And if yes how can I do

proximity search google map

我只是一个虾纸丫 提交于 2019-12-03 19:58:37
I am using google map v3 to capture all the addresses in a MS SQL database table called Locations which will have columns like LocationName, LocationAddress, LocationZip, LocationState, LocationCity, LocLatitude, LocLongitude and LocationType(like hospital, physician office or emergency centers etc).. I have an input box where users can search by keyword and a dropdown with 5,10, 20 and 50 miles radius option. I have been able to use the input box and pass the typed keyword as querystring to search for all the matching location and plot markers for them in google map api 3. I also like to do

iPhone sdk - Use a custom camera

China☆狼群 提交于 2019-12-03 19:17:06
问题 I'm developing an app that needs to take two pictures in a row. I'm currently using the iPhone camera but : I would like to NOT have the cancel button on the bottom left I would like to NOT have the preview of my picture (with the blue button "use"). What should I do ? Should I make my own camera ? I couldn't find an easy tutorial for a custom camera with only a "take picture" button... 回答1: The easiest way to do it is to use UIImagePickerController with showsCameraControls set to NO and a

How can I rotate an overlay image on Google Maps?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 17:36:43
I'm trying to place a series of overlays onto a Google Map. I'm following along with the sample code for ground overlays , but that only allows me to dictate image placement using north/south/east/west boundaries. The works as long as my image is a rectangle and oriented along longitude and latitude lines. I'd really like to be able to accurately place an image, including custom scale and angular orientation. That doesn't seem possible with a ground overlay. So here's a possible use case. I'm building a website to help city planners test parking availability. The city planner uses a Google map

C# “Lock” an overlay form to the position of another window

≯℡__Kan透↙ 提交于 2019-12-03 17:33:38
I am making an add on for a game, but I want it to reside as an overlay to the game's client area of the window. Basically when I start the add on, i want it to show on top of the game. The catch is if you minimize or move the window, I want the the form to stick with it. Anyone know of anything that can do the trick without having to hook directdraw? Thanks. Here is a simple way to do this. First, you'll need this line in your form's using statements: using System.Runtime.InteropServices; Next, add these declarations to your form: [StructLayout(LayoutKind.Sequential)] public struct RECT {

Service with Overlay - catch back button press

柔情痞子 提交于 2019-12-03 17:28:43
问题 How can i do that? Current solution I launch a transparent activity, that catches the back press, forwards it to my service and closes itself afterwards. But this activity will be visible in the current running activities and therefore it's not a very beautiful solution. Solutions seen I've seen an app that does catch the back press in a service - without an activity that catches the back press. If I show the current running activities, there is nothing from this app. Question How can this be

UIScrollView shifts below navigation and status bar

核能气质少年 提交于 2019-12-03 17:28:21
I have view which contains a scrollView. When the view shows up the image appears in full screen (320x480) hiding the status and navigation bar. When I tap the screens - status and navigation bar appears on the screen. But this thing shifts the UIScrollView below the the navigation bar. I want the status and nav bar to show over my scroll view. Like it happens in the photos app. On tapping the image the status and nav bar shows over the scrollView. Below is how I am positioning the view //What I have done in viewDidLoad [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

Configuring heatmap overlays using Google Maps API

落爺英雄遲暮 提交于 2019-12-03 16:40:35
I'm trying to use the Google Maps API to generate a heatmap of locations. It works, but the result is not very useful, since the parts rendered by the heatmap are small are hard to see: Nothing in the docs suggest a way to expand the heatmap to render in larger blobs. Is there an undocumented way of doing this or is this just a limitation of the API? Do I just need more data points? I've pasted the code I'm using below. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body {