基于https://github.com/openlayers/ol3/blob/master/config/ol.json创建OL3版本时
我可以访问ol.Map#renderSync
原型方法。但是,如果我使用以下自定义"exports": [...]
数组(以修剪库大小),#renderSync
会被混淆(或可能被删除):
[
"ol.Map",
"ol.View",
"ol.control.*",
"ol.interaction.*",
"ol.style.*",
"ol.layer.Tile",
"ol.layer.Group",
"ol.source.XYZ",
"ol.layer.Layer",
"ol.layer.Vector",
"ol.format.GeoJSON",
"ol.source.Vector",
"ol.Overlay",
"ol.has.*",
"ol.events.condition.*",
"ol.inherits"
]
如何在保留关闭ol.Map#renderSync
优化的同时(理想情况下)保留关闭ADVANCED
时,如何导出自定义,修剪后的构建而不会失去对$StatusChangeQuery = "UPDATE teachers SET status_id = $status_id WHERE teacher_id = '20'";
$pdo->query($StatusChangeQuery);
的访问权限?
答案 0 :(得分:2)
您要使用的任何scala> import java.time._
import java.time._
scala> val paris = ZoneId.of("Europe/Paris")
paris: java.time.ZoneId = Europe/Paris
scala> OffsetDateTime.now(paris)
res0: java.time.OffsetDateTime = 2016-01-05T20:38:46.473+01:00
scala> OffsetDateTime.parse(res0.toString)
res2: java.time.OffsetDateTime = 2016-01-05T20:38:46.473+01:00
方法,请将其添加到ol.Map
部分:
exports
或使用星号导出所有方法:
"exports": [
"ol.Map",
"ol.Map#updateSize",
"ol.Map#renderSync",
"ol.View",
"ol.View#*",
...
]