Skip to main content

earthengine-vscode-map

Python bridge to the interactive map panel of the Earth Engine VS Code extension.

The extension embeds a Leaflet map with a Python bridge server. This package exposes a Map module that mirrors the Earth Engine Code Editor API (Map.addLayer, Map.centerObject, Map.setCenter, Map.clear) and forwards the calls to that bridge. All Earth Engine graphs are serialised locally and evaluated by the extension host — the Python side never resolves tile URLs.

Usage

import ee
from vscee import Map

ee.Initialize(project="my-project")

image = ee.Image("COPERNICUS/S2_SR/20200101T100319_20200101T100321_T32TQM")
Map.addLayer(image, {"bands": ["B4", "B3", "B2"], "min": 0, "max": 3000}, "RGB")
Map.centerObject(image, zoom=10)

For a single-band palette with discrete intervals, pass ordered boundaries in breaks. There must be one more boundary than colors; without breaks, palette remains a continuous gradient.

Map.addLayer(image, {
    "bands": ["B8"],
    "breaks": [0, 1000, 2000, 3000],
    "palette": ["#2b83ba", "#abdda4", "#d7191c"],
}, "Near Infrared")

For exact classes rather than intervals, use values with one palette color per distinct numeric value. Optional labels name the classes in the map legend. Pixels outside values are masked; min and max are not needed.

Map.addLayer(image, {
    "bands": ["classification"],
    "values": [0, 1, 2],
    "palette": ["#2b83ba", "#abdda4", "#d7191c"],
    "labels": ["Other", "Crop", "Water"],
}, "Crop Classification")

For a FeatureCollection, specify a property instead of bands. Class values may be numeric or strings, and features with unlisted values are not drawn. Vector palettes require six-digit hex RGB colors:

Map.addLayer(features, {
    "property": "classification",
    "values": [0, 1, 2],
    "palette": ["#2b83ba", "#abdda4", "#d7191c"],
    "labels": ["Other", "Crop", "Water"],
}, "Crop Classes")

Requirements

  • Python >=3.9

  • The Earth Engine VS Code extension installed and active

  • A valid ee.Initialize(project=...) call before any Map.* invocation

Install

From the repository root:

pip install -e python/

License

Apache License 2.0 — see LICENSE.

Metadata

Release files for vscee 0.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vscee 0.13.1
File Size Uploaded Provenance Actions
vscee-0.13.1.tar.gz 5.6 kB With provenance Details for vscee-0.13.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vscee 0.13.1
File Interpreter ABI Platform Actions
vscee-0.13.1-py3-none-any.whl Python 3 none any Details for vscee-0.13.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / vscee-0.13.1.tar.gz

Download URL vscee-0.13.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
28e6ab201ec9f8a88963d5c9851e0e7b4fdc6b129e9dbacd593b526cc37c2d40
BLAKE2b-256 checksum
How to use checksums
aade515ad4ab1d726a62fd131cd40e3f5daf90e1e610e54eb7a5003ec8ab0033
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / vscee-0.13.1-py3-none-any.whl

Download URL vscee-0.13.1-py3-none-any.whl
Size 5.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8adab3c4d058e7e9feff67d5ef8ba1e5eb0cf5a0a1213c32853cfcf21981c36
BLAKE2b-256 checksum
How to use checksums
0cb8b9fd7a5e9124856d7cc4f21b34a2b5d93de420d1e734638ac3cfa4b923fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for vscee 0.13.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for vscee-0.13.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page