Attribution onemap


Can someone help me with how to exactly attribute onemap on my website with an example if possible.

Hi @steve

If you are referring on how to implement the OneMap Basemap attribution via Leaflet. We have our own OneMap Leaflet version where you can use that Javascript which will display the attribution with it. If you are using the official Leaflet, you have to use this snippet and implement within your Leaflet source code:

    var basemap = L.tileLayer('https://maps-{s}{z}/{x}/{y}.png', {
      detectRetina: true,
      maxZoom: 18,
      minZoom: 11,
      //Do not remove this attribution
      attribution: '<img src="" style="height:20px;width:20px;"/> OneMap | Map data © contributors, <a href="">Singapore Land Authority</a>'

You can refer to this link for more information: (Leaflet.JS: (XYZ) Source Code section)

1 Like

thank you will use this