PageRenderTime 82ms CodeModel.GetById 79ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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/*
30 * Licensed under the Apache License, Version 2.0 (the "License");
31 * you may not use this file except in compliance with the License.
32 * You may obtain a copy of the License at
33 *
34 *     http://www.apache.org/licenses/LICENSE-2.0
35 *
36 * Unless required by applicable law or agreed to in writing, software
37 * distributed under the License is distributed on an "AS IS" BASIS,
38 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
39 * See the License for the specific language governing permissions and
40 * limitations under the License.
41 */
42
43
44
45package com.google.maps.extras.markerclusterer
46{
47public class MarkerStyleOptions extends Object
48{
49	public function MarkerStyleOptions(params:Object = null)
50	{
51		super();
52	}
53	
54	
55	public var url:String;
56	public var width:Number;
57	public var height:Number;
58	/**
59	 * array of Number. 
60	 * Anchor for label text, like [24, 12]
61	 * If not et, the text will align center and middle.
62	 */
63	public var anchor:Array;
64	public var color:uint;
65}
66}