Questions tagged [azure-maps]
Azure Maps is a collection of geospatial services, fresh mapping data and developer tools natively available in Microsoft Azure.
320
questions
13
votes
4
answers
50k
views
supporting TLS 1.2 in HttpClient C#
Good afternoon!
I use Azure Maps API using HttpClient.
How can I enable support of TLS 1.2?
As I know in Framework 4.6+ it is supported. And I should not do anything for this to work?
6
votes
6
answers
7k
views
How to use Azure Maps in Angular
I cannot find any support, module or documentation for using Azure Maps in Angular.
Is Azure Maps still too new and have no support for Angular yet?
I have tried the following module without success: ...
4
votes
1
answer
227
views
Azure Maps Control causes Angular Universal SSR error
I am using the Azure Maps Web Control with Angular 11+. I can create an instance of the map without any problems on the browser side:
html
<div class="map-target" #mapTarget></div&...
3
votes
1
answer
5k
views
Invalid latitude value: must be between -90 and 90
I'm trying to create a map by javascript Azure Map in my phonegap app, but it gives the following error:
atlas.min.js?api-version=1.0:362 Uncaught (in promise) Error: Invalid LngLat
latitude ...
3
votes
2
answers
3k
views
How could I call Azure Maps API in C# with authorisation and client id?
I am trying to use Azure Maps API to search POIs around a point using its coordinates, and I do not know how to call the API by adding the Authorization and client-id.
This is the request preview I ...
3
votes
1
answer
183
views
Changing style in Azure Maps slow
I got an Azure Map and I have implemented a custom "change style" button that when pressed calls map.setStyle(). When I call this function using 'satellite' the switch is very quick. Like this:
map....
2
votes
1
answer
1k
views
Zoom and center map to fit all features on (bubble) layer
I have a website that's getting a set of points from the server side, and then rendering a map using the azure-maps-control npm package.
I want the map to be centered and zoomed in such a way that ...
2
votes
1
answer
480
views
Azure Maps - pins disappear
I have an application that leverages Azure Maps to show pins of various locations on a map. All works great, but when I zoom out, some of the pins will disappear. When I zoom back in they reappear.
...
2
votes
2
answers
687
views
Azure maps - point vs feature vs shape
I am new to Azure maps and reading through the documentation.
This blurb describes Points, Features and Shapes.
But it doesn't really help me understand why I would use one over the other. Can ...
2
votes
2
answers
2k
views
Bing maps API: Is there a way to use truck routing for distance matrix?
I want to get a set of distances between truck and pickup points. I saw that there is REST API for truck routing and that there is also API for distance matrix. Url for requests to both APIs is ...
2
votes
3
answers
495
views
How can I deserialise a complex and nested JSON?
In my c# project, I would like to access specific information (POI name and distance) inside a complex and nested JSON.
This JSON is the result of an Azure Maps API call.
I have tried to deserialise ...
2
votes
2
answers
4k
views
Azure CLI authentication ERROR: AADSTS50173: The provided grant has expired due to it being revoked, a fresh auth token is needed
When trying to obtain a token from Azure Maps through a App Service, it return the following error.
"Azure CLI authentication failed due to an unknown error. See the troubleshooting guide for ...
2
votes
2
answers
797
views
Azure Maps 403 "Permission, capacity, or authentication issues."
I am trying to call Azure Maps with OAuth access tokens but it is throwing me 403 Forbidden with the message "Permission, capacity, or authentication issues.". I have followed procedure mentioned here:...
2
votes
1
answer
879
views
Azure Maps Route/Directions REST API Response
I am using a WebClient to access the Azure Direction/Route REST API. The request is completing but I do not know how to handle the response.The code:
string routeDetails = sb.ToString();
string url = ...
2
votes
1
answer
4k
views
How to get raw traffic flow data
Creating application to use car count data from traffic. How do I access the live google maps, waze or bing maps data?
2
votes
1
answer
847
views
Azure maps - change the color of a pin based on data driven styling
I am trying to create a data driven layer style that uses a boolean expression, but I am not sure how to make it work.
I have a Feature shape defined. Notice the property bag has an assigned ...
2
votes
1
answer
42
views
"Export not found" error message when trying to use the "azure-maps-animations" NPM package in a React app
We are trying to use the Azure Maps Animations NPM package in a React app but are unable to import it.
We tried the following code:
import {animations} from "azure-maps-animations";
// ...
2
votes
1
answer
207
views
Azure maps indoor module: How to access to Indoor Map GeoJSON from Azure Maps Web SDK
I have been working on a project using Azure Indoor Maps. I started to use the Azure Maps Web SDK. I have looked for a way to loop to all features that are loaded automatically by the SDK, without ...
2
votes
1
answer
477
views
Is there a typescript or javascript api for Geolocation - Get IP to Location Preview capability in the Azure Maps npm module azure-maps-rest
There are a lot of options to this api and I am not finding this capability in the module? If it is not in there can it be added in the future?
The preview is here
The typescript API is here
2
votes
1
answer
2k
views
is there a way to know how many lanes in a road?
Currently, I'm working on a Mapping Project , and I'd like to know if there's a way to know how many lanes in a single road (same direction), using one of Maps API, like google map. Because at the end ...
2
votes
1
answer
305
views
Does Azure Maps support Angular 2+?
We are doing a R&D to select the best possible maps framework which can be used with Angular 2+ (Currently we're using Angular 6). We mainly looked into 2 options which are,
Google Maps
Azure ...
2
votes
1
answer
9k
views
Get traffic data
Are there any public APIs or reference documentation which provide real-time traffic data (number of vehicles, road congestion's/blocks etc...) between 2 points? I have researched in Google Maps API ...
2
votes
0
answers
330
views
Jest not able to find module react-azure-maps in unit test cases
I am using azure map in my react application and found this library which is build on the top of azure maps but when I am writing the unit test cases for the component made using this library using ...
2
votes
1
answer
355
views
Azure Maps Libraries are not Importing (Services and Animation APIs)
I am trying to make an Angular app which will show the optimised route along with direction of a set of destinations. I installed Azure Maps SDK in my app and started using the APIs. All things are ...
2
votes
1
answer
609
views
How to invoke a javascript constructor in Blazor?
I would like to develop a Blazor component to wrap Azure Maps javascript.
The first step is to display the map on the page.
Usually, with javascript, it is done this way :
let map = new atlas.Map('...
2
votes
1
answer
845
views
Azure Maps - Map is not opening at the correct size
I have a page with azure maps, and most of the time it loads normally and the map covers the entire screen. But at some points when refreshing the page, the map is limited to a small size, and if I ...
2
votes
0
answers
234
views
Azure maps, show all search results as clusters
I noticed that when I show the results on the map, and if you have clustering enabled, you receive two types of shapes.
Clusters
Features ( On my case Persons )
I want to show all results as a list ...
1
vote
2
answers
809
views
Azure maps REST API link not working
https://atlas.microsoft.com/search/address/json?subscription-key=[subscription-key]&api-version=1.0&query=15127
NE 24th Street, Redmond, WA 98052
This link is not working. I added the ...
1
vote
1
answer
828
views
Azure Maps - Can I get the speed limit of the roads?
I'm trying to get the speed limit of a specific point on the map (lat, lng) using an API, but I can't find it in the Azure Maps documentation. I found it on Bing Maps, but I wanted to use Azure Maps ...
1
vote
2
answers
3k
views
How to display image from API response in Jupyter Notebook?
I have an Azure Maps API call in a Jupyter Notebook that returns a map tile in .png format. The call works great, but I can't figure out how to display it as an image rather than as binary text.
- ...
1
vote
1
answer
1k
views
html marker add additional properties in azure maps
I am loading all sites of companies as a html markers in azure maps and on click of it, launch a popup that displays site specific information.
The Html marker does not have any property bag, through ...
1
vote
1
answer
530
views
How to update Azure Maps layers dynamically on Android?
I am developing an Android application whereby a map is shown and the location of the device is tracked on a point on the map. I am using the Azure Maps SDK for the map itself and ...
1
vote
1
answer
197
views
What is the proper url format to bring in the new (preview) Weather tile layer in Azure Maps?
Microsoft recently announced the preview of Azure Maps Weather Service (https://azure.microsoft.com/en-ca/blog/rain-or-shine-azure-maps-weather-services-will-bring-insights-to-your-enterprise/).
I'm ...
1
vote
1
answer
344
views
How to get the Primary Key of Azure Maps Accounts with Azure Resource Manager Template
For my deployment I need to provide the primary key of the Azure Maps Account to my Frontend. The deployment is done with an azure resource manager template.
The key should be written in the output ...
1
vote
1
answer
682
views
Azure maps clustering
I noticed in a recent iteration of Azure maps, pins can be added to a datasource which can be applied to a map's source -
var dataSource = new atlas.source.DataSource();
map.sources.add(dataSource);
...
1
vote
1
answer
2k
views
How can I zoom the Azure Maps bounding box on cluster click event?
A data source in Azure Maps can cluster point features (pins) within a certain radius. When a click event on such a cluster occurs I would like to reset my bounding box to the area represented by the ...
1
vote
1
answer
47
views
Why doesn't my mouseover event on a react-azure-maps SymbolLayer ever get fired?
I am using the react-azure-maps library to use Azure Maps from a React app. I am trying to add a mouseover event on my markers. However, the event handler is never even called.
I tried the following ...
1
vote
1
answer
164
views
Blinking of Pin upon Updating Position in Azure Map on Xamarin [Android]
Blinking of Pin while running on android device. Take a look at the gif attached.
I followed this sample & used Xamarin Forms WebView for displaying map.
It works fine while running on browser.
1
vote
3
answers
751
views
azure map will not render markers in correct position
I am trying to render a simple Azure Map in a vue.js single-file component. I can get the map to draw at a specified center and zoom. And draw a line segment exactly where I want it.
But I cannot ...
1
vote
1
answer
582
views
Azure Maps Route Directions Error Returns Bad Request
Can anyone possible tell me what is wrong with this lat,lng: 54.575972,-1.235028 google maps says it's ok! ref:
https://www.google.com/maps/place/54%C2%B034'33.5%22N+1%C2%B014'06.1%22W/@54.5759722,-1....
1
vote
1
answer
651
views
How do I properly import azure-maps-control into a Vue.js app?
I'm trying to import and use the node module "azure-maps-control" in a Vue.js application but am getting an undefined error when trying to instantiate the map.
After installing azure-maps-control ...
1
vote
1
answer
70
views
Is there any drawing functionality on Azure Maps?
I'm working with Azure Maps and have a very basic idea of it's WEB sdk. What I want to know is- is there a drawing feature in The Azure Maps SDK that a user may use to draw on the map and return a ...
1
vote
1
answer
573
views
Bing Maps API - mapArea: this parameter value is out of range
I'm using the Bing Maps API to generate images from certain locations using the BotFramework-Location NuGet package. (Which code can be found here)
Sometimes it works, but sometimes the images are ...
1
vote
1
answer
76
views
How to allow text selection on azure maps popup?
It seems like user text selection on azure maps popup is disabled by default but I couldn't find any references to the ability to select text on azure maps documentation. Can anyone provide me any ...
1
vote
1
answer
391
views
how to implementing the Azure Maps API on flutter
how to use the Azure Maps API with flutter.
I read the Android SDK document, but I have no idea to use on flutter.
1
vote
1
answer
326
views
Can't get custom images to display in Azure Maps as Symbols
I really can't find any good documentation or any good samples on how to do this.
Here is my code. This is running in an Asp.net Core View.
var imageMarker = "https://unpkg.com/[email protected]/dist/...
1
vote
1
answer
591
views
Microsoft Azure Maps / Postman upload error
I'm trying to upload my zip file for conversion for Azure maps using Postman and I have followed all the steps but I'm getting a WWW-Authenticate error in postman.
401 Unauthorized.
SharedKey realm=&...
1
vote
1
answer
36
views
GA timeline of weather of Azure Maps
we are using Azure Maps Weather feature in a global website. Asking if any expected timeline from preview to GA of weather service, as SLA is also important to us.
1
vote
1
answer
276
views
How to show points as per unique category in a symbol layer without creating multiple layers?
I have a clustering enabled bubble layer.However upon zooming in, I want to show the points in unique colors as per the company property in the data. I'm achieving it via creating individual Symbol ...
1
vote
2
answers
1k
views
Using Azure Maps with React Native
I have to build a mobile application that would work with both Android and iOS, so that's why I'm not using the Azure Maps Android SDK.
So I just wanna know if it is possible to use the Azure maps in ...