I'm trying to make a custom build of ol3. I can get everything to work with:
{"exports":["*"], ...}
but not with an export list. it appears it should be under ol.Map, but I have that. Any reason why my custom build throws an exception for getSize missing with this command:
view.fit(extent, map.getSize());
Here is my custom build json:
{
"exports": [
"ol.Feature",
"ol.Feature#*",
"ol.geom.Point",
"ol.geom.Point#*",
"ol.layer.Tile",
"ol.layer.Tile#*",
"ol.layer.Vector",
"ol.layer.Vector#*",
"ol.Map",
"ol.proj.transform",
"ol.source.OSM",
"ol.source.OSM#*",
"ol.source.Vector",
"ol.source.Vector#*",
"ol.style.Icon",
"ol.style.Icon#*",
"ol.style.Style",
"ol.style.Style#*",
"ol.View",
"ol.View#*",
"ol.extent.boundingExtent"
],
"compile": {
"externs": [
"externs/bingmaps.js",
"externs/geojson.js",
"externs/oli.js",
"externs/olx.js",
"externs/proj4js.js",
"externs/tilejson.js",
"externs/topojson.js"
],
"define": [
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.DEBUG=false"
],
"compilation_level": "ADVANCED_OPTIMIZATIONS",
"output_wrapper": "(function(){%output%})();",
"use_types_for_optimization": true,
"manage_closure_dependencies": true
}
}
I can't add a comment due to lack of reputation, so I'm not sure if this is a correct answer or not.
Try:
"ol.Map#*"
Or:
"ol.Map#getSize"
I think that this would include the ol.Map
functions.