I'm trying to make a popup using OpenLayers (more specifically using Ol4JSF) but the part of adding the popup uses the direct jscript, and the popup comes out all bugada. What is the reason?
Codeused:
<m:script>varlonLat=newOpenLayers.LonLat(-47.89460,-22.00710).transform(newOpenLayers.Projection("EPSG:4326"),
new OpenLayers.Projection("EPSG:900913")
);
var popup = new OpenLayers.Popup.FramedCloud("Popup",
lonLat, null,
'Texto', null,
true
);
map.setCenter(lonLat, 18);
map.addPopup(popup); </m:script>