![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
ember-cli-bing-map
Advanced tools
Simple bing map component for ember-cli
Demo (Markers, PolygonLocation, and Polygon colors are random in this demo)
ember install ember-cli-bing-map
The component should take the style properties from its parent.
<div style="position: relative; width: 700px; height: 700px">
{{bing-map lat=lat lng=lng zoom=zoom mapTypeId=mapTypeId markers=markers polygonLocation=polygonObject}}
</div>
Add reference to the map control in the index.html.
<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=7.0"></script>
Add Bing API to environment.js.
bingAPI: 'API-KEY',
Current available entities:
lat
= number value
lng
= number value
zoom
= integer up to 20
mapTypeId
= string value: 'a' for aerial view, 'r' for road view
markers
= array of objects with lat and lng values
example:
markers: [
{
lat: 18.35570,
lng: -66.004951
}
]
polygonLocation
= object with location objects containing lat and lng values
example:
polygonLocation: {
location1:{
lat: 18.5,
lng: -66.3
},
location2:{
lat:18.5,
lng:-65.9
},
location3:{
lat: 18.15,
lng: -65.9
},
location4:{
lat: 18.15,
lng: -66.3
},
}
polygonLocation Color properties:
fillColor
= array with a,r,b,g colors
strokeColor
= array with a,r,b,g colors
To use, both properties must have values assigned
Default value is [100, 100, 0, 100]
example:
fillColor: [100, 100, 0, 100];
strokeColor: [200, 34, 80, 37];
FAQs
A bing map component for ember-cli
The npm package ember-cli-bing-map receives a total of 2 weekly downloads. As such, ember-cli-bing-map popularity was classified as not popular.
We found that ember-cli-bing-map 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.