def _create_add_osm_layer_action(self):
        """Create action for import OSM Dialog."""
        icon = resources_path('img', 'icons', 'add-osm-tiles-layer.svg')
        self.action_add_osm_layer = QAction(
            QIcon(icon),
            self.tr('Add OpenStreetMap Tile Layer'),
            self.iface.mainWindow())
        self.action_add_osm_layer.setStatusTip(self.tr(
            'Add OpenStreetMap Tile Layer'))
        self.action_add_osm_layer.setWhatsThis(self.tr(
            'Use this to add an OSM layer to your map. '
            'It needs internet access to function.'))
        self.action_add_osm_layer.triggered.connect(self.add_osm_layer)
        self.add_action(self.action_add_osm_layer, add_to_toolbar=True)
def _create_add_osm_layer_action ( self ) : icon = resources_path ( 'img' , 'icons' , 'add-osm-tiles-layer.svg' ) self . action_add_osm_layer = QAction ( QIcon ( icon ) , self . tr ( 'Add OpenStreetMap Tile Layer' ) , self . iface . mainWindow ( ) ) self . action_add_osm_layer . setStatusTip ( self . tr ( 'Add OpenStreetMap Tile Layer' ) ) self . action_add_osm_layer . setWhatsThis ( self . tr ( 'Use this to add an OSM layer to your map. ' 'It needs internet access to function.' ) ) self . action_add_osm_layer . triggered . connect ( self . add_osm_layer ) self . add_action ( self . action_add_osm_layer , add_to_toolbar = True )
Create action for import OSM Dialog.