mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
[feature] Add Vector Tile Layer action in "Layers" menu
This commit is contained in:
parent
b1ed51a71d
commit
05370ca842
@ -542,7 +542,14 @@ Returns the native draw action.
|
||||
|
||||
virtual QAction *actionAddXyzLayer() = 0;
|
||||
%Docstring
|
||||
Returns the native Add XYZ layer action.
|
||||
Returns the native Add XYZ Layer action.
|
||||
|
||||
.. versionadded:: 3.14
|
||||
%End
|
||||
|
||||
virtual QAction *actionAddVectorTileLayer() = 0;
|
||||
%Docstring
|
||||
Returns the native Add Vector Tile Layer action.
|
||||
|
||||
.. versionadded:: 3.14
|
||||
%End
|
||||
|
@ -2663,6 +2663,7 @@ void QgisApp::createActions()
|
||||
connect( mActionAddOracleLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "oracle" ) ); } );
|
||||
connect( mActionAddWmsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "wms" ) ); } );
|
||||
connect( mActionAddXyzLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "xyz" ) ); } );
|
||||
connect( mActionAddVectorTileLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "vectortile" ) ); } );
|
||||
connect( mActionAddWcsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "wcs" ) ); } );
|
||||
connect( mActionAddWfsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "WFS" ) ); } );
|
||||
connect( mActionAddAfsLayer, &QAction::triggered, this, [ = ] { dataSourceManager( QStringLiteral( "arcgisfeatureserver" ) ); } );
|
||||
@ -3972,6 +3973,7 @@ void QgisApp::setTheme( const QString &themeName )
|
||||
mActionCustomProjection->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionCustomProjection.svg" ) ) );
|
||||
mActionAddWmsLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddWmsLayer.svg" ) ) );
|
||||
mActionAddXyzLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddXyzLayer.svg" ) ) );
|
||||
mActionAddVectorTileLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddVectorTileLayer.svg" ) ) );
|
||||
mActionAddWcsLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddWcsLayer.svg" ) ) );
|
||||
mActionAddWfsLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddWfsLayer.svg" ) ) );
|
||||
mActionAddAfsLayer->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddAfsLayer.svg" ) ) );
|
||||
|
@ -519,6 +519,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
|
||||
QAction *actionAddSpatiaLiteLayer() { return mActionAddSpatiaLiteLayer; }
|
||||
QAction *actionAddWmsLayer() { return mActionAddWmsLayer; }
|
||||
QAction *actionAddXyzLayer() { return mActionAddXyzLayer; }
|
||||
QAction *actionAddVectorTileLayer() { return mActionAddVectorTileLayer; }
|
||||
QAction *actionAddWcsLayer() { return mActionAddWcsLayer; }
|
||||
QAction *actionAddWfsLayer() { return mActionAddWfsLayer; }
|
||||
QAction *actionAddAfsLayer() { return mActionAddAfsLayer; }
|
||||
|
@ -685,6 +685,7 @@ QAction *QgisAppInterface::actionAddRasterLayer() { return qgis->actionAddRaster
|
||||
QAction *QgisAppInterface::actionAddPgLayer() { return qgis->actionAddPgLayer(); }
|
||||
QAction *QgisAppInterface::actionAddWmsLayer() { return qgis->actionAddWmsLayer(); }
|
||||
QAction *QgisAppInterface::actionAddXyzLayer() { return qgis->actionAddXyzLayer(); }
|
||||
QAction *QgisAppInterface::actionAddVectorTileLayer() { return qgis->actionAddVectorTileLayer(); }
|
||||
QAction *QgisAppInterface::actionAddAfsLayer() { return qgis->actionAddAfsLayer(); }
|
||||
QAction *QgisAppInterface::actionAddAmsLayer() { return qgis->actionAddAmsLayer(); }
|
||||
QAction *QgisAppInterface::actionCopyLayerStyle() { return qgis->actionCopyLayerStyle(); }
|
||||
|
@ -235,6 +235,7 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
|
||||
QAction *actionAddPgLayer() override;
|
||||
QAction *actionAddWmsLayer() override;
|
||||
QAction *actionAddXyzLayer() override;
|
||||
QAction *actionAddVectorTileLayer() override;
|
||||
QAction *actionAddAfsLayer() override;
|
||||
QAction *actionAddAmsLayer() override;
|
||||
QAction *actionCopyLayerStyle() override;
|
||||
|
@ -482,10 +482,16 @@ class GUI_EXPORT QgisInterface : public QObject
|
||||
virtual QAction *actionAddWmsLayer() = 0;
|
||||
|
||||
/**
|
||||
* Returns the native Add XYZ layer action.
|
||||
* Returns the native Add XYZ Layer action.
|
||||
* \since QGIS 3.14
|
||||
*/
|
||||
virtual QAction *actionAddXyzLayer() = 0;
|
||||
|
||||
/**
|
||||
* Returns the native Add Vector Tile Layer action.
|
||||
* \since QGIS 3.14
|
||||
*/
|
||||
virtual QAction *actionAddVectorTileLayer() = 0;
|
||||
//! Returns the native Add ArcGIS FeatureServer action.
|
||||
virtual QAction *actionAddAfsLayer() = 0;
|
||||
//! Returns the native Add ArcGIS MapServer action.
|
||||
|
@ -192,6 +192,7 @@
|
||||
<addaction name="mActionAddWcsLayer"/>
|
||||
<addaction name="mActionAddWfsLayer"/>
|
||||
<addaction name="mActionAddAfsLayer"/>
|
||||
<addaction name="mActionAddVectorTileLayer"/>
|
||||
</widget>
|
||||
<addaction name="mActionDataSourceManager"/>
|
||||
<addaction name="mNewLayerMenu"/>
|
||||
@ -3311,6 +3312,18 @@ Shows placeholders for labels which could not be placed, e.g. due to overlaps wi
|
||||
<string>Add XYZ Layer…</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="mActionAddVectorTileLayer">
|
||||
<property name="icon">
|
||||
<iconset resource="../../images/images.qrc">
|
||||
<normaloff>:/images/themes/default/mActionAddVectorTileLayer.svg</normaloff>:/images/themes/default/mActionAddVectorTileLayer.svg</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add Vector TIle Layer…</string>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Add Vector Tile Layer…</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="../../images/images.qrc"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user