GPoint Properties / Events
Updated: May 17, 2007
Views: 22076
Description: List of properties and events available to the GPoint object. Properties can be modified at a runtime to create a unique look for each separate object.
GPoints can be added through addPoint(point:Object); method. Here is an example of ho to add a GPoint object:
The code above adds a default point and places it on the specified lat,lng coordinates. You can customize the GPoint's appearance by adding additional values. Here is a yellow point with 2 pixel red border:
Event listeners can be added directly to the GPoint object. The example below adds GEOMETRY_ON_RELEASE event listener to the GPoint object.
gMap.addPoint({lat:39.74002, lng:-104.992261});
The code above adds a default point and places it on the specified lat,lng coordinates. You can customize the GPoint's appearance by adding additional values. Here is a yellow point with 2 pixel red border:
gMap.addPoint({lat:39.74002, lng:-104.992261, strokeRGB:0xFF0000,strokeThickness:2, fillRGB:0xFFFF00});
![]() |
||
| Property | Type | Description |
| index | String | Letter or number that shows up in the bubble. |
| radius | Number | Property defines default icon radius. Tail height is proportional to the radius value. |
| icon | String | Path to a custom icon. Supported formats are:
|
| iconAlignment | String | Defines icon's alignment relative to 0,0 of the point. For horizontal alignment select any of: "left", "center", "right" values. For vertical alignment select any of: "top", "middle", "bottom" values. Combine these two values with "-" delimiter. Default value is set to "top-left". |
| iconOffset | Object | Defines pixel offset on x and y axis.
GPoint.iconOffset = {x:-16,y:-16} |
| label | Boolean | Property defines whether GPoint label is displayed. Default value is set to true. |
| labelFont | Font | The name of a font for text as a string. |
| labelRGB | Number | The color of text using this text format. A number containing three 8-bit RGB components; for example, 0xFF0000 is red, and 0x00FF00 is green. |
| labelSize | Number | An integer that indicates the point size. |
| labelFormat | Object | Object that defines TextFormat for the label text field. |
| name | String | GPoint Object title. |
| lat | Number | GPoint Object latitude. |
| lng | Number | GPoint Object longitude. |
| description | String | HTML enabled description. |
| attributes | Array | Contains additional information. |
| enabled | Boolean | Defines whether the GPoint Object is enabled. If set to false, objects button events are going to be disabled. |
| drag | Boolean | Defines whether the GPoint Object can be dragged. |
| visible | Boolean | Defines whether the GPoint Object is visible. |
| zIndex | Number | Defines depth of the GPoint Object on a particular layer. This value is auto incremented. |
| zIndexAuto | Boolean | Indicates whether the GPoint Object is brought to the top of the stack on mouse event. GPoint Object must be enabled for this property to kick in. |
| stroke | Boolean | Property indicates whether stroke is displayed. Default value is set to true. |
| strokeThickness | Number | An integer that indicates the thickness of the line in points; valid values are 0 to 255. If a number is not specified, or if the parameter is undefined, a line is not drawn. If a value of less than 0 is passed, Flash Player uses 0. The value 0 indicates hairline thickness; the maximum thickness is 255. If a value greater than 255 is passed, the Flash interpreter uses 255. |
| strokeRGB | Number | A hexadecimal color value of the line; for example, red is 0xFF0000, blue is 0x0000FF, and so on. If a value isn't indicated, Flash uses 0x000000 (black). |
| strokeAlpha | Number | An integer that indicates the alpha value of the line's color; valid values are 0 to 100. If a value isn't indicated, Flash uses 100 (solid). If the value is less than 0, Flash uses 0; if the value is greater than 100, Flash uses 100. |
| strokePixelHinting | Boolean | Added in Flash Player 8. A Boolean value that specifies whether to hint strokes to full pixels. This value affects both the position of anchors of a curve and the line stroke size itself. If a value is not indicated, Flash Player does not use pixel hinting. |
| strokeNoScale | String | Added in Flash Player 8. A string that specifies how to scale a stroke. Valid values are as follows:
|
| strokeCapsStyle | String | Added in Flash Player 8. A string that specifies the type of caps at the end of lines. Valid values are: "round", "square", and "none". If a value is not indicated, Flash uses round caps. |
| strokeJointStyle | String | Added in Flash Player 8. A string that specifies the type of joint appearance used at angles. Valid values are: "round", "miter", and "bevel". If a value is not indicated, Flash uses round joints. |
| strokeMiterLimit | Number | Added in Flash Player 8. A number that indicates the limit at which a miter is cut off. Valid values range from 1 to 255 (and values outside of that range are rounded to 1 or 255). This value is only used if the jointStyle is set to "miter". If a value is not indicated, Flash uses 3. The miterLimit value represents the length that a miter can extend beyond the point at which the lines meet to form a joint. The value expresses a factor of the line thickness. For example, with a miterLimit factor of 2.5 and a thickness of 10 pixels, the miter is cut off at 25 pixels. |
| fill | Boolean | Property defines whether maker outline is filled. Default value is set to true. |
| fillRGB | Number | A hexadecimal color value; for example, red is 0xFF0000, blue is 0x0000FF. If this value is not provided or is undefined, a fill is not created. |
| fillGradient | Object | References object that defines gradient fill. Please see Flash 8 beginGradientFill(); |
| fillAlpha | Number | An integer from 0 to 100 that specifies the alpha value of the fill. If this value is not provided, 100 (solid) is used. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100. |
Event listeners can be added directly to the GPoint object. The example below adds GEOMETRY_ON_RELEASE event listener to the GPoint object.
var point = gMap.addPoint({lat:39.74002, lng:-104.992261, strokeRGB:0xFF0000,strokeThickness:2, fillRGB:0xFFFF00});
evntResponder = function (evnt:Object){
trace(evnt.type);
}
point.addEventListener("GEOMETRY_ON_RELEASE", this.evntResponder);
evntResponder = function (evnt:Object){
trace(evnt.type);
}
point.addEventListener("GEOMETRY_ON_RELEASE", this.evntResponder);
| Event | Return value | Description |
| GEOMETRY_READY | type target |
Triggered after Geometry Object has been initiated. Example vntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_READY", this.evntResponder); |
| GEOMETRY_ERROR | type target message |
Triggered whenever error occurs. If there is a problem loading custom point icon this event will be triggered. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ERROR", this.evntResponder); |
| GEOMETRY_CHANGED | type target |
Triggered whenever any of the GPoint properties has changed or its position got updated. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_CHANGED", this.evntResponder); |
| GEOMETRY_ON_ROLL_OVER | type target |
Triggered whenever the mouse enters the area of the GPoint. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_ROLL_OVER", this.evntResponder); |
| GEOMETRY_ON_ROLL_OUT | type target |
Triggered whenever the mouse leaves the area of the GPoint. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_ROLL_OUT", this.evntResponder); |
| GEOMETRY_ON_RELEASE | type target |
Triggered whenever the GPoint is clicked (onRelease). Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_RELEASE", this.evntResponder); |
| GEOMETRY_ON_RELEASE_OUTSIDE | type target |
Triggered whenever mouse is released outside the area of the GPoint (onReleaseOutside). Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_RELEASE_OUTSIDE", this.evntResponder); |
| GEOMETRY_ON_DRAG_START | type target |
Triggered whenever the GPoint dragging starts. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_DRAG_START", this.evntResponder); |
| GEOMETRY_ON_DRAG_STOP | type target |
Triggered whenever the GPoint dragging stops. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_DRAG_STOP", this.evntResponder); |
| GEOMETRY_ON_DRAG | type target |
Triggered whenever the GPoint is dragged. Example evntResponder = function (evnt:Object){ trace(evnt.type); } GPoint.addEventListener("GEOMETRY_ON_DRAG", this.evntResponder); |
Other Tutorials

