
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
lit-google-map
Advanced tools
This project is port of google-map webcomponent based on Lit v2 library.
UPDATE v1.0.0 (23/02/2022)
Circle shape element attributes
Polygon shape element attributes
Include lit-google-map bundle in HTML file:
<script src="lit-google-map.bundle.js"></script>
or its minified version:
<script src="lit-google-map.bundle.min.js"></script>
Use component in any place you want (remember to fill in Google Maps API key):
<lit-google-map api-key="YOUR_GOOGLE_MAPS_API_KEY">
</lit-google-map>
You can also include any number of map markers:
<lit-google-map api-key="YOUR_GOOGLE_MAPS_API_KEY">
<lit-google-map-marker slot="markers" latitude="49.4404582" longitude="20.2700361">
</lit-google-map-marker>
<lit-google-map-marker slot="markers" latitude="50.797444" longitude="20.4600623">
</lit-google-map-marker>
</lit-google-map>
or/and shapes:
<lit-google-map api-key="YOUR_GOOGLE_MAPS_API_KEY">
<lit-google-map-circle slot="shapes" center-latitude="49.4404582" center-longitude="20.2700361">
</lit-google-map-circle>
</lit-google-map>
Example:
<lit-google-map api-key="SOME_API_KEY" zoom="6" map-type="satellite" center-latitude="51.8436554" center-longitude="19.5070867">
</lit-google-map>
Example:
<lit-google-map-marker slot="markers" latitude="49.4404582" longitude="20.2700361">
</lit-google-map-marker>
Markers can also have associated InfoWindow with html content:
<lit-google-map-marker slot="markers" latitude="50.797444" longitude="20.4600623">
<p>Some description</p>
<img src="some_image.jpg" alt="some image">
</lit-google-map-marker>
Example:
<lit-google-map-circle slot="shapes" center-latitude="53.176389" center-longitude="22.073056" radius="50000" fill-color="#7FB3D5" fill-opacity="0.35" stroke-color="#2874A6" stroke-opacity="0.8" stroke-weight="5">
</lit-google-map-circle>
Example:
<lit-google-map-polygon slot="shapes" paths='[{"lat": 53.7332, "lng": 15.5180}, {"lat": 54.0444, "lng": 18.1379}, {"lat": 53.2028, "lng": 16.9292}, {"lat": 53.7332, "lng": 15.5180}]' fill-color="#7FB3D5" fill-opacity="0.35" stroke-color="#2874A6" stroke-opacity="0.8" stroke-weight="5">
</lit-google-map-polygon>
Before build install all required packages:
npm install
Bare build:
npm run build
Build with bundle step:
npm run bundle
MIT
FAQs
Google Maps web components based on Lit v2
The npm package lit-google-map receives a total of 149 weekly downloads. As such, lit-google-map popularity was classified as not popular.
We found that lit-google-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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.