OpenLayers OpenLayers

Ticket #131 (closed bug: fixed)

Opened 2 years ago

Last modified 2 years ago

Popups broken in Firefox

Reported by: barry.sears@gmail.com Assigned to: euzuro
Priority: major Milestone: 2.0 Release
Component: Popup Version:
Keywords: firefox popup Cc:
State:

Description

Strange bug in Firefox; clicking on a marker doesn't do anything. Mostly copy and paste from an example. Works in IE.

Example and some code:

<script type="text/javascript">
        <!--
        function init_map(){
            var map = new OpenLayers.Map('map');

            var places = new OpenLayers.Layer.Text( "text", "./markers.txt" );

            var ol_wms = new OpenLayers.Layer.WMS( "OpenLayers WMS", 
                "http://labs.metacarta.com/wms/vmap0",
                {layers: 'basic'} );

            var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
                "http://wms.jpl.nasa.gov/wms.cgi", 
                {layers: "modis,global_mosaic"});

            var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
                "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
                {layers: "bathymetry,land_fn,park,drain_fn,drainage," +
                         "prov_bound,fedlimit,rail,road,popplace",
                 transparent: "true", format: "image/png" });

            

              
              jpl_wms.setVisibility(false);
              dm_wms.setVisibility(false);


            map.addLayers([ol_wms, jpl_wms, dm_wms]);
            map.addLayer(places);
            map.setCenter(new OpenLayers.LonLat(-71, 41.5), 10);

        }
        init_map();
        // -->

</script>

Change History

07/12/06 14:50:36 changed by barry.sears@gmail.com

Forgot. OpenLayers 1.0, Firefox 1.5.0.4.

08/10/06 02:29:31 changed by euzuro

  • status changed from new to closed.
  • resolution set to fixed.

This is fixed in current OL trunk's HEAD.

...although note that with the changes to the constructor for Layer.Text, the appropriate init call should now be:

    var places = new OpenLayers.Layer.Text( "text", 
                                            { location: "./markers.txt" }
                                          );

08/16/06 01:05:26 changed by euzuro

  • milestone set to 2.0 Release.