Forum Widgets
Latest Discussions
Could not load image because of out of range source coordinates for image copy.
I use the azure-maps-control SDK version 2.3.7 for my Angular app. When I Initialise the Map it intermittently fires the error event. So sometimes it fires when the map loads and sometimes it does not. The error fires before I add any markers to the map, but Also if I remove all my code to add markers to the map and simply initialise the map. So if the error event fires the message I receive is: "Could not load image because of out of range source coordinates for image copy. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported." I use the Angular ngAfterViewInit lifecycle hook to initialise the map and the AzureMapsModule.forRoot to set the authOptions ngAfterViewInit(): void { this._initMap(); } private _initMap() { this._map = new atlas.Map(this.mapId, { language: 'en-us', style: 'satellite', showFeedbackLink: false, }); this._map.events.add('ready', (event) => { this._map$.next(event.map); this.map.emit(this._map$.asObservable()); }); this._map.events.add('error', (e) => { console.error(e); this._sharedService.showMessage( 'Error occurred while loading the map', SnackBarClasses.error, ); }); this._map$.next(this._map); } AzureMapsModule.forRoot({ authOptions: { authType: AuthenticationType.subscriptionKey, subscriptionKey: environment.azureMapsSubscriptionKey, }, }),JeroenBooijAug 08, 2025Copper Contributor39Views0likes1CommentCreate tilelayer using a GDAL Tiler tilematrix set
I'm porting an application from Bing maps which used many tilesets generated using the GDAL tiler. In the Bing Maps API these layers needed a custom url which modified the y component. So where Azure Maps uses the the option tileUrl:url I need something like ... This works in Bing ..... uriConstructor:function(coord){ // coord is a PyramidTileId with : z,y,zoom,pixwidth,pixheight. var ymax=1<<coord.zoom; var y=ymax-coord.y-1; return url.replace('{x}',coord.x).replace('{y}',y).replace('{z}',coord.zoom); } I do so hope there is someone out there with some cool code to get me out of a very tight spot. Thanks Stevesteve-smithAug 04, 2025Copper Contributor58Views0likes3CommentsAddress Search vs Geocode API 2025-01-01?
What's the difference between the following? Address Search: https://atlas.microsoft.com/search/address/json?&subscription-key={Your-Azure-Maps-Subscription-key}&api-version=1.0&language=en-US&query=400 Broad St, Seattle, WA 98109 Geocode using API 2025-01-01 https://atlas.microsoft.com/geocode?api-version=2025-01-01&subscription-key={Your-Azure-Maps-Subscription-key}&query=400 Broad St, Seattle, WA 98109 Both give you the latitude and longitude. What's the preferred one to use? I'm using the 2025-01-01 API for Route Matrix to get distance and time between points already.HSBHSBJul 02, 2025Copper Contributor60Views0likes1CommentAzure Maps computeBestOrder=true returns wrong originalWaypointIndexAtEndOfLeg values
Hi. I am trying to create a module where clients can optimize their routes using the Azure Maps service using DevExpress Map Control v24.2.5 Unfortunately when parsing to Azure Maps service computeBestOrder=true (regardless the RouteType) the JSON back has errors when sets the values for originalWaypointIndexAtEndOfLeg which DevExpress translates, which means cannot keep actual track of the changes in the route. Example. computeBestOrder=true routetype=shortest query= while the list of the Legs is correct, the originalWaypointIndexAtEndOfLeg property is not. So according to the JSON results from the API (the system ignores Origin and Final Destination so is 0 based list of Waypoints) 0 -> 3 (Is true) 1 -> 2 (Is false, is actually 1 -> 4) 2 -> 0 (Is false, is actually 2 -> 2) - example bellow 3 -> 1 (Is true) 4 -> 4 (Is false, is actually 4 -> 5) That could have been an non issue if at the same time Azure wasn't truncating the Lat/Lon values, which the rounding is not simple Math.Round 5, so cannot get a meaningful way to build back the changes to the route and apply the correct location labels. Is there something wrong with the service or the interpretation by myself and DevExpress is not correct when reading the originalWaypointIndexAtEndOfLeg values? If you have any queries, ορ requiring more information please let me know. Thank you.PanosTMar 04, 2025Copper Contributor96Views0likes0CommentsAzure Distance Matrix API - Limiting miles
We have a software vendor replacing our bing maps API with Azure Distance Matrix API. We are currently running into an issue where it is not returning any distances that are more than 248 miles. I'm guessing there is some sort of change that needs to be made to extend that to unlimited. Can anyone assist. Thank youlvanessFeb 13, 2025Copper Contributor95Views0likes1CommentAzure Maps does not zoom out completely
I'm working on a WordPress plugin and I needed to migrate from Bing Maps API to Azure Maps. I noticed that it is not possible to zoom out to the maximum on a map created with the Azure maps API when it is restricted to a smaller portion of a screen. The more noticeable it is, the smaller the map gets. Example: Comparion with the Bing Maps similar size: Of course, I tested this with minZoom options like: map = new atlas.Map( "new_map", { center: [0, 0], maxZoom: 24, minZoom: 1 // with 0 map disappears }); As you can see the maximum zoom out is drastically reduced. This WordPress plugin allows you to show albums with photos from all over the world and smaller maps may not show all of them. Internet search showed me only one other post about this issue http://Power%20Bi%20community%20forum and similar but probably not correctly described in here: https://learn.microsoft.com/en-us/answers/questions/1463153/the-new-azure-maps-seems-to-zoom-in-too-far Is there a solution to this problem or I missed something?PawelBDec 29, 2024Copper Contributor147Views0likes2CommentsMigrate Bing Maps Distance Matrix to Azure Maps Route Matrix
We currently use Bing Maps API to get distances between points using the distance matrix. We use the following URL: https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins={lat0,long0;lat1,lon1;latM,lonM}&destinations={lat0,lon0;lat1,lon1;latN,longN}&travelMode={travelMode}&startTime={startTime}&timeUnit={timeUnit}&key={BingMapsKey} I've reviewed the migration document and it says to use the Route Matrix in Azure Maps, specifically the following URL: https://atlas.microsoft.com/route/matrix/sync/json?api-version=1.0&subscription-key={subscription-key} When I try to use this URL, I get a 405 error every time. I'm not sure of the format to add the origins and destinations like the Bing Maps example has. I'd really prefer to use this API over the SDK as I like to be in control of how I retrieve and pull data out of the results. Is there an example of using the Route Matrix API?HSBHSBOct 22, 2024Copper Contributor243Views0likes1CommentAzure maps - embedding iframe
Hi All, I have a simple map (html) with pin location and is hosted in azure. Is there any way to embed the map using iframe into a web page? I am receiving a "content unavailable" message. I can defintely confirm the map is working and have tried directly using mobile and different networks. I think the problem is with the embed. Has anyone been successful in embedding using iframe? ThanksBill_Rankin975Sep 15, 2024Copper Contributor315Views0likes1CommentUnderstanding of transactions
Hi! We are going to create a drone app, where you will fly at some height over the ground. We'd like to use Azure imagery tiles. But it's hard to understand and calculate how much can it potentially cost. Could someone explain please, what actually "transaction" means? Is it like each time you enter the app, or is it more likely tiles requests and 1 transaction == one request? For example, how many transactions would there be if we needed the drone to fly 1km from point A to B? Thanks!SolvedEugeneP2450Sep 04, 2024Copper Contributor255Views0likes1CommentBing Maps "Birds eye View" Alternative
Hi Community, I need to batch download high-resolution images of specific locations based on latitude and longitude. Previously, I used Bing Maps Bird’s Eye View, which provided the detail and perspective needed to identify objects like 40-yard dumpsters. With the Bing Maps API now discontinued for new users, I'm looking into Azure Maps. My requirements: High clarity to accurately identify objects with the zoom level that I can set. Bird’s Eye View (like Bing Maps) to capture depth and dimensions. Can you suggest which Azure Maps services would best match these needs? Any guidance would be helpful. Thanks!mgharpurAug 28, 2024Copper Contributor876Views0likes1Comment
Resources
Tags
- azure maps8 Topics
- PowerApps1 Topic
- iot1 Topic
- PowerPlatform1 Topic
- ssis1 Topic
- geocoding1 Topic
- Azure Pricing1 Topic
- geolocation1 Topic
- Address Search API1 Topic
- Formatted Address1 Topic