在为OpenLayers3创建自定义构建时,会对某些方法进行模糊处理

时间:2016-01-05 17:11:08

标签: openlayers-3 google-closure-compiler

基于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); 的访问权限?

1 个答案:

答案 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#*",
  ...
]