ALKMaps.Popup.SimplePopup

Inherits from

Example

var popup = new ALKMaps.Popup.SimplePopup(
    "mySimplePopup",
    new ALKMaps.LonLat(-107, 39).transform(new ALKMaps.Projection("EPSG:4326"), map.getProjectionObject()),
    new ALKMaps.Size(300, 220),
    "<p>Popup content goes here.</p>",
    new ALKMaps.Pixel(0, 8), // offset
    true,
    function(){
        // closeBox click callback function
    });

Properties

sizeAdjustment

{ALKMaps.Size} Rendered content width and height adjustments.

Constructor

ALKMaps.Popup.SimplePopup

Parameters

id{String} unique identifier
lonlat{ALKMaps.LonLat} the location that the popup points to
contentSize{ALKMaps.Size} popup content width and height
contentHTML{String} popup content HTML in string
offsetALKMaps.Pixel popup offset in x and y directions
closeBox{Boolean} having a close box or not
closeBoxCallback{Function} function to be called on closeBox click.
Instances of this class represent a width/height pair
A popup is a small div that can opened and closed on the map.
This class represents a longitude and latitude pair
This class represents a screen coordinate, in x and y coordinates
Close