/src/com/google/maps/extras/xmlparsers/kml/LatLonBox.as
http://gmaps-utility-library-flash.googlecode.com/ · ActionScript · 47 lines · 22 code · 6 blank · 19 comment · 0 complexity · eff8f162bf8a53ee2282b49a5789cb53 MD5 · raw file
- /*
- * Copyright 2008 Google Inc.
- * Licensed under the Apache License, Version 2.0:
- * http://www.apache.org/licenses/LICENSE-2.0
- */
- package com.google.maps.extras.xmlparsers.kml
- {
- import com.google.maps.extras.xmlparsers.Namespaces;
- import com.google.maps.extras.xmlparsers.ParsingTools;
- import com.google.maps.extras.xmlparsers.XmlElement;
-
- /**
- * Class that represents a <LatLonBox> element.
- *
- * @see http://code.google.com/apis/kml/documentation/kmlreference.html#latlonbox
- */
- public class LatLonBox extends AbstractLatLonBox
- {
- //todo: add constants for the enum values?
-
- private var _rotation:Number;
-
- /**
- * Constructor for class.
- *
- * @param x
- */
- public function LatLonBox(x:XMLList)
- {
- super(x);
- this._rotation = ParsingTools.nanCheck(this.x.kml::rotation);
- }
-
-
- /**
- * Represents the <rotation> child element.
- */
- public function get rotation():Number
- {
- return this._rotation;
- }
-
- public override function toString():String {
- return "LatLonBox: " + super.toString() + " rotation: " + this._rotation;
- }
- }
- }