This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loaderUtils = require("loader-utils"); // https://www.npmjs.com/package/loader-utils | |
module.exports = function WrapAsFnLoader(source) { | |
var query = loaderUtils.parseQuery(this.query); | |
var exportVars = query.exports; | |
var exStmt = []; | |
// Build the local variables by using the exports property on the query. | |
// This allows us to turn a couple this-variables into locals. | |
// Use a string to indicate that you want to import it as the same name, | |
// alternatively, provide an array of key-value pairs: The key becomes the local var, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link rel="stylesheet" href="http://openlayers.org/en/v3.5.0/css/ol.css" type="text/css"> | |
<style> | |
.map { | |
height: 400px; | |
width: 100%; | |
} | |
</style> |
NewerOlder