Updating example with build config.
This commit is contained in:
+2
-9
@@ -6,19 +6,12 @@
|
|||||||
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
<link rel="stylesheet" href="../css/ol.css" type="text/css">
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
#map {
|
#map {
|
||||||
width: 512px; height: 350px;
|
width: 512px; height: 300px;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
<div id="map"></div>
|
<div id="map"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript" src="map.js"></script>
|
||||||
var map = ol.map({
|
|
||||||
renderTo: 'map',
|
|
||||||
layers: [ol.layer.osm()],
|
|
||||||
center: [0, 0],
|
|
||||||
zoom: 1
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</html>
|
</html>
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
var map = ol.map({
|
||||||
|
renderTo: 'map',
|
||||||
|
layers: [ol.layer.osm()],
|
||||||
|
center: [0, 0],
|
||||||
|
zoom: 1
|
||||||
|
});
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/**
|
||||||
|
* Build configuration for the map.js example. Use following syntax:
|
||||||
|
*
|
||||||
|
* ol build map.json
|
||||||
|
*
|
||||||
|
* The output will be named map-compiled.js.
|
||||||
|
*/
|
||||||
|
|
||||||
|
{
|
||||||
|
"id": "hello",
|
||||||
|
|
||||||
|
"output-file": "map-compiled.js",
|
||||||
|
|
||||||
|
"inputs": ["../src/ol.js", "map.js"],
|
||||||
|
|
||||||
|
"paths": ["../src"],
|
||||||
|
|
||||||
|
"define": {
|
||||||
|
"goog.DEBUG": false
|
||||||
|
},
|
||||||
|
|
||||||
|
"mode": "ADVANCED",
|
||||||
|
"level": "VERBOSE",
|
||||||
|
|
||||||
|
// acceptable values are "ERROR", "WARNING", and "OFF"
|
||||||
|
"checks": {
|
||||||
|
"accessControls": "WARNING",
|
||||||
|
"visibility": "WARNING",
|
||||||
|
"checkTypes": "WARNING",
|
||||||
|
"checkRegExp": "WARNING",
|
||||||
|
"checkVars": "WARNING",
|
||||||
|
"deprecated": "WARNING",
|
||||||
|
"fileoverviewTags": "WARNING",
|
||||||
|
"invalidCasts": "WARNING",
|
||||||
|
"missingProperties": "WARNING",
|
||||||
|
"nonStandardJsDocs": "WARNING",
|
||||||
|
"undefinedVars": "WARNING"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user