In order to make New OneMap interactive and data-driven, OneMap-Leaflet JS is born. We invite you to give suggestions to evolve Project OneMap-Leaflet JS.
This open-source project is being built on top of leaflet and togeojson for Singapore's Geospatial Community.
Using this common library, you are empowered to evoke OneMap, Leaflet and togeojson functions on the initialized "map" object.
Discussion Forum : https://discuss.onemap.sg/t/project-onemap-leaflet-js-alpha-open-source/67
API Documentation : https://docs.onemap.sg
-Map Initialization (Four Map Styles)
-Map Initialization With OpenStreetMap
-Map Initialization With Google Map -> Please include Google-Mutant & Google API script!
-Add Map Layers at the Front(XYZ)
-Add Map Layers at the Back(XYZ)
-Remove Layers
-New OneMap Search Function
-New OneMap Reverse Geocoding
-New OneMap Coord Conversion
-New OneMap Themes API (Get Query Names & Retrieve Theme)
-POI-Type Themes to GeoJSON conversion
-Find Nearby Amenities for POI-Type Themes (Based on Distance) -> Please include Turf.js!
-Sorted Nearby Amenities for POI-Type Themes (Based on Distance) -> Please include Turf.js!
-Movement Recording (Start, Moving ,and End)
-KML String to GeoJSON Conversion
Turf JS - https://cdnjs.cloudflare.com/ajax/libs/Turf.js/5.0.4/turf.min.js
Google-Mutant - https://unpkg.com/leaflet.gridlayer.googlemutant@latest/Leaflet.GoogleMutant.js
Google Javascript API - http://maps.google.com/maps/api/js?v=3.2&sensor=false