Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Build static image maps using Google's Static Map API
gem 'static_map'
And then execute:
$ bundle
Or install it yourself as:
$ gem install static_map
image = StaticMap::Image.new({
size: '500x500',
sensor: false,
markers: [],
maptype: 'road',
zoom: 8,
title: 'A map',
alt: 'Alt text for img html',
path: './my-map.png'
})
image.url
# => http://maps.google.com/maps/api/staticmap?size=500x500&zoom=1&sensor=true
image.to_html
# => <img src='http://maps.google.com/maps/api/staticmap?size=500x500&zoom=1&sensor=true' title='' alt=''/>
img.save # save map to disk with path option
The options are
<%=raw StaticMap::Image.new %>
The markers option accepts either a location (E.g., "Burlington, Vermont") or latitude and longitude coordinates.
<%=raw StaticMap::Image.new({
zoom: 13,
markers: [
{ location: "Winooski,Vermont", color: "green", label: "A" },
{ latitude: 44.477171, longitude: -73.222032, color: "blue", label: "B" }
]
}) %>
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)The following links are great resources for working with Google Maps API
FAQs
Unknown package
We found that static_map 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.