/** * Gets whether the GeoJsonPolygon is geodesic * * @return true if GeoJsonPolygon is geodesic, false if not geodesic */ public boolean isGeodesic() { return mPolygonOptions.isGeodesic(); }
public void testGeodesic() throws Exception { polygonStyle.setGeodesic(true); assertTrue(polygonStyle.isGeodesic()); assertTrue(polygonStyle.toPolygonOptions().isGeodesic()); }
/** * Gets a new PolygonOptions object containing styles for the GeoJsonPolygon * * @return new PolygonOptions object */ public PolygonOptions toPolygonOptions() { PolygonOptions polygonOptions = new PolygonOptions(); polygonOptions.fillColor(mPolygonOptions.getFillColor()); polygonOptions.geodesic(mPolygonOptions.isGeodesic()); polygonOptions.strokeColor(mPolygonOptions.getStrokeColor()); polygonOptions.strokeWidth(mPolygonOptions.getStrokeWidth()); polygonOptions.visible(mPolygonOptions.isVisible()); polygonOptions.zIndex(mPolygonOptions.getZIndex()); polygonOptions.clickable(mPolygonOptions.isClickable()); return polygonOptions; }
public void testDefaultGetPolygonOptions() throws Exception { assertEquals(Color.TRANSPARENT, polygonStyle.toPolygonOptions().getFillColor()); assertFalse(polygonStyle.toPolygonOptions().isGeodesic()); assertEquals(Color.BLACK, polygonStyle.toPolygonOptions().getStrokeColor()); assertEquals(10.0f, polygonStyle.toPolygonOptions().getStrokeWidth()); assertTrue(polygonStyle.isVisible()); assertEquals(0.0f, polygonStyle.toPolygonOptions().getZIndex()); } }
/** * Gets whether the GeoJsonPolygon is geodesic * * @return true if GeoJsonPolygon is geodesic, false if not geodesic */ public boolean isGeodesic() { return mPolygonOptions.isGeodesic(); }
public boolean isGeodesic() { return real.isGeodesic(); }
/** * Gets a new PolygonOptions object containing styles for the GeoJsonPolygon * * @return new PolygonOptions object */ public PolygonOptions toPolygonOptions() { PolygonOptions polygonOptions = new PolygonOptions(); polygonOptions.fillColor(mPolygonOptions.getFillColor()); polygonOptions.geodesic(mPolygonOptions.isGeodesic()); polygonOptions.strokeColor(mPolygonOptions.getStrokeColor()); polygonOptions.strokeWidth(mPolygonOptions.getStrokeWidth()); polygonOptions.visible(mPolygonOptions.isVisible()); polygonOptions.zIndex(mPolygonOptions.getZIndex()); return polygonOptions; }