Skip to content

Instantly share code, notes, and snippets.

View jaakla's full-sized avatar

Jaak Laineste jaakla

  • Sixfold
  • Estonia
  • 17:41 (UTC +02:00)
View GitHub Profile
@jaakla
jaakla / Circle.java
Last active August 29, 2015 14:07
Draw circle on earth
GeometryLayer geomLayer = new GeometryLayer(proj);
// circle of 1000 km around London
addCircle(geomLayer, new MapPos(0,51), 1000);
mapView.getLayers().addLayer(geomLayer);
/**
* Draw circle around given point, from latitude/longitude
* Note: many parameters are hardcoded, like style, circle resolution etc - feel free to modify or make parametric
* @param gl GeometryLayer where circle is added
* @param circlePos Location of circle center, in longitude (x) and latitude (y)
@jaakla
jaakla / tesselate_license.txt
Created October 1, 2014 19:56
tesselate license except
/*
* Portions Copyright (C) 2003-2006 Sun Microsystems, Inc.
* All rights reserved.
*/
/*
** License Applicability. Except to the extent portions of this file are
** made subject to an alternative license as permitted in the SGI Free
** Software License B, Version 1.1 (the "License"), the contents of this
** file are subject only to the provisions of the License. You may not use
@jaakla
jaakla / pom.xml
Created December 8, 2014 12:31
Maven config to use Nutiteq Maps SDK 3.0 in Android apps
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.nutiteq.advancedmap3</groupId>
<artifactId>com.nutiteq.advancedmap3</artifactId>
<version>0.0.1-SNAPSHOT</version>
<properties>
<platform.version> 4.1.1.4
</platform.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@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
@jaakla
jaakla / dynaminc_maps.md
Last active August 21, 2016 20:01 — forked from namessanti/dynaminc_maps.md
Workshop: Making Dynamic Maps with CartoDB
@jaakla
jaakla / vatican.geojson
Created September 20, 2016 10:25
vatican.geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jaakla
jaakla / mobile_gis_workshop.md
Last active August 10, 2017 09:34 — forked from Nikituh/mobile_gis_workshop.md
Mobile GIS workshop

Your first native mobile GIS app with CARTO SDK

alt text

Jaak Laineste, @jaakl

Preparation

A computer with:

  • Linux, Mac or Windows

Preparations for mobile GIS app with CARTO SDK workshop

alt text

Jaak Laineste, @jaakl

Important: please install Android SDK tools as instructed below before workshop. It involves over 1GB download and it saves a lot of time and hassle on-site if you do it beforehand.

Requirements

Keybase proof

I hereby claim:

  • I am jaakla on github.
  • I am jaakl (https://keybase.io/jaakl) on keybase.
  • I have a public key ASD4mZBSvmDIdD_06iGZjNSvuzb29s2qs3pWUlE3ZNuh-Ao

To claim this, I am signing this object:

@jaakla
jaakla / grid10T.py
Last active September 29, 2018 21:28
Eesti Põhikaardi 1:10000 grid numbri arvutus
# src: https://geoportaal.maaamet.ee/est/Andmed-ja-kaardid/Koordinaatsusteemid-ja-kaardilehtede-jaotused/Kaardilehtede-susteemid-p224.html
# consts for bounds
xmin = 300000
xmax = 800000
square_x = 100000 # 1st level grid size
ymin = 6300000
ymax = 6700000
square_y = 100000
start1 = 4 # grid digit offsets