• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

View Post

Arcgis Runtime for andriod 100 Simple marker symbol

 GraphicsOverlay graphicsOverlay = new GraphicsOverlay(); 
58         mMapView.getGraphicsOverlays().add(graphicsOverlay); 
59 
 
60         //[DocRef: Name=Point graphic with symbol, Category=Fundamentals, Topic=Symbols and Renderers] 
61         //create a simple marker symbol 
62         SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, Color.RED, 12); //size 12, style of circle 
63 
 
64         //add a new graphic with a new point geometry 
65         Point graphicPoint = new Point(-226773, 6550477, SpatialReferences.getWebMercator()); 
66         Graphic graphic = new Graphic(graphicPoint, symbol); 
67         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);

posted on 2017-08-22 22:09  gisai  阅读(319)  评论(0)    收藏  举报

刷新页面返回顶部
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3