Skip to main content

Interactive Layer Plugin

Introduction​

In the current scenario, where social distancing is paramount, technology is playing a key role in maintaining daily communication and information transfer. Mappls 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.

Get Interactive Layers​

To get all interactive layers:

Java​

mapplsMap.getInteractiveLayer(new MapplsMap.InteractiveLayerLoadingListener() {  
@Override
public void onLayersLoaded(List<InteractiveLayer> list) {

}
});

Kotlin​

mapplsMap?.getInteractiveLayer(object: MapplsMap.InteractiveLayerLoadingListener {  
override fun onLayersLoaded(list: List<InteractiveLayer>?) {

}
})

Show/ Hide Interactive Layers​

To show Interactive Layers:

Java​

mapplsMap.showInteractiveLayer(interactiveLayer);

Kotlin​

mapplsMap?.showInteractiveLayer(interactiveLayer)

To hide Interactive Layers:

Java​

mapplsMap.hideInteractiveLayer(interactiveLayer);

Kotlin​

mapplsMap?.hideInteractiveLayer(interactiveLayer)

Enable/ Disable Infowindow​

To Enable/Disable info window on click of Interactive Layer

Java​

mapplsMap.showInteractiveLayerInfoWindow(false);

Kotlin​

mapplsMap?.showInteractiveLayerInfoWindow(false)

Get Interactive Layer Details​

To get the Interactive Layer Detail when clicked on Layer

Java​

mapplsMap.setOnInteractiveLayerClickListener(new MapplsMap.OnInteractiveLayerClickListener() {  
@Override
public void onInteractiveLayerClicked(InteractiveItemDetails interactiveItemDetails) {

}
});

Kotlin​

  
mapplsMap?.setOnInteractiveLayerClickListener(object : MapplsMap.OnInteractiveLayerClickListener {
override fun onInteractiveLayerClicked(interactiveItemDetails: InteractiveItemDetails?) {

}
})