GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 包体积太大了 · Issue #578 · SuperMap/iClient-JavaScript

包体积太大了 #578

New issue
Copy link
New issue
Copy link
Open
Open
包体积太大了#578
Copy link
Labels
stale

Description

@M76chao
M76chao
opened on Mar 6, 2026
Issue body actions
import Map from "ol/Map";
import View from "ol/View";
import TileLayer from "ol/layer/Tile";
import VectorLayer from "ol/layer/Vector";
import VectorSource from "ol/source/Vector";
import Cluster from "ol/source/Cluster";
import GeoJSON from "ol/format/GeoJSON";
import Feature from "ol/Feature";
import Polygon from "ol/geom/Polygon";
import Point from "ol/geom/Point";
import { Style, Stroke, Fill, Text, Icon, Circle } from "ol/style";
import "ol/ol.css";
import { TileSuperMapRest } from "@supermapgis/iclient-ol"; // 7M

我为了使用TileSuperMapRest 这一个方法就需要引入全量包,整整7M,我整个项目都没这么大

Activity

  1. songyumeng commented on Mar 6, 2026

    @songyumeng
    songyumeng
    on Mar 6, 2026
    Member
    More actions

    感谢您报的issue。

    如果你的打包环境里使用babel,可参考https://iclient.supermap.io/web/introduction/openlayersDevelop.html#Modules 引入@supermapgis/babel-plugin-import

    如果没有,请提供下使用的打包工具和配置,我们会尝试寻找优化方法。
    谢谢

  2. stale commented on Oct 31, 2026

    @stale
    staleBot
    on Oct 31, 2026 – with Stale
    More actions

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  3. stale
    added
    stale
    on Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.