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 });
ALKMaps. | |
Properties | |
sizeAdjustment | {ALKMaps.Size} Rendered content width and height adjustments. |
Constructor | |
ALKMaps. |
{ALKMaps.Size} Rendered content width and height adjustments.
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 |
offset | ALKMaps.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. |