UNPKG

iovmap

Version:
61 lines (59 loc) 1.87 kB
/* * Copyright (C) 2017 dehai.site All Rights Reserved. * * @author level <dehai168@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import ok from "./assets/ok.png"; import cancel from "./assets/cancel.png"; import redIcon from "./assets/redicon.png"; import markerIconSrc from "./assets/polygon.png"; import dragIconSrc from "./assets/drag.png"; export class Config { constructor() { // see https://element.eleme.cn/#/zh-CN/component/color const basic_brand = "#409EFF"; const basic_success = "#67C23A"; const basic_warning = "#E6A23C"; const basic_danger = "#F56C6C"; const basic_info = "#909399"; this.OK_ICON = L.icon({ iconUrl: ok, iconSize: [16, 16], iconAnchor: [-24, 8], }); this.CANEL_ICON = L.icon({ iconUrl: cancel, iconSize: [16, 16], iconAnchor: [-8, 8], }); this.MARKER_ICON = L.icon({ iconUrl: redIcon, iconSize: [32, 32], iconAnchor: [16, 32], }); this.POINT_ICON = L.icon({ iconUrl: markerIconSrc, iconSize: [12, 12], iconAnchor: [6, 6], }); this.DRAGPOINT_ICON = L.icon({ iconUrl: dragIconSrc, iconSize: [18, 18], iconAnchor: [9, 9], }); this.BORDER_COLOR = basic_brand; this.BORDER_WEIGHT = 2; } }