
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.
svelte-google-maps-api-monorepo
Advanced tools
[](https://badge.fury.io/js/svelte-google-maps-api) [](https://opensource.org/licenses/MIT)
A declarative Svelte component library for the Google Maps JavaScript API.
Note: This library is under active development. APIs might change.
AdvancedMarkerElement
, MapControl
, Autocomplete
, OverlayView
, StreetViewPanorama
, and more.pnpm install svelte-google-maps-api
# or
npm install svelte-google-maps-api
# or
yarn add svelte-google-maps-api
Get your Google Maps API Key. Make sure the "Maps JavaScript API" is enabled for your key in the Google Cloud Console. You might also need to enable specific libraries (like "marker", "places", "visualization") depending on the components you use.
{% raw %}
<script lang="ts">
import { GoogleMap } from 'svelte-google-maps-api';
import { APIProvider } from 'svelte-google-maps-api';
import { Marker } from 'svelte-google-maps-api';
let apiKey = 'YOUR_MAP_KEY';
</script>
<div style="width: 100%; height: 100vh;">
<APIProvider {apiKey} libraries={['marker']}>
<GoogleMap
options={{
center: { lat: 35.681, lng: 139.767 },
zoom: 14,
mapId: 'YOUR_MAP_ID'
}}
mapContainerStyle="width:100%;height:100%;"
>
<Marker position={{ lat: 35.681, lng: 139.767 }} />
</GoogleMap>
</APIProvider>
</div>
{% endraw %}
For detailed documentation, component references, and examples, please visit the Documentation Website
This library provides the following components (and more):
APIProvider
: Loads the Google Maps API and provides context.GoogleMap
: Renders the map container.Marker
: The standard Google Maps marker.AdvancedMarker
: The newer, customizable marker element.InfoWindow
: Displays info windows, often anchored to markers.Polyline
, Polygon
, Rectangle
, Circle
.HeatmapLayer
, KmlLayer
, TrafficLayer
, TransitLayer
, BicyclingLayer
, GroundOverlay
.MapControl
(for custom controls). Standard controls are configured via GoogleMap
options.Autocomplete
.OverlayView
.StreetViewPanorama
.Contributions are welcome! Please feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
[](https://badge.fury.io/js/svelte-google-maps-api) [](https://opensource.org/licenses/MIT)
The npm package svelte-google-maps-api-monorepo receives a total of 0 weekly downloads. As such, svelte-google-maps-api-monorepo popularity was classified as not popular.
We found that svelte-google-maps-api-monorepo demonstrated a healthy version release cadence and project activity because the last version was released less than 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.