Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
private container: HTMLElement;
private map: atlas.Map;
constructor(options: VisualConstructorOptions) {
this.container = options.element;
// Create a map div
const mapDiv = document.createElement("div");
mapDiv.style.width = "100%";
mapDiv.style.height = "100%";
mapDiv.id = "azureMap";
this.container.appendChild(mapDiv);
// Initialize Azure Maps with US regional endpoint
this.map = new atlas.Map("azureMap", {
center: [39.7392, -104.9903],
zoom: 10,
view: "Auto",
domain: "us.atlas.microsoft.com",
authOptions: {
authType: atlas.AuthenticationType.subscriptionKey,
subscriptionKey: "<my-azure-maps-key>"
}
});
this.map.events.add("ready", () => {
this.map.layers.add(new atlas.layer.TileLayer({
tileUrl: "https://us.atlas.microsoft.com/map/tile?api-version=2.1&tilesetId=microsoft.core.vector&x={x}&y={y}&z={z}",
opacity: 1,
tileSize: 256,
minSourceZoom: 1,
maxSourceZoom: 22
}), 'labels');
});
this.map.controls.add(new atlas.control.ZoomControl(), {
position: atlas.ControlPosition.TopRight
});
Hi @PriyankaK,
Just checking, have you had a chance to open a support ticket, as suggested. If so, we'd love to hear the current status or any updates from that.
Regards,
Prasanna Kumar
Hi @PriyankaK,
If the issue still persists, I’d recommend raising a support ticket with Microsoft. The support team can look into the backend and provide more in-depth assistance tailored to your environment.
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
Thanks & Regards,
Prasanna Kumar
Hi @PriyankaK,
Just following up to see if the response provided by community member were helpful in addressing the issue.
If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar
@rajendraongole1 , Thanks for the references!
@v-pgoloju - I have made some modifications to the code and verified that the visual functions correctly in Power BI Desktop. However, it does not appear to be working as expected in the Power BI service, which may be due to certain limitations or restrictions associated with custom visuals in the online environment.
Hi @PriyankaK,
Just following up to see if the solution provided was helpful in resolving your issue. Please feel free to let us know if you need any further assistance.
Best regards,
Prasanna Kumar
Hi @PriyankaK,
Thank you for reaching out to the Microsoft Fabric Forum Community, and special thanks to @rajendraongole1 for prompt and helpful response.
Just following up to see if the response provided by community member were helpful in addressing the issue.
If one of the responses helped resolve your query, please consider marking it as the Accepted Solution. Feel free to reach out if you need any further clarification or assistance.
Best regards,
Prasanna Kumar
Hi @PriyankaK - Power BI does not currently support full Azure Maps SDK interactivity inside custom visuals due to CORS restrictions.
few reference links:
How to use the Azure Maps web map control - Microsoft Azure Maps | Microsoft Learn
Power BI visuals documentation - Power BI | Microsoft Learn
suggest: can you try Azure Maps Static API?
hope this helps. please check.
Proud to be a Super User! | |