Arcgis Runtime for andriod 100 Simple marker symbol

Posted gisoracle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Arcgis Runtime for andriod 100 Simple marker symbol相关的知识,希望对你有一定的参考价值。

 

//create a simple marker symbol
SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, Color.RED, 12); //size 12, style of circle

//add a new graphic with a new point geometry
Point graphicPoint = new Point(-226773, 6550477, SpatialReferences.getWebMercator());
Graphic graphic = new Graphic(graphicPoint, symbol);
graphicsOverlay.getGraphics().add(graphic);

 

//define a polyline for the boat trip
Polyline boatRoute = getBoatTripGeometry();
//define a line symbol
SimpleLineSymbol lineSymbol = new SimpleLineSymbol(SimpleLineSymbol.Style.DASH, Color.rgb(128, 0, 128), 4);
//create the graphic
Graphic boatTripGraphic = new Graphic(boatRoute, lineSymbol);
//add to the graphic overlay
graphicOverlay.getGraphics().add(boatTripGraphic);

以上是关于Arcgis Runtime for andriod 100 Simple marker symbol的主要内容,如果未能解决你的问题,请参考以下文章

Arcgis Runtime for andriod 100 加载geodatabase

Arcgis Runtime for andriod 100 加载TPK

Arcgis Runtime for andriod 100 Simple marker symbol

ArcGIS Runtime for Android 5 加载地图

用ArcGIS Runtime for Android建立简单App,展示地图

ArcGIS Runtime for Android 1 开发环境部署