This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder