zoukankan      html  css  js  c++  java
  • 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);

  • 相关阅读:
    HDU1196 ZOJ2417 Lowest Bit
    HDU1008 ZOJ2108 Elevator
    HDU2614 Beat
    HDU2057 A + B Again
    POJ3984 迷宫问题
    HDU1013 POJ1519 Digital Roots
    HDU2051 Bitset
    HDU2037 今年暑假不AC
    ACM入门练习与递推小结
    HDU2046 骨牌铺方格【递推】
  • 原文地址:https://www.cnblogs.com/gisoracle/p/7413952.html
Copyright © 2011-2022 走看看