Skip to content

Instantly share code, notes, and snippets.

@nutiteq
nutiteq / maakonnad.geojson
Created July 16, 2014 08:35
Eesti maakonnad
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
// Shows International Space Station location as marker on map, for current time
{
MapPos issPos = predictISS(System.currentTimeMillis());
iss = new Marker(
mapView.getComponents().layers.getBaseProjection().fromWgs84(issPos.x, issPos.y),
new DefaultLabel("ISS"), markerStyle, null);
markerLayer.add(iss);
@nutiteq
nutiteq / MyMapView.java
Last active August 29, 2015 14:00
overwritten mapview nutiteq
package com.nutiteq.hellomap;
import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import com.nutiteq.MapView;
import com.nutiteq.log.Log;
public class MyMapView extends MapView {
@nutiteq
nutiteq / Circle.java
Created January 30, 2014 18:38
Draw circle in Nutiteq SDK
{
// create layer and add a circle to it
GeometryLayer locationLayer = new GeometryLayer(mapView.getLayers().getBaseProjection());
mapView.getComponents().layers.addLayer(locationLayer);
circle(-122.416667f, 37.766667f, 100, locationLayer);
}
// helper to draw a circle to given layer
private void circle(float lat, float lon, float circleRadius, GeometryLayer layer){
@nutiteq
nutiteq / EPSG3301.java
Created December 3, 2013 10:08
Custom projection definition with Nutiteq Maps SDK
package com.nutiteq.projections;
import com.nutiteq.components.Bounds;
/**
* EPSG:3301 is L-EST projection, Estonian official (Lambert Conformal Conical)
*/
public class EPSG3301 extends Projection {
private static final String ARGS[] = "+proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
.split(" ");
@nutiteq
nutiteq / maakond.geojson
Created September 18, 2013 07:36
Eesti maakonnad
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nutiteq
nutiteq / map.geojson
Created August 13, 2013 13:39
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nutiteq
nutiteq / map.geojson
Created August 12, 2013 15:15
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nutiteq
nutiteq / map.geojson
Created August 12, 2013 15:14
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@nutiteq
nutiteq / map.geojson
Created August 12, 2013 15:14
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.