
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
google-maps-for-react
Advanced tools
The simplest customizable google maps component for react.
Try out a live demo of the component here
The NPM page can be found here
The GitHub page can be found here
run npm install google-maps-for-react --save
in console while in root directory to add the component to your project.
This component makes use of multiple google APIs. In order to use this component you will need a google API key. If you are unfamilar with how to do this, follow this guide to create one Creating a Google API Console project and client ID.
Once you have a key, you will need to enable the following APIs:
This can be done in the "Library" tab.
Load this script into your index.html (Don't forget to replace YOU_API_KEY):
<script
src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"
></script>
Import the component using import GoogleMap from 'google-maps-for-react;'
.
The <GoogleMap />
component can be customized by passing in a variety of properties. However, only one is required: apiKey
. References to this and all other properties follow.
Example:
<GoogleMap
apiKey={'abcd12345...'}
center={ lat: -25.363, lng: 131.044 }
zoom={null}
markers={exampleMarkers}
dimensions={null}
containerStyle={exampleContainerStyle}
containerClassName={null}
mapStyle={exampleMapStyle}
mapClassName={null}
onIdle={null}
/>
apiKey:
center:
{ lat: -25.363, lng: 131.044 }
{ lat: Number, lng: Number }
zoom:
3
markers:
[]
dimensions:
[ '500px', '500px' ]
mapStyle:
{ String (style name): String (style value), .... }
mapClassName:
containerStyle:
{ String (style name): String (style value), .... }
containerClassName:
onIdle:
Marker Objects:
{
position: 'Australia',
// Cord Obj; or Address String
label: '',
// String
title: '',
// String
animation: 'drop',
// String = 'drop', 'bounce'; or null
onClick: () => {},
// Function
}
{ lat: Number, lng: Number }
'drop'
OR 'bounce'
FAQs
Highly customizable google maps component for React
The npm package google-maps-for-react receives a total of 2 weekly downloads. As such, google-maps-for-react popularity was classified as not popular.
We found that google-maps-for-react 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.