Skip to content

Instantly share code, notes, and snippets.

View jaakla's full-sized avatar

Jaak Laineste jaakla

  • Sixfold
  • Estonia
  • 18:29 (UTC +03:00)
View GitHub Profile
@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 / 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 / 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)