text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: config/jsdoc/api/plugins/markdown.js /** * Modified from JSDoc's plugins/markdown and lib/jsdoc/util/markdown modules * (see https://github.com/jsdoc3/jsdoc/), which are licensed under the Apache 2 * license (see http://www.apache.org/licenses/LICENSE-2.0). * * This version does not protect http(s) urls ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/plugins/markdown.js", "license": "bsd-2-clause", "size": 2728}
### File: config/jsdoc/api/plugins/observable.js const classes = {}; const observables = {}; exports.handlers = { newDoclet: function (e) { const doclet = e.doclet; if (doclet.kind == 'class' && !(doclet.longname in classes)) { classes[doclet.longname] = doclet; } }, parseComplete: function (e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/plugins/observable.js", "license": "bsd-2-clause", "size": 2127}
### File: config/jsdoc/api/template/publish.js /*global env: true */ const hasOwnProp = Object.prototype.hasOwnProperty; // Work around an issue with hasOwnProperty in JSDoc's templateHelper.js. //TODO Fix in JSDoc. Object.prototype.hasOwnProperty = function (property) { return property in this; }; const template ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/publish.js", "license": "bsd-2-clause", "size": 16861}
### File: config/jsdoc/api/template/static/scripts/linenumber.js (function() { var counter = 0; var numbered; var source = document.getElementsByClassName('prettyprint source'); if (source && source[0]) { source = source[0].getElementsByTagName('code')[0]; numbered = source.innerHTML.s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/scripts/linenumber.js", "license": "bsd-2-clause", "size": 480}
### File: config/jsdoc/api/template/static/scripts/main.js $(function () { 'use strict'; // Allow user configuration? const allowRegex = true; const minInputForSearch = 1; const minInputForFullText = 2; const expandAllOnInputWithoutSearch = true; function constructRegex(searchTerm, makeRe, allowRegex) {...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/scripts/main.js", "license": "bsd-2-clause", "size": 10136}
### File: config/jsdoc/api/template/static/styles/jaguar.css @import url(https://fonts.googleapis.com/css?family=Quattrocento+Sans:400,400italic,700); .navbar-inverse { border: 0; } .navbar-inverse .navbar-inner { background: #1F6B75; height: 50px; text-shadow: 1px 1px 2px rgba(0,0,0,0.25); } .navbar-inverse .b...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/styles/jaguar.css", "license": "bsd-2-clause", "size": 9555}
### File: config/jsdoc/api/template/static/styles/prettify-jsdoc.css /* JSDoc prettify.js theme */ /* plain text */ .pln { color: #000000; font-weight: normal; font-style: normal; } /* string content */ .str { color: #006400; font-weight: normal; font-style: normal; } /* a keyword */ .kwd { color: #000...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/styles/prettify-jsdoc.css", "license": "bsd-2-clause", "size": 1535}
### File: config/jsdoc/api/template/static/styles/prettify-tomorrow.css /* Tomorrow Theme */ /* Original theme - https://github.com/chriskempson/tomorrow-theme */ /* Pretty printing styles. Used with prettify.js. */ /* SPAN elements with the classes below are added by prettyprint. */ /* plain text */ .pln { color: #4...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/styles/prettify-tomorrow.css", "license": "bsd-2-clause", "size": 2018}
### File: config/jsdoc/api/template/static/styles/site.css /* Carbon adds (see https://sell.buysellads.com) */ #ad { margin-left: 1em; float: right; width: 330px; min-height: 125px; } #carbonads { font-family: "Quattrocento Sans", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", Geneva, Verdana, sans-...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/api/template/static/styles/site.css", "license": "bsd-2-clause", "size": 1135}
### File: config/jsdoc/info/api-plugin.js /** * Handle the api annotation. * @param {Object} dictionary The tag dictionary. */ exports.defineTags = function (dictionary) { dictionary.defineTag('api', { onTagged: function (doclet, tag) { doclet.api = true; }, }); };
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/info/api-plugin.js", "license": "bsd-2-clause", "size": 245}
### File: config/jsdoc/info/define-plugin.js /** * @fileoverview This plugin extracts info from boolean defines. This only * handles boolean defines with the default value in the description. Default * is assumed to be provided with something like "default is `true`" (case * insensitive, with or without ticks). ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/info/define-plugin.js", "license": "bsd-2-clause", "size": 950}
### File: config/jsdoc/info/publish.js /** * @fileoverview Generates JSON output based on exportable symbols (those with * an api tag) and boolean defines (with a define tag and a default value). */ const assert = require('assert'); const path = require('path'); /** * Publish hook for the JSDoc template. Writes t...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/info/publish.js", "license": "bsd-2-clause", "size": 5260}
### File: config/jsdoc/info/virtual-plugin.js /** * Handle the interface and abstract annotations. * @param {Object} dictionary The tag dictionary. */ exports.defineTags = function (dictionary) { const classTag = dictionary.lookUp('class'); dictionary.defineTag('interface', { mustNotHaveValue: true, onTa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/jsdoc/info/virtual-plugin.js", "license": "bsd-2-clause", "size": 398}
### File: config/webpack-config-legacy-build.js const path = require('path'); module.exports = { entry: './build/index.js', devtool: 'source-map', mode: 'production', resolve: { alias: { ol: path.resolve('./src/ol'), }, }, output: { path: path.resolve('./build/legacy'), filename: 'ol.j...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "config/webpack-config-legacy-build.js", "license": "bsd-2-clause", "size": 359}
### File: doc/index.hbs --- title: Documentation layout: doc.hbs --- # Documentation If you're eager to get your first OpenLayers map on a page, dive into the [quick start](quickstart.html). For a more in-depth overview of OpenLayers core concepts, check out the [tutorials](tutorials/). Make sure to also check out ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Handlebars", "repo_name": "minhanghuang/OpenLayers", "path": "doc/index.hbs", "license": "bsd-2-clause", "size": 974}
### File: doc/quickstart.hbs --- title: Quick Start layout: doc.hbs --- # Quick Start This primer shows you how to put a simple map on a web page. **For production, we strongly recommend bundling the application together with its dependencies, as explained in the [Building an OpenLayers Application](./tutorials/bund...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Handlebars", "repo_name": "minhanghuang/OpenLayers", "path": "doc/quickstart.hbs", "license": "bsd-2-clause", "size": 4492}
### File: doc/tutorials/concepts.hbs --- title: Basic Concepts layout: doc.hbs --- # Basic Concepts ## Map The core component of OpenLayers is the map (`ol/Map`). It is rendered to a `target` container (e.g. a `div` element on the web page that contains the map). All map properties can either be configured at constr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Handlebars", "repo_name": "minhanghuang/OpenLayers", "path": "doc/tutorials/concepts.hbs", "license": "bsd-2-clause", "size": 3074}
### File: doc/tutorials/index.hbs --- title: Tutorials layout: doc.hbs --- # Tutorials * [Building an OpenLayers Application](bundle.html) * [Basic Concepts](concepts.html) * [Some Background on OpenLayers](background.html) * [Raster Reprojection](raster-reprojection.html)
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Handlebars", "repo_name": "minhanghuang/OpenLayers", "path": "doc/tutorials/index.hbs", "license": "bsd-2-clause", "size": 242}
### File: examples/accessible.css a.skiplink { position: absolute; clip: rect(1px, 1px, 1px, 1px); padding: 0; border: 0; height: 1px; width: 1px; overflow: hidden; } a.skiplink:focus { clip: auto; height: auto; width: auto; background-color: #fff; padding: 0.3em; } #map:focus { outline: #4A74...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/accessible.css", "license": "bsd-2-clause", "size": 305}
### File: examples/accessible.html --- layout: example.html title: Accessible Map shortdesc: Example of an accessible map. docs: > This page's `map` element has its `tabindex` attribute set to `"0"`, that makes it focusable. To focus the map element you can either navigate to it using the "tab" key or use the skip li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/accessible.html", "license": "bsd-2-clause", "size": 820}
### File: examples/accessible.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; const map = new Map({ layers: [ new TileLayer({ source: new OSM(), }), ], target: 'map', view: new...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/accessible.js", "license": "bsd-2-clause", "size": 639}
### File: examples/animation.html --- layout: example.html title: View Animation shortdesc: Demonstrates animated pan, zoom, and rotation. docs: > This example shows how to use the <code>view.animate()</code> method to run one or more animations. tags: "animation" --- <div id="map" class="map"></div> <button id="ro...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/animation.html", "license": "bsd-2-clause", "size": 767}
### File: examples/animation.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {easeIn, easeOut} from '../src/ol/easing.js'; import {fromLonLat} from '../src/ol/proj.js'; const london = fromLon...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/animation.js", "license": "bsd-2-clause", "size": 3976}
### File: examples/arcgis-image.html --- layout: example.html title: Image ArcGIS MapServer shortdesc: Example of an image ArcGIS layer. docs: > This example shows how to use a dynamic ArcGIS REST MapService. This source type supports Map and Image Services. For dyamic ArcGIS services. tags: arcgis, image, dynami...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/arcgis-image.html", "license": "bsd-2-clause", "size": 328}
### File: examples/arcgis-image.js import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {ImageArcGISRest, OSM} from '../src/ol/source.js'; import {Image as ImageLayer, Tile as TileLayer} from '../src/ol/layer.js'; const url = 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/arcgis-image.js", "license": "bsd-2-clause", "size": 656}
### File: examples/arcgis-tiled.html --- layout: example.html title: Tiled ArcGIS MapServer shortdesc: Example of a tiled ArcGIS layer. docs: > This example shows how to use an ArcGIS REST MapService as tiles. This source type supports Map and Image Services. For cached ArcGIS services, better performance is avai...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/arcgis-tiled.html", "license": "bsd-2-clause", "size": 404}
### File: examples/arcgis-tiled.js import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {OSM, TileArcGISRest} from '../src/ol/source.js'; const url = 'https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' + 'Specialty/ESRI_StateCi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/arcgis-tiled.js", "license": "bsd-2-clause", "size": 646}
### File: examples/attributions.html --- layout: example.html title: Attributions shortdesc: Example of a attributions visibily change on map resize, to collapse them on small maps. docs: > When the map gets too small because of a resize, the attribution will be collapsed. This is because the <code>collapsible</cod...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/attributions.html", "license": "bsd-2-clause", "size": 437}
### File: examples/attributions.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {Attribution, defaults as defaultControls} from '../src/ol/control.js'; const attribution = new Attribution({ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/attributions.js", "license": "bsd-2-clause", "size": 752}
### File: examples/bing-maps.html --- layout: example.html title: Bing Maps shortdesc: Example of a Bing Maps layer. docs: > <p>When the Bing Maps tile service doesn't have tiles for a given resolution and region it returns "placeholder" tiles indicating that. Zoom the map beyond level 19 to see the "placeholder" til...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/bing-maps.html", "license": "bsd-2-clause", "size": 1035}
### File: examples/bing-maps.js import BingMaps from '../src/ol/source/BingMaps.js'; import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; const styles = [ 'RoadOnDemand', 'Aerial', 'AerialWithLabelsOnDemand', 'CanvasDark', 'OrdnanceSurvey'...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/bing-maps.js", "license": "bsd-2-clause", "size": 1198}
### File: examples/box-selection.css .ol-dragbox { background-color: rgba(255,255,255,0.4); border-color: rgba(100,150,0,1); }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/box-selection.css", "license": "bsd-2-clause", "size": 94}
### File: examples/box-selection.html --- layout: example.html title: Box Selection shortdesc: Using a DragBox interaction to select features. docs: > <p>This example shows how to use a <code>DragBox</code> interaction to select features. Selected features are added to the feature overlay of a select interaction (<...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/box-selection.html", "license": "bsd-2-clause", "size": 546}
### File: examples/box-selection.js import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {DragBox, Select} from '../src/ol/interaction.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/box-selection.js", "license": "bsd-2-clause", "size": 2921}
### File: examples/button-title.css .tooltip-inner { white-space: nowrap; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/button-title.css", "license": "bsd-2-clause", "size": 42}
### File: examples/button-title.html --- layout: example.html title: Custom Tooltips shortdesc: This example shows how to customize the buttons tooltips with Bootstrap. docs: > This example shows how to customize the buttons tooltips with <a href="http://getbootstrap.com/javascript/#tooltips">Bootstrap</a>. tags: "cu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/button-title.html", "license": "bsd-2-clause", "size": 540}
### File: examples/button-title.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; const map = new Map({ layers: [ new TileLayer({ source: new OSM(), }), ], target: 'map', view: n...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/button-title.js", "license": "bsd-2-clause", "size": 534}
### File: examples/canvas-gradient-pattern.html --- layout: example.html title: Styling feature with CanvasGradient or CanvasPattern shortdesc: Example showing the countries vector layer styled with patterns and gradients. docs: > This example creates a [`CanvasPattern`](https://developer.mozilla.org/en-US/docs/Web/A...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/canvas-gradient-pattern.html", "license": "bsd-2-clause", "size": 795}
### File: examples/canvas-gradient-pattern.js import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import VectorLayer from '../src/ol/layer/Vector.js'; import VectorSource from '../src/ol/source/Vector.js'; import View from '../src/ol/View.js'; import {DEVICE_PIXEL_RATIO} from '../src/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/canvas-gradient-pattern.js", "license": "bsd-2-clause", "size": 2751}
### File: examples/canvas-tiles.html --- layout: example.html title: Canvas Tiles shortdesc: Renders tiles with coordinates for debugging. docs: > The black grid tiles are generated on the client with an HTML5 canvas. The displayed tile coordinates are the XYZ tile coordinates. tags: "layers, openstreetmap, canvas"...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/canvas-tiles.html", "license": "bsd-2-clause", "size": 321}
### File: examples/canvas-tiles.js import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {OSM, TileDebug} from '../src/ol/source.js'; const map = new Map({ layers: [ new TileLayer({ source: new OSM(), }), new TileLayer({ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/canvas-tiles.js", "license": "bsd-2-clause", "size": 406}
### File: examples/cartodb.html --- layout: example.html title: CartoDB source example shortdesc: Example of a cartodb map. docs: > A simple example with an anonymous cartodb map tags: "simple, openstreetmap, attribution" --- <div class="row-fluid"> <div class="span12"> <div id="map" class="map"></div> <div...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/cartodb.html", "license": "bsd-2-clause", "size": 746}
### File: examples/cartodb.js import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {CartoDB, OSM} from '../src/ol/source.js'; const mapConfig = { 'layers': [ { 'type': 'cartodb', 'options': { 'cartocss_version': '2.1...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/cartodb.js", "license": "bsd-2-clause", "size": 1028}
### File: examples/center.css .mapcontainer { position: relative; margin-bottom: 20px; } .map { width: 1000px; height: 600px; } div.ol-zoom { top: 178px; left: 158px; } div.ol-rotate { top: 178px; right: 58px; } .map div.ol-attribution { bottom: 30px; right: 50px; } .padding-top { position: absolu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/center.css", "license": "bsd-2-clause", "size": 936}
### File: examples/center.html --- layout: example.html title: Advanced View Positioning shortdesc: This example demonstrates how a map's view can be adjusted so a geometry or coordinate is positioned at a specific pixel location. docs: > This example demonstrates how a map's view can be adjusted so a geometry or c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/center.html", "license": "bsd-2-clause", "size": 1236}
### File: examples/center.js import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/center.js", "license": "bsd-2-clause", "size": 2076}
### File: examples/chaikin.html --- layout: example.html title: Smoothing lines using Chaikins algorithm shortdesc: This uses Chaikins algorithm to smooth drawn lines. docs: > This example uses the npm package [`chaikin-smooth`](https://www.npmjs.com/package/chaikin-smooth) which implements [Chaikins algorithm](htt...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/chaikin.html", "license": "bsd-2-clause", "size": 921}
### File: examples/chaikin.js import Draw from '../src/ol/interaction/Draw.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; import smooth from 'cha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/chaikin.js", "license": "bsd-2-clause", "size": 1370}
### File: examples/cluster.html --- layout: example.html title: Clustered Features shortdesc: Example of using ol/source/Cluster. docs: > This example shows how to do clustering on point features. tags: "cluster, vector" --- <div id="map" class="map"></div> <form> <label>cluster distance</label> <input id="distan...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/cluster.html", "license": "bsd-2-clause", "size": 353}
### File: examples/cluster.js import Feature from '../src/ol/Feature.js'; import Map from '../src/ol/Map.js'; import Point from '../src/ol/geom/Point.js'; import View from '../src/ol/View.js'; import { Circle as CircleStyle, Fill, Stroke, Style, Text, } from '../src/ol/style.js'; import {Cluster, OSM, Vector ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/cluster.js", "license": "bsd-2-clause", "size": 1838}
### File: examples/color-manipulation.css table.controls td { text-align: center; padding: 2px 5px; min-width: 60px; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/color-manipulation.css", "license": "bsd-2-clause", "size": 83}
### File: examples/color-manipulation.html --- layout: example.html title: Color Manipulation shortdesc: Demonstrates color manipulation with a raster source. docs: > A raster source allows arbitrary manipulation of pixel values. In this example, RGB values on the input tile source are adjusted in a pixel-wise opera...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/color-manipulation.html", "license": "bsd-2-clause", "size": 1101}
### File: examples/color-manipulation.js import ImageLayer from '../src/ol/layer/Image.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {Raster as RasterSource, Stamen} from '../src/ol/source.js'; /** * Color manipulation functions below are adapted from * https://github.com/d3/d...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/color-manipulation.js", "license": "bsd-2-clause", "size": 3776}
### File: examples/custom-controls.css .rotate-north { top: 65px; left: .5em; } .ol-touch .rotate-north { top: 80px; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/custom-controls.css", "license": "bsd-2-clause", "size": 86}
### File: examples/custom-controls.html --- layout: example.html title: Custom Controls shortdesc: Shows how to create custom controls. docs: > This example creates a "rotate to north" button. tags: "custom, control" --- <div id="map" class="map"></div>
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/custom-controls.html", "license": "bsd-2-clause", "size": 216}
### File: examples/custom-controls.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {Control, defaults as defaultControls} from '../src/ol/control.js'; // // Define rotate to north control. //...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/custom-controls.js", "license": "bsd-2-clause", "size": 1241}
### File: examples/custom-interactions.html --- layout: example.html title: Custom Interactions shortdesc: Example of a custom interaction. docs: > This example demonstrates creating a custom interaction by subclassing `ol/interaction/Pointer`. Note that the built in interaction `ol/interaction/Translate` might be ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/custom-interactions.html", "license": "bsd-2-clause", "size": 583}
### File: examples/custom-interactions.js import Feature from '../src/ol/Feature.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {Fill, Icon, Stroke, Style} from '../src/ol/style.js'; import {LineString, Point, Polygon} from '../src/ol/geom.js'; import { Pointer as PointerInterac...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/custom-interactions.js", "license": "bsd-2-clause", "size": 4096}
### File: examples/d3.css path.boundary { fill: none; stroke: #777; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/d3.css", "license": "bsd-2-clause", "size": 48}
### File: examples/d3.html --- layout: example.html title: d3 Integration shortdesc: Example of using OpenLayers and d3 together. docs: > The example loads TopoJSON geometries and uses d3 (<code>d3.geo.path</code>) to render these geometries to a SVG element. tags: "d3" resources: - https://unpkg.com/d3@5.9.2/dist/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/d3.html", "license": "bsd-2-clause", "size": 390}
### File: examples/device-orientation.html --- layout: example.html title: Device Orientation shortdesc: Listen to DeviceOrientation events. docs: > This example shows how to track changes in device orientation. [gyronorm.js](https://github.com/dorukeker/gyronorm.js) library is used to access and normalize the ev...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/device-orientation.html", "license": "bsd-2-clause", "size": 590}
### File: examples/device-orientation.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {toRadians} from '../src/ol/math.js'; const view = new View({ center: [0, 0], zoom: 2, }); const map ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/device-orientation.js", "license": "bsd-2-clause", "size": 1018}
### File: examples/disable-image-smoothing.css @media (min-width: 800px) { .wrapper { display: flex; } .half { padding: 0 10px; width: 50%; float: left; } } #opacity { display: inline-block; width: 150px; vertical-align: text-bottom; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/disable-image-smoothing.css", "license": "bsd-2-clause", "size": 219}
### File: examples/disable-image-smoothing.html --- layout: example.html title: Disable Image Smoothing shortdesc: Example of disabling image smoothing docs: > Example of disabling image smoothing when using raster DEM (digital elevation model) data. The <code>imageSmoothing: false</code> setting is used to disable...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/disable-image-smoothing.html", "license": "bsd-2-clause", "size": 1433}
### File: examples/disable-image-smoothing.js import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import XYZ from '../src/ol/source/XYZ.js'; const key = 'get_your_own_D6rA4zTHduk6KOKTXzGB'; const attributions = '<a href="https://www.maptiler.com/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/disable-image-smoothing.js", "license": "bsd-2-clause", "size": 3066}
### File: examples/drag-and-drop-image-vector.html --- layout: example.html title: Drag-and-Drop Image Vector shortdesc: Example of using the drag-and-drop interaction with image vector rendering. docs: > Example of using the drag-and-drop interaction with an `ol/layer/VectorImage` layer. Drag and drop GPX, GeoJSON, ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-and-drop-image-vector.html", "license": "bsd-2-clause", "size": 637}
### File: examples/drag-and-drop-image-vector.js import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import { DragAndDrop, defaults as defaultInteractions, } from '../src/ol/interaction.js'; import {GPX, GeoJSON, IGC, KML, TopoJSON} from '../src/ol/format.js'; import { Tile as TileLayer, V...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-and-drop-image-vector.js", "license": "bsd-2-clause", "size": 2169}
### File: examples/drag-and-drop.html --- layout: example.html title: Drag-and-Drop shortdesc: Example of using the drag-and-drop interaction. docs: > Example of using the drag-and-drop interaction. Drag and drop GPX, GeoJSON, IGC, KML, or TopoJSON files on to the map. There is no projection transform support, so thi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-and-drop.html", "license": "bsd-2-clause", "size": 585}
### File: examples/drag-and-drop.js import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import { DragAndDrop, defaults as defaultInteractions, } from '../src/ol/interaction.js'; import {GPX, GeoJSON, IGC, KML, TopoJSON} from '../src/ol/format.js'; import {Tile as TileLayer, Vector as VectorLay...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-and-drop.js", "license": "bsd-2-clause", "size": 2147}
### File: examples/drag-rotate-and-zoom.html --- layout: example.html title: Drag, Rotate, and Zoom shortdesc: A single interaction to drag, rotate, and zoom. docs: > <p><code>Shift+Drag</code> to rotate and zoom the map around its center.</p> tags: "drag, rotate, zoom, interaction" --- <div id="map" class="map"></di...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-rotate-and-zoom.html", "license": "bsd-2-clause", "size": 278}
### File: examples/drag-rotate-and-zoom.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import { DragRotateAndZoom, defaults as defaultInteractions, } from '../src/ol/interaction.js'; const map ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/drag-rotate-and-zoom.js", "license": "bsd-2-clause", "size": 511}
### File: examples/draw-and-modify-features.html --- layout: example.html title: Draw and Modify Features shortdesc: Example of using the ol/interaction/Draw interaction together with the ol/interaction/Modify interaction. docs: > Example of using the ol/interaction/Draw interaction together with the ol/interaction/M...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-and-modify-features.html", "license": "bsd-2-clause", "size": 664}
### File: examples/draw-and-modify-features.js import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js'; import {Draw, Modify, Snap} from '../src/ol/interaction.js'; import {OSM, Vector as VectorSource} from '../src/ol/source...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-and-modify-features.js", "license": "bsd-2-clause", "size": 1486}
### File: examples/draw-features.html --- layout: example.html title: Draw Features shortdesc: Example of using the ol/interaction/Draw interaction. docs: > Example of using the Draw interaction. Select a geometry type from the dropdown above to start drawing. To finish drawing, click the last point. To activate ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-features.html", "license": "bsd-2-clause", "size": 756}
### File: examples/draw-features.js import Draw from '../src/ol/interaction/Draw.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; const raster = ne...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-features.js", "license": "bsd-2-clause", "size": 1021}
### File: examples/draw-freehand.html --- layout: example.html title: Freehand Drawing shortdesc: Example using the ol/interaction/Draw interaction in freehand mode. docs: > This example demonstrates the `ol/interaction/Draw` in freehand mode. During freehand drawing, points are added while dragging. Set `freehan...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-freehand.html", "license": "bsd-2-clause", "size": 873}
### File: examples/draw-freehand.js import Draw from '../src/ol/interaction/Draw.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; const raster = ne...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-freehand.js", "license": "bsd-2-clause", "size": 1043}
### File: examples/draw-shapes.html --- layout: example.html title: Draw Shapes shortdesc: Using the ol/interaction/Draw to create regular shapes docs: > This demonstrates the use of the `geometryFunction` option for the `ol/interaction/Draw`. Select a shape type from the dropdown above to start drawing. To activ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-shapes.html", "license": "bsd-2-clause", "size": 1118}
### File: examples/draw-shapes.js import Draw, { createBox, createRegularPolygon, } from '../src/ol/interaction/Draw.js'; import Map from '../src/ol/Map.js'; import Polygon from '../src/ol/geom/Polygon.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/draw-shapes.js", "license": "bsd-2-clause", "size": 2431}
### File: examples/dynamic-data.html --- layout: example.html title: Dynamic Data shortdesc: Example of dynamic data. docs: > Example of dynamic data. tags: "dynamic-data" --- <div id="map" class="map"></div>
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/dynamic-data.html", "license": "bsd-2-clause", "size": 174}
### File: examples/dynamic-data.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import {Circle as CircleStyle, Fill, Stroke, Style} from '../src/ol/style.js'; import {MultiPoint, Point} from '../src/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/dynamic-data.js", "license": "bsd-2-clause", "size": 1942}
### File: examples/earthquake-clusters.html --- layout: example.html title: Earthquake Clusters shortdesc: Demonstrates the use of style geometries to render source features of a cluster. docs: > <p>This example parses a KML file and renders the features as clusters on a vector layer. The styling in this example is ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/earthquake-clusters.html", "license": "bsd-2-clause", "size": 796}
### File: examples/earthquake-clusters.js import KML from '../src/ol/format/KML.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import { Circle as CircleStyle, Fill, RegularShape, Stroke, Style, Text, } from '../src/ol/style.js'; import {Cluster, Stamen, Vector as VectorSource...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/earthquake-clusters.js", "license": "bsd-2-clause", "size": 4106}
### File: examples/earthquake-custom-symbol.html --- layout: example.html title: Earthquakes with custom symbols shortdesc: Demonstrates the use of `toContext` to create custom icon symbols. docs: > This example parses a KML file and renders the features as a vector layer. The layer is given a <code>style</code> tha...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/earthquake-custom-symbol.html", "license": "bsd-2-clause", "size": 453}
### File: examples/earthquake-custom-symbol.js import KML from '../src/ol/format/KML.js'; import Map from '../src/ol/Map.js'; import Polygon from '../src/ol/geom/Polygon.js'; import Stamen from '../src/ol/source/Stamen.js'; import VectorSource from '../src/ol/source/Vector.js'; import View from '../src/ol/View.js'; imp...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/earthquake-custom-symbol.js", "license": "bsd-2-clause", "size": 2182}
### File: examples/edit-geographic.html --- layout: example.html title: Geographic Editing shortdesc: Editing geometries with geographic coordinates. docs: > Calling the <code>useGeographic</code> function in the <code>'ol/proj'</code> module makes it so the map view uses geographic coordinates (even if the view pr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/edit-geographic.html", "license": "bsd-2-clause", "size": 526}
### File: examples/edit-geographic.js import GeoJSON from '../src/ol/format/GeoJSON.js'; import {Draw, Modify, Select, Snap} from '../src/ol/interaction.js'; import {Map, View} from '../src/ol/index.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} f...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/edit-geographic.js", "license": "bsd-2-clause", "size": 1534}
### File: examples/epsg-4326.html --- layout: example.html title: EPSG:4326 shortdesc: Example of a map in EPSG:4326. docs: > This example shows how to create a map in EPSG:4326. tags: "epsg4326" --- <div id="map" class="map"></div>
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/epsg-4326.html", "license": "bsd-2-clause", "size": 201}
### File: examples/epsg-4326.js import Map from '../src/ol/Map.js'; import TileLayer from '../src/ol/layer/Tile.js'; import TileWMS from '../src/ol/source/TileWMS.js'; import View from '../src/ol/View.js'; import {ScaleLine, defaults as defaultControls} from '../src/ol/control.js'; const layers = [ new TileLayer({ ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/epsg-4326.js", "license": "bsd-2-clause", "size": 715}
### File: examples/es2015-custom-element.html --- layout: example.html title: Custom map element shortdesc: Example of a custom element with a map. docs: > The example creates and registers a custom element, `ol-map`, which contains a simple map. **Note:** Only works in browsers that supports `ShadowRoot`. tags: "es2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/es2015-custom-element.html", "license": "bsd-2-clause", "size": 365}
### File: examples/es2015-custom-element.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; class OLComponent extends HTMLElement { constructor() { super(); this.shadow = this.attachShadow({m...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/es2015-custom-element.js", "license": "bsd-2-clause", "size": 1040}
### File: examples/export-map.html --- layout: example.html title: Map Export shortdesc: Example of exporting a map as a PNG image. docs: > Example of exporting a map as a PNG image. tags: "export, png, openstreetmap" --- <div id="map" class="map"></div> <a id="export-png" class="btn btn-default"><i class="fa fa-down...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/export-map.html", "license": "bsd-2-clause", "size": 360}
### File: examples/export-map.js import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; const map = new Map...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/export-map.js", "license": "bsd-2-clause", "size": 2049}
### File: examples/export-pdf.css .map { max-width: 566px; }
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CSS", "repo_name": "minhanghuang/OpenLayers", "path": "examples/export-pdf.css", "license": "bsd-2-clause", "size": 29}
### File: examples/export-pdf.html --- layout: example.html title: Export PDF example shortdesc: Example of exporting a map as a PDF. docs: > Example of exporting a map as a PDF using the <a href="https://github.com/MrRio/jsPDF" target="_blank">jsPDF</a> library. tags: "export, pdf, openstreetmap" resources: - http...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/export-pdf.html", "license": "bsd-2-clause", "size": 1020}
### File: examples/export-pdf.js import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import WKT from '../src/ol/format/WKT.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLayer, Vector as VectorLayer} from '../src/ol/layer.js'; const raster = new TileLaye...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/export-pdf.js", "license": "bsd-2-clause", "size": 3280}
### File: examples/extent-constrained.html --- layout: example.html title: Constrained Extent shortdesc: Example of a view with a constrained extent. docs: > This map has a view that is constrained in an extent. This is done using the `extent` view option. Please note that specifying `constrainOnlyCenter: true` woul...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/extent-constrained.html", "license": "bsd-2-clause", "size": 412}
### File: examples/extent-constrained.js import Map from '../src/ol/Map.js'; import OSM from '../src/ol/source/OSM.js'; import TileLayer from '../src/ol/layer/Tile.js'; import View from '../src/ol/View.js'; import ZoomSlider from '../src/ol/control/ZoomSlider.js'; import {defaults as defaultControls} from '../src/ol/co...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/extent-constrained.js", "license": "bsd-2-clause", "size": 655}
### File: examples/extent-interaction.html --- layout: example.html title: Extent Interaction shortdesc: Using an Extent interaction to draw an extent. docs: > <p>This example shows how to use an <code>Extent</code> interaction to draw a modifiable extent.</p> <p>Use <code>Shift+Drag</code> to draw an extent. ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/OpenLayers", "path": "examples/extent-interaction.html", "license": "bsd-2-clause", "size": 484}
### File: examples/extent-interaction.js import ExtentInteraction from '../src/ol/interaction/Extent.js'; import GeoJSON from '../src/ol/format/GeoJSON.js'; import Map from '../src/ol/Map.js'; import View from '../src/ol/View.js'; import {OSM, Vector as VectorSource} from '../src/ol/source.js'; import {Tile as TileLaye...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/OpenLayers", "path": "examples/extent-interaction.js", "license": "bsd-2-clause", "size": 1043}