Logo Lanfrica

apjoex/NigeriaMap

Domaine:

digital infrastructure

Type de record:

software
Créateur:
apj
Hôte:
A UI Android library for drawing the map of Nigeria # NigeriaMap ## Installation Add this to your app's build.gradle file ```groovy implementation 'com.apjoex:nigeriamap:1.0.6' ``` Or add NigeriaMap as a new dependency inside your pom.xml ```xml com.apjoex nigeriamap 1.0.6 pom ``` ## Usage ```xml ``` ## Customization • States and geo-political zones can be customized as shown below ```java import com.apjoex.nigeriamap.States import com.apjoex.nigeriamap.Zones ... States.LAGOS.setBackgroundColor(Color.RED) Zones.NORTH_WEST.setBackgroundColor(Color.BLUE) ``` • The map can be rendered in greyscale ```java NigeriaMap map; map = findViewById(R.id.nigeriaMap); map.goGreyScale(); //or in colour map.goColoured(); ``` • When changes have been made to states or zones alike, the legend can be force updated as shown below ```java map.updateLegend(); ``` ## Libraries used VectorMaster github.com FlexBox for Android github.com ## Developed by ``` Akinde-peters Joseph ``` Twitter (twitter.com) Skype (apjoex) Medium (medium.com) LinkedIn (linkedin.com) ## License ``` Copyright 2018 Akinde-peters Joseph Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at apache.org Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ```