@google/markerwithlabel

Extends the Google Maps JavaScript API to provide markers with associated labels.

Stats

StarsIssuesVersionUpdatedCreatedSize
@google/markerwithlabel
1,073191.2.122 years ago3 years agoMinified + gzip package size for @google/markerwithlabel in KB

Readme

MarkerWithLabel for V3

Description

MarkerWithLabel extends the Google Maps JavaScript API V3 google.maps.Marker class. MarkerWithLabel allows you to define markers with associated labels. As you would expect, if the marker is draggable, so too will be the label. In addition, a marker with a label responds to all mouse events in the same manner as a regular marker. It also fires mouse events and "property changed" events just as a regular marker would. Version 1.1 adds support for the raiseOnDrag feature introduced in API V3.3.

If you drag a marker by its label, you can cancel the drag and return the marker to its original position by pressing the Esc key. This doesn't work if you drag the marker itself because this feature is not (yet) supported in the google.maps.Marker class.

NPM

Available via NPM as the package @google/markerwithlabel

Examples

Support

This library is community supported. We're comfortable enough with the stability and features of the library that we want you to build real production applications on it.

If you find a bug, or have a feature suggestion, please log an issue. If you'd like to contribute, please read How to Contribute.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.