Skip to content

Commit 5509da8

Browse files
committed
Merge branch 'dev-2.1' of https://github.com/iMobileforJavaScript/iTablet into dev-2.1
2 parents 127f624 + 0a172ed commit 5509da8

14 files changed

Lines changed: 83 additions & 47 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,6 @@ android/app/src/main/assets/python_android_assets/math.so
107107
android/app/src/main/assets/python_android_assets/PIL.zip
108108
android/app/src/main/assets/python_android_assets/_io.so
109109
android/app/src/main/assets/python_android_assets/math.so
110+
android/app/src/main/assets/python_android_assets/_io.so
111+
android/app/src/main/assets/python_android_assets/math.so
112+
android/app/src/main/assets/python_android_assets/PIL.zip

android/app/src/main/java/com/supermap/RN/FileTools.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,10 @@ private static void zipFile(File resFile, ZipOutputStream zipout, String rootpat
880880
zipFile(file, zipout, rootpath);
881881
}
882882
} else {
883+
//有.nomedia文件不导出
884+
if(resFile.getName().equals(".nomedia")){
885+
return;
886+
}
883887
byte buffer[] = new byte[BUFF_SIZE];
884888
BufferedInputStream in = new BufferedInputStream(new FileInputStream(resFile),
885889
BUFF_SIZE);

ios/iTablet.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1984,15 +1984,15 @@
19841984
/* Begin PBXShellScriptBuildPhase section */
19851985
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */ = {
19861986
isa = PBXShellScriptBuildPhase;
1987-
buildActionMask = 12;
1987+
buildActionMask = 8;
19881988
files = (
19891989
);
19901990
inputPaths = (
19911991
);
19921992
name = "Bundle React Native code and images";
19931993
outputPaths = (
19941994
);
1995-
runOnlyForDeploymentPostprocessing = 0;
1995+
runOnlyForDeploymentPostprocessing = 1;
19961996
shellPath = /bin/sh;
19971997
shellScript = "export NODE_BINARY=node\n../node_modules/react-native/scripts/react-native-xcode.sh\n";
19981998
};

src/components/Dialog/InputDialog.js

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export default class InputDialog extends PureComponent {
2424
returnKeyType: string,
2525
confirmBtnTitle: string,
2626
cancelBtnTitle: string,
27-
// inputSelection: Object,
2827
}
2928

3029
static defaultProps = {
@@ -125,10 +124,6 @@ export default class InputDialog extends PureComponent {
125124
value: text,
126125
})
127126
}}
128-
// selection={this.props.inputSelection || {
129-
// start: this.state.value.length - 1,
130-
// end: this.state.value.length - 1,
131-
// }}
132127
keyboardAppearance={this.props.keyboardAppearance}
133128
returnKeyType={this.props.returnKeyType}
134129
/>
@@ -150,16 +145,14 @@ export default class InputDialog extends PureComponent {
150145
confirmBtnDisable={!this.state.isLegalName}
151146
>
152147
<KeyboardAvoidingView behavior="padding" enabled>
153-
<View style={styles.contentView}>
154-
{this.renderInput()}
155-
{!this.state.isLegalName && this.state.errorInfo && (
156-
<View style={styles.errorView}>
157-
<Text numberOfLines={2} style={styles.errorInfo}>
158-
{this.state.errorInfo}
159-
</Text>
160-
</View>
161-
)}
162-
</View>
148+
{this.renderInput()}
149+
{!this.state.isLegalName && this.state.errorInfo && (
150+
<View style={styles.errorView}>
151+
<Text numberOfLines={2} style={styles.errorInfo}>
152+
{this.state.errorInfo}
153+
</Text>
154+
</View>
155+
)}
163156
</KeyboardAvoidingView>
164157
</Dialog>
165158
)

src/components/Dialog/styles.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export default StyleSheet.create({
162162
flexDirection: 'column',
163163
},
164164
errorView: {
165+
marginTop: Platform.OS === 'ios' ? scaleSize(4) : 0,
165166
width: '100%',
166167
minHeight: scaleSize(60),
167168
flexDirection: 'row',

src/components/Loading/IndicatorLoading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const styles = StyleSheet.create({
2727
},
2828
})
2929

30-
export default class Container extends PureComponent {
30+
export default class IndicatorLoading extends PureComponent {
3131
props: {
3232
style?: StyleSheet,
3333
titleStyle?: StyleSheet,

src/constants/ConstOnline.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ export default {
100100
layerIndex: 3,
101101
mapName: 'GOOGLE地图',
102102
},
103+
BingMap: {
104+
type: 'Datasource',
105+
DSParams: {
106+
server: 'http://cn.bing.com/ditu',
107+
engineType: 230,
108+
alias: 'bingMap',
109+
},
110+
layerIndex: 0,
111+
mapName: 'Bing地图',
112+
},
103113
OSM: {
104114
type: 'Datasource',
105115
DSParams: {

src/constants/FunctionToolbarModule.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ const layerManagerData = [
217217
type: DatasetType.IMAGE,
218218
themeType: -1,
219219
},
220+
{
221+
title: 'BingMap',
222+
action: () => {
223+
return OpenData(ConstOnline.BingMap, 0)
224+
},
225+
data: [],
226+
image: require('../assets/map/icon-shallow-image_black.png'),
227+
type: DatasetType.IMAGE,
228+
themeType: -1,
229+
},
220230
// {
221231
// title: '全球矢量地图',
222232
// action: () => {

src/containers/mtLayerManager/LayerUtils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const baseMapsOrigin = [
1414
'CycleMap@OpenStreetMaps',
1515
'TransportMap@OpenStreetMaps',
1616
'quanguo@SuperMapCloud',
17+
'roadmap_cn@bingMap',
1718
'baseMap',
1819
]
1920
let baseMaps = [...baseMapsOrigin]

src/containers/workspace/components/PlotAnimationView/PlotAnimationView.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
import { ConstToolType, TouchType } from '../../../../constants'
1212
import { TableList } from '../../../../components'
1313
import { color } from '../../../../styles'
14-
import { Toast, scaleSize, setSpText } from '../../../../utils'
14+
import { scaleSize, setSpText } from '../../../../utils'
1515
import { getLanguage } from '../../../../language/index'
1616
// import { getPublicAssets } from '../../../../assets'
1717
import { getThemeAssets } from '../../../../assets'
@@ -69,12 +69,6 @@ export default class PlotAnimationView extends React.Component {
6969
this.props.layerName,
7070
this.props.geoId,
7171
)
72-
if (type == -1) {
73-
Toast.show(getLanguage(global.language).Prompt.PLEASE_SELECT_PLOT_SYMBOL)
74-
this.cancle()
75-
return
76-
}
77-
7872
let data = this.getData()
7973
let subData = []
8074
switch (type) {

0 commit comments

Comments
 (0)