- point1=map.toMapPoint(400,426);
- point2=map.toMapPoint(600,640);
- initextext = new Envelope(point1.getX(),point1.getY(),point2.getX(),point2.getY());
- SimpleFillSymbol sfs=new SimpleFillSymbol(Color.GRAY);
- sfs.setAlpha(60);
- agraphicLayer.addGraphic(new Graphic(initextext,sfs));
- map.addLayer(agraphicLayer);
先根据俩对角线的点获取Extent