Skip to content

sla-onemap/onemap-leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneMap-Leaflet JS (Alpha Ver. 0.1.8)

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.

Project Description

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

OneMap-Leaflet's Current Capabilities (Examples Included)

-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!

OneMap-Leaflet's Utilities

-Movement Recording (Start, Moving ,and End)
-KML String to GeoJSON Conversion

Related Scripts

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

About

An open-source project based around leaflet.js (Alpha Ver. 0.1.8)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages