Closing over

Closing over

I have this code for an overlay box on a map , once its opened i cant close it without refreshing my browser i would like to have an x so i can close the overlay box  here's the code for the box. many thanks

events:{
                    mouseover: function(marker, event, context){
                        $(this).gmap3(
                        {
                            clear:"overlay"
                        },

                        {
                            overlay:{
                                latLng: marker.getPosition(),
                                options:{
                                    content:  "<div class='info-location'>" +
                                    "<div class='text'><h4>" 
                                    + context.data.properties_name +
                                    "</h4>"+
                                    "<img src='"+ context.data.img_preview +"' width=90> Homes Starting from <br/>"+
                                    context.data.properties_desc +
                                    "<br/><a href='"+context.data.properties_link +"'class='btn btn-proper btn-small'>See Details</a></div>" +
                                    "</div>" + 
                                    "<div class='arrow-location'></div>" ,
 
                                    offset: {
                                        x:-46,
                                        y:-73
                                    }
                                }
                            }
                        });
                    }
                    
                }
    • Topic Participants

    • chile