@@ -23592,37 +23592,37 @@
2359223592/* 201 */
2359323593/***/ function(module, exports, __webpack_require__) {
2359423594
23595- __webpack_require__(2);
23596-
23597- L.supermap.Graphic = L.Class.extend({
23598-
23599- initialize: function (options) {
23600- options = options || {};
23601- this._latlng = L.latLng(options._latlng.lat, options._latlng.lng);
23602- this._canvas = options._canvas;
23603- },
23604-
23605- setLatlng: function (latlng) {
23606- this._latlng = latlng;
23607- },
23608-
23609- setCanvas: function (canvas) {
23610- this._canvas = canvas;
23611- },
23612-
23613- getLatLng: function () {
23614- return this._latlng;
23615- },
23616-
23617- getCanvas: function () {
23618- return this._canvas;
23619- }
23620-
23621- });
23622-
23623- L.supermap.graphic = function (options) {
23624- return new L.supermap.Graphic(options);
23625- };
23595+ __webpack_require__(2);
23596+
23597+ L.supermap.Graphic = L.Class.extend({
23598+
23599+ initialize: function (options) {
23600+ options = options || {};
23601+ this._latlng = L.latLng(options._latlng.lat, options._latlng.lng);
23602+ this._canvas = options._canvas;
23603+ },
23604+
23605+ setLatlng: function (latlng) {
23606+ this._latlng = latlng;
23607+ },
23608+
23609+ setCanvas: function (canvas) {
23610+ this._canvas = canvas;
23611+ },
23612+
23613+ getLatLng: function () {
23614+ return this._latlng;
23615+ },
23616+
23617+ getCanvas: function () {
23618+ return this._canvas;
23619+ }
23620+
23621+ });
23622+
23623+ L.supermap.graphic = function (options) {
23624+ return new L.supermap.Graphic(options);
23625+ };
2362623626
2362723627
2362823628/***/ },
@@ -23733,66 +23733,66 @@
2373323733/* 203 */
2373423734/***/ function(module, exports, __webpack_require__) {
2373523735
23736- __webpack_require__(2);
23737-
23738- L.supermap.CircleStyle = L.Class.extend({
23739-
23740- options: {
23741- stroke: true,
23742- color: '#3388ff',
23743- weight: 1,
23744- opacity: 1,
23745- lineCap: 'round',
23746- lineJoin: 'round',
23747- fill: false,
23748- fillColor: null,
23749- fillOpacity: 0.2,
23750- fillRule: 'evenodd',
23751- radius: 3
23752- },
23753-
23754- initialize: function (options) {
23755- options = options || {};
23756- L.Util.setOptions(this, options);
23757- this._canvas = document.createElement('canvas');
23758- this._canvas.width = 2 * (this.options.radius + this.options.weight);
23759- this._canvas.height = 2 * (this.options.radius + this.options.weight);
23760- this._ctx = this._canvas.getContext('2d');
23761- this._initStyle();
23762- },
23763-
23764- getCanvas: function () {
23765- return this._canvas;
23766- },
23767-
23768- _initStyle: function () {
23769- this._ctx.beginPath();
23770- this._ctx.arc(this._canvas.width / 2, this._canvas.height / 2, this.options.radius, 0, Math.PI * 2);
23771- this._fillStroke();
23772- },
23773-
23774- _fillStroke: function () {
23775- var options = this.options;
23776- if (options.fill) {
23777- this._ctx.globalAlpha = options.fillOpacity;
23778- this._ctx.fillStyle = options.fillColor || options.color;
23779- this._ctx.fill(options.fillRule || 'evenodd');
23780- }
23781- if (options.stroke && options.weight !== 0) {
23782- this._ctx.globalAlpha = options.opacity;
23783- this._ctx.lineWidth = options.weight;
23784- this._ctx.strokeStyle = options.color;
23785- this._ctx.lineCap = options.lineCap;
23786- this._ctx.lineJoin = options.lineJoin;
23787- this._ctx.stroke();
23788- }
23789- }
23790-
23791- });
23792-
23793- L.supermap.circleStyle = function (options) {
23794- return new L.supermap.CircleStyle(options);
23795- };
23736+ __webpack_require__(2);
23737+
23738+ L.supermap.CircleStyle = L.Class.extend({
23739+
23740+ options: {
23741+ stroke: true,
23742+ color: '#3388ff',
23743+ weight: 1,
23744+ opacity: 1,
23745+ lineCap: 'round',
23746+ lineJoin: 'round',
23747+ fill: false,
23748+ fillColor: null,
23749+ fillOpacity: 0.2,
23750+ fillRule: 'evenodd',
23751+ radius: 3
23752+ },
23753+
23754+ initialize: function (options) {
23755+ options = options || {};
23756+ L.Util.setOptions(this, options);
23757+ this._canvas = document.createElement('canvas');
23758+ this._canvas.width = 2 * (this.options.radius + this.options.weight);
23759+ this._canvas.height = 2 * (this.options.radius + this.options.weight);
23760+ this._ctx = this._canvas.getContext('2d');
23761+ this._initStyle();
23762+ },
23763+
23764+ getCanvas: function () {
23765+ return this._canvas;
23766+ },
23767+
23768+ _initStyle: function () {
23769+ this._ctx.beginPath();
23770+ this._ctx.arc(this._canvas.width / 2, this._canvas.height / 2, this.options.radius, 0, Math.PI * 2);
23771+ this._fillStroke();
23772+ },
23773+
23774+ _fillStroke: function () {
23775+ var options = this.options;
23776+ if (options.fill) {
23777+ this._ctx.globalAlpha = options.fillOpacity;
23778+ this._ctx.fillStyle = options.fillColor || options.color;
23779+ this._ctx.fill(options.fillRule || 'evenodd');
23780+ }
23781+ if (options.stroke && options.weight !== 0) {
23782+ this._ctx.globalAlpha = options.opacity;
23783+ this._ctx.lineWidth = options.weight;
23784+ this._ctx.strokeStyle = options.color;
23785+ this._ctx.lineCap = options.lineCap;
23786+ this._ctx.lineJoin = options.lineJoin;
23787+ this._ctx.stroke();
23788+ }
23789+ }
23790+
23791+ });
23792+
23793+ L.supermap.circleStyle = function (options) {
23794+ return new L.supermap.CircleStyle(options);
23795+ };
2379623796
2379723797
2379823798/***/ }
0 commit comments