public void swingTimer() { Timer tm = new Timer(1000, new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { System.out.println("Tick!"); Random rnd = new Random(); //point Double xPos = (double) rnd.nextInt(10000000); Double yPos = (double) rnd.nextInt(10000000); Point pt = new Point(xPos, yPos); SimpleMarkerSymbol sms = new SimpleMarkerSymbol(Color.red, 10, Style.CIRCLE); Graphic gr = new Graphic(pt, sms); gl.addGraphic(gr); //mil symbol Message message = new Message(); UUID uuid1 = UUID.randomUUID(); message.setID(uuid1.toString()); message.setProperty("_Type", "position_report"); message.setProperty("_Action", "update"); message.setProperty("_Control_Points", xPos + ","+ yPos); //message.setProperty("sic", "SFGPUCRRL--E---"); message.setProperty("sic", "GHSPPT--------X"); message.setProperty("_WKID", "3857"); message.setProperty("UniqueDesignation", "Mad dog"); mgl.getMessageProcessor().processMessage(message); } }); tm.setInitialDelay(10000); tm.start(); }
Can you post some code which reproduces your issue?
military symbols posted to the map are not "posting to", or appearing on, the map while it is minimized and then it is restored, after posting, to viewable window size, until a panning/zooming action occurs which causes the map to refresh. This does not occur while in viewable window size.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.