Hello, i have this working code bellow that display on makers a infoWindow on mouse click.
Map<String, String> attributes = new LinkedHashMap<String, String>();
attributes.put("Test:", "123");
attributes.put("Test2:", "456");
markers = new GraphicsLayer();
markers.addGraphic(new Graphic(point, symbol, attributes));
map.getLayers().add(markers);
final InfoPopupOverlay infoPopupOverlay = new InfoPopupOverlay();
infoPopupOverlay.setPopupTitle("InfoPopup");
map.addMapOverlay(infoPopupOverlay);
markers.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {
@Override
public void layerInitializeComplete(LayerInitializeCompleteEvent event) {
infoPopupOverlay.addLayer(event.getLayer());
}
});
It's working perfect and on infoWindows it shows the attributes content of markers like this:
But now i need to show a HTML code or a JPainel inside this InfoWindow.
Can someone help me with this?
Using the code below, it accept html code on description, but i can't do many things like change size of infoWindow:
map.addMarkerGraphic(pLat, pLng, "test", "<html><b>test</b></html>");
------
One other question:
On this page: PopupView it shows how to edit the attributes of Features, but how i can do the same with a Graphic?
on code below, PopupView.createEditView just accept a FeatureLayes on its parameter.
PopupView contentPanel = PopupView.createEditView("Edit Attributes", arcGISFeatureLayer);
Really thank you for answers.