on 02-01-2023 4:15 PM
I try to find a way to use a map in my ui5 application, what can handle WMTS tiles. What could be the best solution? I tried leaflet, but i couldn't use it inside geo map. I would be grateful if you could help me.
thank you yoganandamuthaiah!
That works. My main goal is to use it together with Geo Map. https://sapui5.hana.ondemand.com/#/entity/sap.ui.vbm.GeoMap
So I use the functions of Geo Map, but because I'm not sure it can handle any wmts map, I would use leaflet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
barnabashub
Yes, it is possible to use Leaflet in SAP UI5. You can use the Leaflet API to create a map and add WMTS tiles to it. Here is a sample code for creating a Leaflet map with WMTS tiles:
// Create a new Leaflet map
var map = L.map('map', {
center: [51.505, -0.09],
zoom: 13
});
// Add WMTS tiles to the map
var wmtsLayer = L.tileLayer.wmts('http://example.com/wmts/{z}/{x}/{y}.png', {
format: 'image/png',
tileSize: 256,
attribution: '© My Map Provider'
});
map.addLayer(wmtsLayer);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.