Skip to content

Commit 7dad716

Browse files
committed
mapbox gl 新增iClient Logo控件
1 parent d180896 commit 7dad716

14 files changed

+511
-167
lines changed

build/deps.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,21 @@ deps = {
721721
"des": "百度MapV可视化效果"
722722
}]
723723
}
724+
},
725+
"Control": {
726+
"title": "控件",
727+
"description": "各种功能在UI上的交互控制",
728+
729+
"Logo": {
730+
"name": "logo控件",
731+
"src": [
732+
"./src/mapboxgl/control/Logo.js"
733+
],
734+
"modules": [{
735+
"name": "mapboxgl.supermap.LogoControl",
736+
"des": "logo控件"
737+
}]
738+
}
724739
}
725740
},
726741

build/webpack.config.mapboxgl.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ module.exports = {
3030
module: {
3131
noParse: /[\/\\]node_modules[\/\\]mapbox-gl[\/\\]dist[\/\\]mapbox-gl\.js$/,
3232
rules: [{
33+
//图片小于30k采用base64编码
34+
test: /\.(png|jpg|jpeg|gif|woff)$/,
35+
use: [{
36+
loader: 'url-loader',
37+
options: {
38+
limit: 30000
39+
}
40+
}]
41+
},{
3342
test: /\.js/,
3443
exclude: /classic/,
3544
loader: 'babel-loader',

0 commit comments

Comments
 (0)