diff --git a/classes/MarkerManager.html b/classes/MarkerManager.html index 7f87e44a..555d8b04 100644 --- a/classes/MarkerManager.html +++ b/classes/MarkerManager.html @@ -10,10 +10,10 @@ 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.

-

Hierarchy

Index

Constructors

constructor

Hierarchy

Index

Constructors

constructor

Properties

shown

shown: boolean

shownMarkers

shownMarkers: number

Methods

addMarker

  • addMarker(marker: Marker, minZoom: number, maxZoom: number): void

Returns MarkerManager

Properties

shown

shown: boolean

shownMarkers

shownMarkers: number

Methods

addMarker

  • addMarker(marker: Marker, minZoom: number, maxZoom: number): void
  • Add a single marker to the map.

    Parameters

    • marker: Marker

      The marker to add.

      @@ -21,7 +21,7 @@

      The minimum zoom level to display the marker.

    • maxZoom: number

      The maximum zoom level to display the marker.

      -

    Returns void

addMarkers

  • addMarkers(markers: Marker[], minZoom: number, maxZoom: number): void

Returns void

addMarkers

  • addMarkers(markers: Marker[], minZoom: number, maxZoom: number): void
  • Add many markers at once. Does not actually update the map, just the internal grid.

    Parameters

    • markers: Marker[]
      @@ -30,10 +30,10 @@

      The minimum zoom level to display the markers.

    • maxZoom: number

      The maximum zoom level to display the markers.

      -

    Returns void

clearMarkers

  • clearMarkers(): void

Returns void

clearMarkers

  • clearMarkers(): void
  • Removes all markers in the manager, and removes any visible markers from the map.

    -

    Returns void

getMarker

  • getMarker(lat: number, lng: number, zoom: number): Marker

getMarker

  • getMarker(lat: number, lng: number, zoom: number): Marker
  • Returns a marker given latitude, longitude and zoom. If the marker does not exist, the method will return a new marker. If a new marker is created, it will NOT be added to the manager.

    @@ -44,35 +44,35 @@
  • zoom: number

    the zoom level

Returns Marker

marker - the marker found at lat and lng

-

getMarkerCount

  • getMarkerCount(zoom: number): number

getMarkerCount

  • getMarkerCount(zoom: number): number
  • Calculates the total number of markers potentially visible at a given zoom level.

    Parameters

    • zoom: number

      The zoom level to check.

      -

    Returns number

hide

  • hide(): void

Returns number

hide

  • hide(): void

isHidden

  • isHidden(): boolean

isHidden

  • isHidden(): boolean
  • Returns true if the manager is hidden. Otherwise returns false.

    Returns boolean

    Hidden

    -

refresh

  • refresh(): void

refresh

  • refresh(): void
  • Refresh forces the marker-manager into a good state.

    1. If never before initialized, shows all the markers.
    2. If previously initialized, removes and re-adds all markers.
    3. -

    Returns void

removeMarker

  • removeMarker(marker: Marker): void

removeMarker

  • removeMarker(marker: Marker): void
  • Removes marker from the manager and from the map (if it's currently visible).

    Parameters

    • marker: Marker

      The marker to delete.

      -

    Returns void

resetManager

  • resetManager(): void

Returns void

resetManager

  • resetManager(): void
  • Initializes MarkerManager arrays for all zoom levels Called by constructor and by clearAllMarkers

    -

    Returns void

show

  • show(): void

show

  • show(): void

toggle

  • toggle(): void

toggle

  • toggle(): void

visible

  • visible(): boolean

visible

  • visible(): boolean
  • Is this layer visible?

    Returns visibility setting

    Returns boolean

    Visible