Skip to content

Commit

Permalink
新功能:图层列表支持影像图层改变顺序包括拖拽和右键
Browse files Browse the repository at this point in the history
  • Loading branch information
supermap123 committed May 21, 2024
1 parent ead73ff commit faba201
Show file tree
Hide file tree
Showing 13 changed files with 258 additions and 52 deletions.
12 changes: 11 additions & 1 deletion SuperMap iEarth/public/locale/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ const local_en = {
wireframeColor: "Wireframe Color",
chooseThenOffset: "Click to select the model, then offset it",
fillColor: "Fill Color",
tree_darg_tip: 'Please drag and drop in the same level directory',
tree_darg_tip_level: 'Please drag and drop in the same level directory',
tree_darg_tip_img: 'Only supports image layer adjustment order',
rename: 'Rename',
bindMediaField: 'Bind media fields', // 媒体字段(地图查询)- start
mediaField: 'Media fields',
Expand All @@ -675,12 +676,21 @@ const local_en = {
qxLayerDataUrl: 'Please enter the data service URL for this layer',
qxLayerDataSource: 'Please enter the data source corresponding to this layer',
qxLayerDataset: 'Please enter the data set corresponding to this layer',
skyLineDownLoadTip: '2D Skyline',
profileDownLoadTip: 'Profile information (section)',
raiseOne: 'Move one level up',
lowerOne: 'Move down one level',
raiseToTop: 'Move to top',
lowerToBottom: 'Move to bottom',
qxCover: 'map overlay tilt',
mvtCover: 'Vector tile overlay tilt',
selectQxLayer: 'Select the tilt layer',
cover: 'Overlay',
education: "SuperMap Education",
urlChecedFail:"Url verification failed, please enter the correct address",
appointSceneName:'Specify scene name',
customImgSupport:"Custom addition of images currently only supports SuperMapImageryProvider type services",
customTinSupport:"Custom terrain addition currently only supports SuperMapTerrainProvider type services",
s3mNameRepeatTip:'The layer name is duplicated, please modify the current layer name',
sceneNameRepeatTip:'This scene already exists, please do not add it again'
}
Expand Down
12 changes: 11 additions & 1 deletion SuperMap iEarth/public/locale/ja.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ const local_ja = {
wireframeColor: "ワイヤフレームカラー",
chooseThenOffset: "選択したモデルをクリックしてオフセットします",
fillColor: "じゅうてんカラー",
tree_darg_tip: '兄弟ディレクトリの下でドラッグしてください',
tree_darg_tip_level: '同じ階層のディレクトリにドラッグ&ドロップしてください',
tree_darg_tip_img: '画像レイヤーの調整順序のみをサポートします',
rename: '名前を変更',
bindMediaField: 'メディアフィールドをバインドする', // 媒体字段(地图查询)- start
mediaField: 'メディア分野',
Expand All @@ -675,12 +676,21 @@ const local_ja = {
qxLayerDataUrl: 'このレイヤーのデータ サービス URL を入力してください',
qxLayerDataSource: 'このレイヤーに対応するデータ ソースを入力してください',
qxLayerDataset: 'このレイヤーに対応するデータセットを入力してください',
skyLineDownLoadTip: '2D スカイライン',
profileDownLoadTip: 'プロフィール情報(セクション)',
raiseOne: '1 つ上のレベルに移動',
lowerOne: '1 つ下のレベルに移動',
raiseToTop: '先頭に移動',
lowerToBottom: '一番下に移動',
qxCover: '地図オーバーレイの傾き',
mvtCover: 'ベクター タイル オーバーレイの傾き',
selectQxLayer: '傾斜レイヤーを選択します',
cover: 'かぶせる',
education: "教育版",
urlChecedFail:"Urlチェックに失敗しました。正しいアドレスを入力してください",
appointSceneName:'シーン名の指定',
customImgSupport:"カスタム追加イメージは現在、SuperMapImageryProviderタイプサービスのみをサポートしています",
customTinSupport:"カスタム地形追加現在SuperMapTerrainProviderタイプサービスのみサポート",
s3mNameRepeatTip:'レイヤー名が重複しています。現在のレイヤー名を変更してください',
sceneNameRepeatTip:'このシーンはすでに存在します。再度追加しないでください'
}
Expand Down
12 changes: 11 additions & 1 deletion SuperMap iEarth/public/locale/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ const local_ru = {
wireframeColor: "Цвет рамки",
chooseThenOffset: "Нажмите на выбранную модель, а затем переместите",
fillColor: "Цвет заполнения",
tree_darg_tip: 'Перетащите в каталог того же уровня',
tree_darg_tip_level: 'Пожалуйста, перетащите в каталог того же уровня.',
tree_darg_tip_img: 'Поддерживается только порядок настройки слоев изображения.',
rename: 'Переименовать',
bindMediaField: 'Привязка медиа-полей', // 媒体字段(地图查询)- start
mediaField: 'медиа-поля',
Expand All @@ -675,12 +676,21 @@ const local_ru = {
qxLayerDataUrl: 'Введите URL-адрес службы данных для этого слоя.',
qxLayerDataSource: 'Пожалуйста, введите источник данных, соответствующий этому слою',
qxLayerDataset: 'Пожалуйста, введите набор данных, соответствующий этому слою',
skyLineDownLoadTip: '2D горизонт',
profileDownLoadTip: 'Информация профиля (раздел)',
raiseOne: 'Переместиться на один уровень вверх',
lowerOne: 'Перейти на один уровень вниз',
raiseToTop: 'Перейти наверх',
lowerToBottom: 'Перейти вниз',
qxCover: 'наклон наложения карты',
mvtCover: 'Наклон наложения векторной плитки',
selectQxLayer: 'Выберите слой наклона',
cover: 'Наложение',
education: "обучать",
urlChecedFail:"Ошибка проверки Url, введите правильный адрес",
appointSceneName:'Укажите имя сцены',
customImgSupport:"В настоящее время поддерживаются только службы типов SuperMapImageryProvider",
customTinSupport:"В настоящее время поддерживаются только сервисы типа SuperMapTerrainProvider",
s3mNameRepeatTip:'Имя слоя дублируется, измените имя текущего слоя.',
sceneNameRepeatTip:'Эта сцена уже существует, пожалуйста, не добавляйте ее снова'
}
Expand Down
26 changes: 18 additions & 8 deletions SuperMap iEarth/public/locale/zh.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const local_zh = {
clipMode: '裁剪模式',
inner: '内部',
outer: '外部',
boxclipTip: '点击鼠标左键绘制box底面,移动鼠标绘制box高度,点击鼠标右键结束绘制',
boxclipTip: '鼠标左键绘制矩形作为Box底面,移动鼠标绘制Box高度,右键结束',
displayCilpPlane: '显示裁剪面',
verticalNormal: '垂直法线',
parallelNormal: '平行法线',
Expand Down Expand Up @@ -311,7 +311,7 @@ const local_zh = {
closeGroundMode: '贴地模式',
closeS3MMode: '贴S3M模式',
closeBoth: '贴地贴对象',
editLineTip: '鼠标左键开始添加,右键结束,选中对象编辑',
editLineTip: '鼠标左键添加,右键结束,选中对象编辑',
editLineTip2: '鼠标左键选中绘制对象进行编辑',
symbolType: '符号类型',
symbolColor: '符号颜色',
Expand All @@ -329,7 +329,7 @@ const local_zh = {
singleDel: '单个删除',
wholeDel: '线面删除',
addSkitTip: '请选择符号',
delSkitTip: '请点选场景中添加的小品',
delSkitTip: '请选中场景中添加的小品',
cylinder: '圆柱体',
cube: '立方体',
sphere: '球体',
Expand Down Expand Up @@ -590,7 +590,7 @@ const local_zh = {

// 倾斜模型单体化
featrueID: "要素ID",
singleTip_waring: '请输入与该倾斜摄影图层对应的:数据服务、数据源、数据集',
singleTip_waring: '请输入与该倾斜摄影图层对应的数据服务、数据源、数据集',
singleTip_success: '倾斜摄影图层与数据服务绑定成功,点击进行单体化查询',

// 我的服务-iportal
Expand Down Expand Up @@ -648,17 +648,18 @@ const local_zh = {
// Tip
qxModelTip: '该功能只支持倾斜摄影三维模型',
repeatAddTip: "请勿重复添加!",
repeatAddWMTSTip: "该wmts图层已添加,请勿重复添加",
repeatAddWMTSTip: "该wmts图层已添加请勿重复添加",

// 新增
outLineColor: "轮廓线颜色",
outLineWidth: "轮廓线宽度",
lightTip_edit: "请选中光源模型,再编辑属性",
lightTip_edit: "请选中光源模型再编辑属性",
lightTip_del: "请选中光源模型在删除",
wireframeColor: "线框颜色",
chooseThenOffset: "点击选中模型,再偏移",
fillColor: "填充颜色",
tree_darg_tip: '请在同级目录下拖拽',
tree_darg_tip_level: '请在同级目录下拖拽',
tree_darg_tip_img: '仅支持影像图层调整顺序',
rename: '重命名',
bindMediaField: '绑定媒体字段', // 媒体字段(地图查询)- start
mediaField: '媒体字段',
Expand All @@ -675,14 +676,23 @@ const local_zh = {
qxLayerDataUrl: '请输入该图层的数据服务URL',
qxLayerDataSource: '请输入该图层对应的数据源',
qxLayerDataset: '请输入该图层对应的数据集',
skyLineDownLoadTip: '二维天际线',
profileDownLoadTip: '剖面信息(截面)',
raiseOne: '上移一层',
lowerOne: '下移一层',
raiseToTop: '移至顶层',
lowerToBottom: '移至底层',
qxCover: '地图叠加倾斜',
mvtCover: '矢量瓦片叠加倾斜',
selectQxLayer: '选择倾斜图层',
cover: '叠加',
education: "教育版",
urlChecedFail:"Url校验失败,请输入正确地址",
appointSceneName:'指定场景名称',
customImgSupport:"自定义添加影像当前仅支持 SuperMapImageryProvider 类型服务",
customTinSupport:"自定义添加地形当前仅支持 SuperMapTerrainProvider 类型服务",
s3mNameRepeatTip:'图层名重复,请修改当前图层名称',
sceneNameRepeatTip:'该场景已存在,请勿重复添加'
sceneNameRepeatTip:'该场景已存在,请勿重复添加',
}

window.local_zh = local_zh;
80 changes: 63 additions & 17 deletions SuperMap iEarth/src/assets/icons/demo_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ
<div class="content unicode" style="display: block;">
<ul class="icon_lists dib-box">

<li class="dib">
<span class="icon iconfont">&#xe8e6;</span>
<div class="name">查询</div>
<div class="code-name">&amp;#xe8e6;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe8e5;</span>
<div class="name">帮助</div>
<div class="code-name">&amp;#xe8e5;</div>
</li>

<li class="dib">
<span class="icon iconfont">&#xe8a4;</span>
<div class="name">地图叠加倾斜</div>
Expand Down Expand Up @@ -494,7 +506,7 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ

<li class="dib">
<span class="icon iconfont">&#xe89d;</span>
<div class="name">查询</div>
<div class="name">属性查询</div>
<div class="code-name">&amp;#xe89d;</div>
</li>

Expand Down Expand Up @@ -770,7 +782,7 @@ <h1 class="logo"><a href="https://www.iconfont.cn/" title="iconfont 首页" targ

<li class="dib">
<span class="icon iconfont">&#xe86e;</span>
<div class="name">skin</div>
<div class="name">主题</div>
<div class="code-name">&amp;#xe86e;</div>
</li>

Expand Down Expand Up @@ -1236,9 +1248,9 @@ <h3 id="-font-face">第一步:拷贝项目下面生成的 <code>@font-face</co
<pre><code class="language-css"
>@font-face {
font-family: 'iconfont';
src: url('iconfont.woff2?t=1713757391644') format('woff2'),
url('iconfont.woff?t=1713757391644') format('woff'),
url('iconfont.ttf?t=1713757391644') format('truetype');
src: url('iconfont.woff2?t=1716272877827') format('woff2'),
url('iconfont.woff?t=1716272877827') format('woff'),
url('iconfont.ttf?t=1716272877827') format('truetype');
}
</code></pre>
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
Expand All @@ -1264,6 +1276,24 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
<div class="content font-class">
<ul class="icon_lists dib-box">

<li class="dib">
<span class="icon iconfont iconchaxun"></span>
<div class="name">
查询
</div>
<div class="code-name">.iconchaxun
</div>
</li>

<li class="dib">
<span class="icon iconfont iconbangzhu"></span>
<div class="name">
帮助
</div>
<div class="code-name">.iconbangzhu
</div>
</li>

<li class="dib">
<span class="icon iconfont iconditudiejiaqingxie"></span>
<div class="name">
Expand Down Expand Up @@ -1922,11 +1952,11 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
</li>

<li class="dib">
<span class="icon iconfont iconchaxun"></span>
<span class="icon iconfont iconshuxingchaxun"></span>
<div class="name">
查询
属性查询
</div>
<div class="code-name">.iconchaxun
<div class="code-name">.iconshuxingchaxun
</div>
</li>

Expand Down Expand Up @@ -2336,11 +2366,11 @@ <h3 id="-">第三步:挑选相应图标并获取字体编码,应用于页面
</li>

<li class="dib">
<span class="icon iconfont iconskin"></span>
<span class="icon iconfont iconzhuti"></span>
<div class="name">
skin
主题
</div>
<div class="code-name">.iconskin
<div class="code-name">.iconzhuti
</div>
</li>

Expand Down Expand Up @@ -3037,6 +3067,22 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h
<div class="content symbol">
<ul class="icon_lists dib-box">

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconchaxun"></use>
</svg>
<div class="name">查询</div>
<div class="code-name">#iconchaxun</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconbangzhu"></use>
</svg>
<div class="name">帮助</div>
<div class="code-name">#iconbangzhu</div>
</li>

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconditudiejiaqingxie"></use>
Expand Down Expand Up @@ -3623,10 +3669,10 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconchaxun"></use>
<use xlink:href="#iconshuxingchaxun"></use>
</svg>
<div class="name">查询</div>
<div class="code-name">#iconchaxun</div>
<div class="name">属性查询</div>
<div class="code-name">#iconshuxingchaxun</div>
</li>

<li class="dib">
Expand Down Expand Up @@ -3991,10 +4037,10 @@ <h3 id="-">第二步:挑选相应图标并获取类名,应用于页面:</h

<li class="dib">
<svg class="icon svg-icon" aria-hidden="true">
<use xlink:href="#iconskin"></use>
<use xlink:href="#iconzhuti"></use>
</svg>
<div class="name">skin</div>
<div class="code-name">#iconskin</div>
<div class="name">主题</div>
<div class="code-name">#iconzhuti</div>
</li>

<li class="dib">
Expand Down
18 changes: 13 additions & 5 deletions SuperMap iEarth/src/assets/icons/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 2397568 */
src: url('iconfont.woff2?t=1713757391644') format('woff2'),
url('iconfont.woff?t=1713757391644') format('woff'),
url('iconfont.ttf?t=1713757391644') format('truetype');
src: url('iconfont.woff2?t=1716272877827') format('woff2'),
url('iconfont.woff?t=1716272877827') format('woff'),
url('iconfont.ttf?t=1716272877827') format('truetype');
}

.iconfont {
Expand All @@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}

.iconchaxun:before {
content: "\e8e6";
}

.iconbangzhu:before {
content: "\e8e5";
}

.iconditudiejiaqingxie:before {
content: "\e8a4";
}
Expand Down Expand Up @@ -305,7 +313,7 @@
content: "\e892";
}

.iconchaxun:before {
.iconshuxingchaxun:before {
content: "\e89d";
}

Expand Down Expand Up @@ -489,7 +497,7 @@
content: "\e86d";
}

.iconskin:before {
.iconzhuti:before {
content: "\e86e";
}

Expand Down
2 changes: 1 addition & 1 deletion SuperMap iEarth/src/assets/icons/iconfont.js

Large diffs are not rendered by default.

Loading

0 comments on commit faba201

Please sign in to comment.