Skip to content

Instantly share code, notes, and snippets.

View jaakla's full-sized avatar

Jaak Laineste jaakla

  • Sixfold
  • Estonia
  • 17:47 (UTC +02:00)
View GitHub Profile
@ramiroaznar
ramiroaznar / readme.md
Last active December 15, 2016 11:24
CARTO Viewer Workshop
@jaakla
jaakla / TwoColorLine.java
Created January 8, 2016 16:26
2 color line with Nutiteq
// Add line with 2 colors
// You need special bitmaps in res/drawable-nodpi folder: line_left.png and line_right.png
// Create line style, and line poses
Bitmap lineBitmapL = BitmapFactory.decodeResource(getResources(), R.drawable.line_left);
Bitmap lineBitmapR = BitmapFactory.decodeResource(getResources(), R.drawable.line_right);
LineStyleBuilder lineStyleBuilder = new LineStyleBuilder();
lineStyleBuilder.setColor(new Color(0xFFFF0000)); // red