I thought I'd mention that this workaround is no longer necessary as of version 10.2 of the SDK.
BufferedImage img = symDictionary.getSymbolImage(selectedSymbol.toString(), 150, 150); //some code to make the image a little different in some way PictureMarkerSymbol pms = new PictureMarkerSymbol(img); Point pt = map.toMapPoint(eventInfo.getX(), eventInfo.getY()); Graphic gr = new Graphic(pt, pms); GraphicsLayer gl = new GraphicsLayer(); map.getLayers().add(gl); gl.addGraphic(gr);
g.drawImage(bufferedImage, 0, 0, getSize().width, getSize().height, null);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.