Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
@ubc-farm/map-utils
Advanced tools
Functions for working with the Google Maps JavaScript API
createMap(style?: MapOptions) => Map
Creates a Google Map map in the 'googleMap' div. Default styles are applied unless they are overriden.
observeDatabase(db: PouchDB, mapDataLayer: Data, options?: Object) => Promise<EventEmitter>
Observes a PouchDB database and adds documents from it to the data layer provided. Live changes are listened to, and the map is updated to reflect it automatically.
interface Options {
toFeature?: (Object, id) => GeoJSON.Feature;
allDocsOptions?: Object;
changeOptions?: Object;
}
toFeature
transforms a document to a GeoJSON Feature that is added to the map.
By default, it looks for a geometry
and _id
property and uses them for the
feature's geometry and id fields. Additonal fields are placed inside properties.
This behaviour is also exported as defaultToFeature
.
If null is returned instead of a feature, then the object will be ignored.
The EventEmitter returned listens for changes in the database. Call .cancel()
to turn it off.
FAQs
Functions for working with the Google Maps JavaScript API
We found that @ubc-farm/map-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.