OpenLayers | CloudPopUp

2

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>
    
asked by anonymous 07.02.2014 / 14:25

1 answer

1

I was able to solve the problem, was adding the Javascript code outside the OL4JSF tag: D, I got an example of the component and I adapted it, the stranger that has that tag, it was for all the jscript in relation to the map, but anyway

    
11.02.2014 / 11:46