Application to showcase Android custom widget import in Kony Visualizer Enterprise. There are 2 projects here. One is android native project that exposes the native map as a Kony custom widget. Other project is Kony Visualizer project that consumes this custom widget.
Sample Application to showcase how to develop a custom widget for android and integrate the same into Visualizer.
Following properties/events/methods are supported by the map custom widget. Setting/calling the below properties/methods would cause invocation of the appropriate native APIs to achieve the desired behaviour
Properties:
displayMode
zoomLevel
showZoomControl
width
height
locationData
address
Events:
onPinClick
onBoundsChange
onMapClick
Methods:
clear
dismissCallout
animateToLocation
navigateToIndex
Note: To see the mappings in Visualizer, please navigate Integrate Thirdparty->Manage custom widget -> Android
- Download the zip file and extract it.
- Import the CustomMap application present in the Android-Custom-Widget-NativeMap-master\KonyVisualizerProject folder into Visualizer Enterprise
- Change the map key in the application settings
- Also add the following entry in the "Project settings->Native->Android->Tags->Child tag entries" by giving your map key
- Build & run the app.
Mobile
- Android Mobile
Supported Kony Visualizer Enterprise Version: 7.1
The Android studio project to implement map as a custom widget is available in the folder AndroidStudioProject\SampleAppsCustomWidgetNativeProj For making any changes to this,
- import it into Android studio
- Make the changes in the library module named 'sampleappslib'
- Build it to generate the .aar file
- Open the .aar with 7-zip and remove the konywidgets.jar file from the lib folder
- Copy the resultant .aar file into the Kony Application folder \CustomMap\resources\customwidgets\lib\android
- Build and launch the application
#Sample screens




