|
280 | 280 | TonerLabels: 'toner-labels', |
281 | 281 | TonerLite: 'toner-lite', |
282 | 282 | Watercolor: { |
283 | | - url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}', |
| 283 | + url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}', |
284 | 284 | options: { |
285 | 285 | variant: 'watercolor', |
286 | 286 | minZoom: 1, |
|
302 | 302 | } |
303 | 303 | }, |
304 | 304 | TopOSMRelief: { |
305 | | - url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}', |
| 305 | + url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}', |
306 | 306 | options: { |
307 | 307 | variant: 'toposm-color-relief', |
308 | 308 | ext: 'jpg', |
|
510 | 510 | base: 'aerial', |
511 | 511 | variant: 'hybrid.grey.day' |
512 | 512 | } |
513 | | - }, |
| 513 | + }, |
514 | 514 | pedestrianDay: 'pedestrian.day', |
515 | 515 | pedestrianNight: 'pedestrian.night', |
516 | 516 | satelliteDay: { |
|
780 | 780 | } |
781 | 781 | }, |
782 | 782 | OneMapSG: { |
783 | | - url: 'https://maps-{s}.onemap.sg/v3/Default/{z}/{x}/{y}.png', |
| 783 | + url: 'https://maps-{s}.onemap.sg/v3/{variant}/{z}/{x}/{y}.png', |
784 | 784 | options: { |
| 785 | + variant: 'Default', |
785 | 786 | minZoom: 11, |
786 | 787 | maxZoom: 18, |
787 | 788 | bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
788 | | - attribution: |
789 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
| 789 | + attribution: 'New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
790 | 790 | }, |
791 | 791 | variants: { |
792 | | - Default: { |
793 | | - url: 'https://maps-{s}.onemap.sg/v3/Default/{z}/{x}/{y}.png', |
794 | | - options: { |
795 | | - minZoom: 11, |
796 | | - maxZoom: 18, |
797 | | - bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
798 | | - attribution: |
799 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
800 | | - } |
801 | | - }, |
802 | | - Night: { |
803 | | - url: 'https://maps-{s}.onemap.sg/v3/Night/{z}/{x}/{y}.png', |
804 | | - options: { |
805 | | - minZoom: 11, |
806 | | - maxZoom: 18, |
807 | | - bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
808 | | - attribution: |
809 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
810 | | - } |
811 | | - }, |
812 | | - Original: { |
813 | | - url: 'https://maps-{s}.onemap.sg/v3/Original/{z}/{x}/{y}.png', |
814 | | - options: { |
815 | | - minZoom: 11, |
816 | | - maxZoom: 18, |
817 | | - bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
818 | | - attribution: |
819 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
820 | | - } |
821 | | - }, |
822 | | - Grey: { |
823 | | - url: 'https://maps-{s}.onemap.sg/v3/Grey/{z}/{x}/{y}.png', |
824 | | - options: { |
825 | | - minZoom: 11, |
826 | | - maxZoom: 18, |
827 | | - bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
828 | | - attribution: |
829 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
830 | | - } |
831 | | - }, |
832 | | - LandLot: { |
833 | | - url: 'https://maps-{s}.onemap.sg/v3/LandLot/{z}/{x}/{y}.png', |
834 | | - options: { |
835 | | - minZoom: 11, |
836 | | - maxZoom: 18, |
837 | | - bounds: [[1.56073, 104.11475], [1.16, 103.502]], |
838 | | - attribution: |
839 | | - '<img src="https://docs.onemap.sg/maps/images/oneMap64-01.png" style="height:20px;width:20px;"/> New OneMap | Map data © contributors, <a href="http://SLA.gov.sg">Singapore Land Authority</a>' |
840 | | - } |
841 | | - } |
| 792 | + Default: 'Default', |
| 793 | + Night: 'Night', |
| 794 | + Original: 'Original', |
| 795 | + Grey: 'Grey', |
| 796 | + LandLot: 'LandLot' |
842 | 797 | } |
843 | | - } |
| 798 | + } |
844 | 799 | }; |
845 | 800 |
|
846 | 801 | L.tileLayer.provider = function (provider, options) { |
|
0 commit comments