/src/com/google/maps/extras/markerclusterer/MarkerStyleOptions.as

http://gmaps-utility-library-flash.googlecode.com/ · ActionScript · 66 lines · 15 code · 6 blank · 45 comment · 0 complexity · 06b34abc616c5ab8326cb625f9377eb7 MD5 · raw file

  1. /**
  2. * @name MarkerClusterer for Flash
  3. * @version 1.0
  4. * @author Xiaoxi Wu
  5. * @copyright (c) 2009 Xiaoxi Wu
  6. * @fileoverview
  7. * Ported from Javascript to Actionscript 3 by Sean Toru
  8. * Ported for use in Flex (removal of fl. libraries) by Ian Watkins
  9. * Reflectored for both Flash and Flex,
  10. * and maintained by Juguang XIAO (juguang@gmail.com)
  11. *
  12. * This actionscript library creates and manages per-zoom-level
  13. * clusters for large amounts of markers (hundreds or thousands).
  14. * This library was inspired by the <a href="http://www.maptimize.com">
  15. * Maptimize</a> hosted clustering solution.
  16. * <br /><br/>
  17. * <b>How it works</b>:<br/>
  18. * The <code>MarkerClusterer</code> will group markers into clusters according to
  19. * their distance from a cluster's center. When a marker is added,
  20. * the marker cluster will find a position in all the clusters, and
  21. * if it fails to find one, it will create a new cluster with the marker.
  22. * The number of markers in a cluster will be displayed
  23. * on the cluster marker. When the map viewport changes,
  24. * <code>MarkerClusterer</code> will destroy the clusters in the viewport
  25. * and regroup them into new clusters.
  26. *
  27. */
  28. /*
  29. * Licensed under the Apache License, Version 2.0 (the "License");
  30. * you may not use this file except in compliance with the License.
  31. * You may obtain a copy of the License at
  32. *
  33. * http://www.apache.org/licenses/LICENSE-2.0
  34. *
  35. * Unless required by applicable law or agreed to in writing, software
  36. * distributed under the License is distributed on an "AS IS" BASIS,
  37. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  38. * See the License for the specific language governing permissions and
  39. * limitations under the License.
  40. */
  41. package com.google.maps.extras.markerclusterer
  42. {
  43. public class MarkerStyleOptions extends Object
  44. {
  45. public function MarkerStyleOptions(params:Object = null)
  46. {
  47. super();
  48. }
  49. public var url:String;
  50. public var width:Number;
  51. public var height:Number;
  52. /**
  53. * array of Number.
  54. * Anchor for label text, like [24, 12]
  55. * If not et, the text will align center and middle.
  56. */
  57. public var anchor:Array;
  58. public var color:uint;
  59. }
  60. }