Map class for displaying geographic maps of the world and its different parts.
Class attribute for the root element.
The options used when constructing the map. Consists of: fill,stroke,strokeWidth,nonScalingStroke
Style for the root element.
The update function describes how this element should update itself
The controller manages the dependencies between elements. Every element is added to this controller upon creation.
This number uniquely identifes elements
Allows for the events attatched to elements to be disabled.
Returns the height of this svg element. Sets the height of this svg element to the provided value.
Returns the unique generated identifier associated with this element.
Return the width of this svg element. Set the width of this svg element.
Constructs and appends an 'a' (link) element within this element.
Declares this element dependent on the provided element(s).
Appends the element as a child within this element.
Removes all child elements from this element.
Clears the interactive of all Map paths.
Constructs and appends a 'clipPath' element within this element.
Returns true if this element contains the argument element.
Renders the geo json onto the webpage.
name of the feature you want to draw. If left blank will draw all features
Returns all of the paths for the current map.
Returns the bounding box of this element. Note, this is different from the getBoundingClientRect method since the bounding box is affected by the current viewPort.
If this element's root is not a SVGGraphics element as is the case for the marker, title, and more element, then null is returned instead of a DOMRect.
Returns an Array HTML Elements that are all of the plotted features.
Returns the path for the given feature name
name of the feature you want the path for
Constructs and appends a 'marker' element within this element.
The default behavior is to update its dependents on change.
Inserts the element before the first child within this element.
Removes this element from the DOM and from the Element controller.
remove the feature with the passed in name from the geo map
the name of the feature you want to remove
Resets the viewbox to the entire map
Constructs and appends a 'script' element within this element.
sets the viewbox of the interactive to the specified feature
Updates all of the elements that depend on this element.
Constructs and returns a SVG object within the DOM. If the provided argument is an HTMLElement appends the interactive within that element. If the provided a value is a string, appends the interactive within the HTML element with the corresponding ID. If no element is found throws an error.
Clears the static data structures holding elements and resets the count.
Generated using TypeDoc