@maptalks/3dtiles 0.93.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -0
- package/dist/maptalks.3dtiles.es.js +4 -4
- package/dist/maptalks.3dtiles.js +7 -7
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -34,3 +34,47 @@ layer.addTo(map);
|
|
|
34
34
|
</script>
|
|
35
35
|
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
# 配置说明
|
|
39
|
+
## I3S数据gzip解压
|
|
40
|
+
|
|
41
|
+
i3s数据默认都进行了gzip压缩(以.gz结尾),需要在http服务中配置url rewrite和gzip解压。
|
|
42
|
+
|
|
43
|
+
### IIS配置
|
|
44
|
+
* 下载安装[url rewrite模块](https://www.iis.net/downloads/microsoft/url-rewrite)
|
|
45
|
+
* 在文件夹目录下创建web.config,配置gz解压和url write:
|
|
46
|
+
```xml
|
|
47
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
48
|
+
<configuration>
|
|
49
|
+
<system.webServer>
|
|
50
|
+
<staticContent>
|
|
51
|
+
<remove fileExtension=".json.gz" />
|
|
52
|
+
<remove fileExtension=".bin.gz" />
|
|
53
|
+
<mimeMap fileExtension=".json.gz" mimeType="application/json" />
|
|
54
|
+
<mimeMap fileExtension=".bin.gz" mimeType="application/octet-stream" />
|
|
55
|
+
</staticContent>
|
|
56
|
+
<rewrite>
|
|
57
|
+
<outboundRules rewriteBeforeCache="true">
|
|
58
|
+
<rule name="Custom gzip file header">
|
|
59
|
+
<match serverVariable="RESPONSE_CONTENT_ENCODING" pattern=".*" />
|
|
60
|
+
<conditions>
|
|
61
|
+
<add input="{REQUEST_URI}" pattern="\.gz$" />
|
|
62
|
+
</conditions>
|
|
63
|
+
<action type="Rewrite" value="gzip"/>
|
|
64
|
+
</rule>
|
|
65
|
+
</outboundRules>
|
|
66
|
+
|
|
67
|
+
<rules>
|
|
68
|
+
<rule name="Rewrite gzip file">
|
|
69
|
+
<match url="(.*)"/>
|
|
70
|
+
<conditions>
|
|
71
|
+
<add input="{HTTP_ACCEPT_ENCODING}" pattern="gzip" />
|
|
72
|
+
<add input="{REQUEST_FILENAME}.gz" matchType="IsFile" />
|
|
73
|
+
</conditions>
|
|
74
|
+
<action type="Rewrite" url="{R:1}.gz" />
|
|
75
|
+
</rule>
|
|
76
|
+
</rules>
|
|
77
|
+
</rewrite>
|
|
78
|
+
</system.webServer>
|
|
79
|
+
</configuration>
|
|
80
|
+
```
|