In the current scenario, where social distancing is paramount, technology is playing a key role in maintaining daily communication and information transfer. MapmyIndia is serving individuals, companies and the government alike, to spread critical information related to COVID-19 through deeply informative, useful and free-to-integrate geo-visualized COVID-19 Layers in your application.
Simply plug these easy-to-integrate and COVID-19 Layers into your applications, and offer a seamless information experience to your users.
To get all interactive layers:
mapmyIndiaMap.getInteractiveLayer(new MapboxMap.InteractiveLayerLoadingListener() {
@Override
public void onLayersLoaded(List<InteractiveLayer> list) {
}
});
mapmyIndiaMap?.getInteractiveLayer(object: MapboxMap.InteractiveLayerLoadingListener {
override fun onLayersLoaded(list: List<InteractiveLayer>?) {
}
})
To show Interactive Layers:
mapmyIndiaMap.showInteractiveLayer(interactiveLayer);
mapmyIndiaMap?.showInteractiveLayer(interactiveLayer)
To hide Interactive Layers:
mapmyIndiaMap.hideInteractiveLayer(interactiveLayer);
mapmyIndiaMap?.hideInteractiveLayer(interactiveLayer)
To Enable/Disable info window on click of Interactive Layer
mapmyIndiaMap.showInteractiveLayerInfoWindow(false);
mapmyIndiaMap?.showInteractiveLayerInfoWindow(false)
To get the Interactive Layer Detail when clicked on Layer
mapmyIndiaMap.setOnInteractiveLayerClickListener(new MapboxMap.OnInteractiveLayerClickListener() {
@Override
public void onInteractiveLayerClicked(InteractiveItemDetails interactiveItemDetails) {
}
});
mapmyIndiaMap?.setOnInteractiveLayerClickListener(object : MapboxMap.OnInteractiveLayerClickListener {
override fun onInteractiveLayerClicked(interactiveItemDetails: InteractiveItemDetails?) {
}
})
For any queries and support, please contact:
Email us at [email protected]
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2022. CE Info Systems Ltd. All Rights Reserved. | Terms & Conditions.