
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
azure-maps-control
Advanced tools
The Azure Maps Web Control lets you customize interactive maps with your own content and imagery for display in your web or mobile applications. This control makes use of WebGL, allowing you to render large data sets with high performance. Develop with the control using JavaScript or TypeScript.
You can embed the Azure Maps V3 Web Control source code into your app by installing the NPM package:
npm install azure-maps-control
This package includes a minified version of the source code, CSS stylesheet, as well as the TypeScript definitions for the Azure Maps Web Control.
You would also need to embed the CSS stylesheet for various controls and popups to show correctly. You may find it under /node_modules/azure-maps-control/dist/atlas.min.css
. If you are using a javascript bundler to bundle the dependencies and package your code, refer to your bundler's documentation on how this is done.
For webpack, it is commonly done via a combination of style-loader
and css-loader
with documentation available at style-loader.
To begin, install style-loader
and css-loader
:
npm install --save-dev style-loader css-loader
Inside your source file, import atlas.min.css
:
src/index.ts:
require('../node_modules/azure-maps-control/dist/atlas.min.css');
then add loaders to the module rules portion of the webpack config:
module.exports = {
module: {
rules: [
{
test: /\.css$/i,
use: ["style-loader", "css-loader"],
},
],
},
};
If you are using MapControl
inside create-react-app based project, make sure your browserlist settings do not include IE11, since it is no longer supported (not ie 11
).
Alternatively, you can also reference the hosted version of the Azure Maps V3 Web Control by adding the following script tags directly to your application.
<link rel="stylesheet" href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" type="text/css" />
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>
Please refer to release note for more information.
FAQs
Map SDK for Azure Maps
The npm package azure-maps-control receives a total of 22,435 weekly downloads. As such, azure-maps-control popularity was classified as popular.
We found that azure-maps-control 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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.