AngularJS directive of Singapore District Map for Condominiums and Private Apartments, based on Leaflet.
Singapore's postal districts is widely used in Singapore's property agent website. Here is a simple resuable directive of the interactive map.
- install via
bower
.
bower install angular-singapore-district-map
- create
<sg-district-map>
directive in the template.
- pass configuration options to
sgDistrictMapStyleProvider.setHighlightStyle
,sgDistrictMapStyleProvider.setHoverStyle
,sgDistrictMapStyleProvider.setDefaultStyle
. See Leaflet's documentation.