Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
google-react-maps
Advanced tools
A more powerfully custom version of the Google Maps Javascript API built for React. Multiple Datalayer support. GEOJSON Enabled.
version 1.1.31
A new approach to the google maps api using react.
To install npm install google-react-maps
Things you can import:
import {
Map,
KmlLayer,
DataLayer,
Feature,
InfoWindow,
CustomOverlay,
Marker,
MapControl,
SearchBox
} from 'google-react-maps';
Using the map is fairly simple. Most commonly you would set it up like this:
import React from 'react';
import PropTypes from 'prop-types';
class App extends React.Component {
render() {
return (
<Map
api-key='your api url'
onMount={(map, maps) => {
this.map = map; //Store the google map instance for custom actions. (Outside the react components.)
this.maps = maps; //Store a reference to the google maps javascript api in case we need some of it's helper methods.
}}
optionsConstructor={function(maps) {
//Options Constructor always has a this context of the options object. To override the default options do the following:
Object.assign(this, {
zoom : 4,
mapTypeId : maps.MapTypeId.ROADMAP,
disableDefaultUI: true,
zoomControl : true,
zoomControlOptions : {
position: maps.ControlPosition.LEFT_CENTER
},
keyboardShortcuts : true,
panControl: true,
panControlOptions : {
position : maps.ControlPosition.BOTTOM_RIGHT
},
mapTypeId : maps.MapTypeId.HYBRID,
mapTypeControl : true,
mapTypeControlOptions : {
position: maps.ControlPosition.LEFT_BOTTOM
},
fullscreenControlOptions : {
position: maps.ControlPosition.RIGHT_BOTTOM
},
fullscreenControl: true
});
}}
>
//Any components passed as children get the maps and map props passed to them.
</Map>
)
}
}
See main.js inside the git project to understand how to implement everything. (Uncomment some components to see everything)
To run the dev mode... webpack-dev-server
after doing a npm install
##General Goals
So, the general goals for this project would be to see:
Below are the list of things we need to get done. They don't necessarily need to happen in order.
For v2.0.0:
FAQs
A more powerfully custom version of the Google Maps Javascript API built for React. Multiple Datalayer support. GEOJSON Enabled.
The npm package google-react-maps receives a total of 76 weekly downloads. As such, google-react-maps popularity was classified as not popular.
We found that google-react-maps demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.