AzureMapsCodeSamples | A set of code samples for the Azure Maps web control | Map library
kandi X-RAY | AzureMapsCodeSamples Summary
kandi X-RAY | AzureMapsCodeSamples Summary
page_type: sample description: A collection of over a hundred code samples for the Azure Maps Web SDK. languages:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AzureMapsCodeSamples
AzureMapsCodeSamples Key Features
AzureMapsCodeSamples Examples and Code Snippets
Community Discussions
Trending Discussions on AzureMapsCodeSamples
QUESTION
I was following this tutorial (https://docs.microsoft.com/en-us/learn/modules/create-your-first-iot-central-app/) In unit 4, I followed all the steps but what I could see was just a blank page like this
...ANSWER
Answered 2021-Jun-10 at 16:00If all the different sites that use Azure Maps doesn't work for you its likely one of the following reasons:
- Make sure you are in a supported region. Azure Maps is not available to users who are located in China or South Korea, and the requests to the platform are actively blocked.
- You are using an unsupported browser: https://docs.microsoft.com/en-us/azure/azure-maps/supported-browsers
- WebGL is either disabled in your browser, or isn't working. Try this sample: https://azuremapscodesamples.azurewebsites.net/Map/Detect%20if%20browser%20is%20supported.html
- Your graphic card has issues, try updating the drivers.
QUESTION
When I create a symbol layer the text field is wrapped if the text becomes too long. I'm not able to figure out why/when the text is to long. It seems to depend on different things e.g. font type, text size and text length.
I tested the text length by using this example code. I replace Cafeteria with the alphabet with space between each character. It then wraps to a second line between m and n and that's to few letters on one line for our use case. https://azuremapscodesamples.azurewebsites.net/Symbol%20Layer/Formatted%20text%20field.html
I have been working with mapbox. They have a setting "text-max-width" that solves this issue. I have checked the javascript code that comes with the npm package azure-maps-control and it doesn't implement support for "text-max-width".
Do anyone know how to fix the wrapping issue or if the package azure-maps-control are going to implement support for the "text-max-width" setting?
...ANSWER
Answered 2020-Sep-11 at 18:13There is no option for this today, but I've added it to the feature request list. As a work around, you could do the following:
QUESTION
I have searched for hours on this and finally am reaching out for help.
I am creating a map with Azure maps. I have created a drawing area select tool. It works fine in the Azure demo because they create a variable called 'points' and then just assign some random features and locations. BUT... I am pulling my data in using:
...ANSWER
Answered 2020-Jul-01 at 16:44Since you are loading data via a URL, it has to load asynchronously. As such the importDataFromUrl function is a Promise that you can watch and have trigger an event handler once the data is downloaded. In that event handler you can then get the point data as GeoJSON using the data sources toJson function.
QUESTION
I'm using this code to have autosuggestions from Azure Maps API pop up when inputting an address.
The issue is that every time I select an address it clears the searchBox. However, I want to have the street address fill searchBox
rather than addressLineTbx
when an option is clicked.
I tried the following code but the searchBox
still clears after clicking one of the options.
ANSWER
Answered 2019-Jul-31 at 16:57Use event.preventDefault()
in the select
event to stop the autocomplete from setting a value and then set the address.
QUESTION
I want to render a static map (as image) using Azure Maps that only shows the basic world view and a couple of pins I will drop on it. I do not want the labels layer that shows the ocean and country names.
Looking through the Azure Maps Code samples (https://azuremapscodesamples.azurewebsites.net/) I just can't seem to find anything that would allow us to simplify the map.
Google maps supports this by setting visibility for the labels to false. The old Microsoft Maps supported this by setting the labelOverlay to hidden. I'd like to produce something like this: https://snazzymaps.com/style/209544/no-labels
How can all labels be hidden in an Azure Map (or Bing map for that matter) so I can get a simple image with my pins set with my labels, and all other labels removed?
...ANSWER
Answered 2019-Jun-28 at 07:19There isn't a documented API for this, but there is an unsupported way to do this. The base maps in Azure Maps use the Mapbox Vector Tile style schema which is a open standard. Its possible to access the base map layers and hide any label layers you want. Here is a code sample that hides all the labels in the base map:
QUESTION
Is there documentation available for all of the available operation expressions that you can use with azure maps? I've looked here and it only describes what an expression does, not all the operations you can use. I've found a few, like get
, match
, step
, etc by looking at examples. I would prefer to have a documented list of all operations with their input/output.
ANSWER
Answered 2019-Apr-08 at 21:44Official documentation for Expressions in Azure Maps can be found here: https://docs.microsoft.com/en-us/azure/azure-maps/data-driven-style-expressions-web-sdk
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AzureMapsCodeSamples
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page