npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

google-maps-wrapper

v2.6.11

Published

## Changelog 2.6.8

Downloads

4

Readme

Google Maps Wrapper

Changelog 2.6.8

Fixed issue where drawing cancellation flag was not reset when starting a new drawing.

Changelog 2.6.6

Fixed react peer dependency version.

Changelog 2.6.5

Fixed invalid cutting mode return type.

Changelog 2.6.3

Fixed bugs which prevented entering cutting mode.
Fixed applying styles when starting drawing mode.

Changelog 2.6.2

Fixed cancelCuttingMode so it cancels the drawing and also removes the drawn shape.

Changelog 2.6.0

completeCuttingMode function now returns the cut shapes.

Changelog 2.5.3

Exporting simplify functionality.

Changelog 2.5.2

Exporting GMW_AllMapObjEvents type.

Changelog 2.5.1

Exporting GMW_GeoJSONFeature and GMW_GeoJSONFeatureCollection types.

Changelog 2.5.0

Exporting interfaces.

Changelog 2.4.0

Added places to services.

Changelog 2.3.0

Added verbose property to WrappedMapBase, defaults to false. It silences some non-critical errors such as deleting non-existing map objects.

Changelog 2.2.0

Added getBounds() to exported funcs, returns google latlng bounds.
Added setBounds() to exported funcs, takes latlng bounds or latlng bounds literal.
Fixed types for getServices().

Changelog 2.1.0

Added getServices() to exported funcs.

Changelog 2.0.0

Added getClusterers(), setClasturer(), unsetClusterer() and CreateClustererStyle() functions. These functions are the basis for clustering. Use setClusterer to create and register a clusterer with the map, unsetClusterer to remove it. These funcs are primarily a way to interact with the gmaps clusterer.

Also removed all class components. This required breaking api changes. See TypeScript definitions for updated api.

Changelog 1.3.0

Added map.fitToBoundsLiteral() function which will move and zoom the map to contain the bounds.

Changelog 1.2.0

Added map.getBoundsLiteral() function which returns the current map bounds in LatLngBoundsLiteral format.

Changelog 1.1.3

Fixed bug where options were not correctly saved on initial creation of Markers, Polylines and Polygons.

Changelog 1.1.2

Fixed bug in detection if invalid options_id is supplied to Feature.applyOptions(options_id) function.

Changelog 1.1.1

Added detection if invalid options_id is supplied to Feature.applyOptions(options_id) function.

Changelog 1.1.0

Added Feature.zoomTo() and Feature.panTo() functionality.
Also extended panToObject(item) and zoomToObject(item) functions to also accept Features.

Changelog 1.0.1

Fixed error in Feature.applyOptions().

Changelog 1.0.0

Updated API for managing options:

  • Polygons, Markers and Polylines now takes a set of options objects, one of which must be keyed default. EX: setPolyline("my_id", my_options_set). Example options_set:
{
    default: {
        path: ...,
        strokeWeight: 4,
        fillOpacity: 0.3
        strokeOpacity: 0.5
    },
    hover: {
        strokeOpacity: 1
    },
    highlight: {
        fillOpacity: 0.8
        strokeOpacity: 1
    }
}
  • Each WrappedMapObject has a new function applyOptions(options_id). This function takes the default options and extends with whatever other options are specified. EX: polyline.applyOptions('hover') would apply default with strokeOpacity of 1.

Added support for adding GeoJson features and GeoJson feature collections:

  • setGeoJSONFeature(feature, feature_options_set)
  • setGeoJSONFeatureCollection(feature_collection, feature_options_set)

Changelog 0.3.1

Fixed error in helper function convertFromArrayOfCoords and other functions dependant on it.

Changelog 0.3.0

Exporting helper functions from root. No need to initialize a map instance to access them.

Changelog 0.2.1

Fixed invalid check for cutting mode when removing objects.

Changelog 0.2.0

Added panTo and zoomTo functionality for map objects. Added panToObject(object) and zoomToObject(object) functionality to map.

Changelog 0.1.0

Added support for numeric ids.