Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi - I am using a bubble layer to represent customers on an azure map. How do I add our logo to our store locations?
Is it a symbol layer? I am new to Power BI, so any help is appreciated.
Hi @mrichardson07 ,
The following link is the thread which has the similar requirement as yours, hope it can help you.
Can't get custom images to display in Azure Maps as Symbols - Stack Overflow
Here is what ended up working for me. I worked with Microsoft Support on this. locationData contains the image, longitude and latitude. The min and max of both longitude and latitude is passed in as well to set the camera boundry. The biggest issue with my original code was setting iconOptions size to 0.5. The plugin did not like that. It's now set to 1.
function addMarkerSymbols(locationData, min_long, min_lat, max_long, max_lat) { map.setCamera({ bounds: [min_long, min_lat, max_long, max_lat], padding: 50 }); $.each(locationData, function (i, item) { map.imageSprite.add('default-icon' + i, item.locationImage); //Create a data source and add it to the map. var datasource = new atlas.source.DataSource(); map.sources.add(datasource); //Add a data set to the data source. datasource.add(new atlas.data.Feature(new atlas.data.Point([item.longitude, item.latitude]), null)); //Create a symbol layer to render the points. layer = new atlas.layer.SymbolLayer(datasource, null, { iconOptions: { //The map control has built in icons for bar, coffee and restaurant that we can use. image: 'default-icon' + i, anchor: 'center', allowOverlap: true, size: 1 } }); map.layers.add(layer); }); }
Best Regards
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
97 | |
95 | |
68 | |
65 |