About Santiago: santiago@cartodb.com @namessanti
Jaak Laineste
@jaakl
| 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) |
| /* | |
| * 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 |
| <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> |
About Santiago: santiago@cartodb.com @namessanti
Jaak Laineste
@jaakl
| // 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 |
I hereby claim:
To claim this, I am signing this object:
| # 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 |