/src/com/google/maps/extras/markerclusterer/UnitMarker.as
ActionScript | 63 lines | 14 code | 4 blank | 45 comment | 0 complexity | bbfd124294a6e67d3f388d1b3da7a1d0 MD5 | raw file
- /**
- * @name MarkerClusterer for Flash
- * @version 1.0
- * @author Xiaoxi Wu
- * @copyright (c) 2009 Xiaoxi Wu
- * @fileoverview
- * Ported from Javascript to Actionscript 3 by Sean Toru
- * Ported for use in Flex (removal of fl. libraries) by Ian Watkins
- * Reflectored for both Flash and Flex,
- * and maintained by Juguang XIAO (juguang@gmail.com)
- *
- * This actionscript library creates and manages per-zoom-level
- * clusters for large amounts of markers (hundreds or thousands).
- * This library was inspired by the <a href="http://www.maptimize.com">
- * Maptimize</a> hosted clustering solution.
- * <br /><br/>
- * <b>How it works</b>:<br/>
- * The <code>MarkerClusterer</code> will group markers into clusters according to
- * their distance from a cluster's center. When a marker is added,
- * the marker cluster will find a position in all the clusters, and
- * if it fails to find one, it will create a new cluster with the marker.
- * The number of markers in a cluster will be displayed
- * on the cluster marker. When the map viewport changes,
- * <code>MarkerClusterer</code> will destroy the clusters in the viewport
- * and regroup them into new clusters.
- *
- */
-
- /*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
- package com.google.maps.extras.markerclusterer
- {
- import com.google.maps.overlays.Marker;
- import com.google.maps.LatLng;
- import com.google.maps.overlays.MarkerOptions;
- /**
- * This class extends Marker, with only one additional property added that is Boolean type <code>isAdded</code>,
- * indicating whethe the unit/individual marker has been added into Cluster.
- * Normally, you as a developer should not concern or use this property.
- */
- public class UnitMarker extends Marker
- {
- internal var isAdded : Boolean;
-
- public function UnitMarker(latLng : LatLng, options : MarkerOptions = undefined)
- {
- super(latLng, options);
- }
- }
- }