码迷,mamicode.com
首页 > 其他好文 > 详细

Arcgis Runtime for andriod 100 Simple marker symbol

时间:2017-08-22 23:18:02      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:line   style   com   dash   runtime   spatial   lin   lines   marker   

 

//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

标签:line   style   com   dash   runtime   spatial   lin   lines   marker   

原文地址:http://www.cnblogs.com/gisoracle/p/7413952.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!