Attribution onemap

Hi,

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}.onemap.sg/v3/Default/{z}/{x}/{y}.png', {
      detectRetina: true,
      maxZoom: 18,
      minZoom: 11,
      //Do not remove this attribution
      attribution: '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>'
    });

You can refer to this link for more information: https://docs.onemap.sg/maps/ (Leaflet.JS: (XYZ) Source Code section)

1 Like

thank you will use this