articles tagged with 'programming'

Creating a Marker class for StreetView panoramas

TL;DR — Get it here: source, demo, documentation.

My latest addition to the google-maps-api-addon library is the PanoMarker, a marker which is able to remain at a fixed position inside of a custom StreetView panorama. It can be used to annotate points of interest (POI) inside a particular panorama regardless of the user's viewing direction. The difficulty in creating a marker that remains at a fixed position lies in the projection from a spherical panorama to a two-dimensional viewport. POIs are adressed in terms of heading and pitch angles with respect to the panorama's center. The viewport uses good old pixels for positioning elements. In this article I will elaborate on how to find the pixel coordinates on the viewport given heading and pitch angles of a POI.

Read more »

Useful scripts for the Google Maps API

You may remember the SimpleMarker class I made about a year ago. Recently, I started working with the Maps API quite a lot again since I'm currently writing a Google+ extension with which you can get a map of your circles. During development, I realized that an update of my marker class was long overdue. Not anymore ;-)

Read more »

A cheap IR remote for Nikon DSLRs

Figure 8
The IR remote

During a moment of boredom I decided to build an IR remote for my Nikon camera. Turned out it is a very simple and cheap project, perfect for a day with nothing else to do. The remote operates easily on distances of about 15 - 20 meters. It may be even more, but I haven't tested it yet.

Basically the remote contains a microcontroller which is powered by pressing the button. The controller then toggles an infrared LED at a frequency of about 38kHz and by that transmits the correct pattern to the camera. The remote is equivalent to Nikon's ML-L3 remote and works with a wide range of their cameras.

Read more »