maptalks / maptalks/maptalks.js

maptalks support ssr,but I don't run the examples

Open
#1,245 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
4.5k
Forks
511
Avg merge
3d 58m
Merged PRs (30d)
1

Description

const maptalks = require('maptalks');
//with node-canvas 2.0
const { createCanvas, Image } = require('canvas');

//load node adapters, source: https://github.com/maptalks/maptalks.node
require('maptalks.node');
//register node-canvas's Image as a global class
global.Image = Image;

const canvas = createCanvas(400, 300);
const map = new maptalks.Map(canvas, {
center : [0, 0],
zoom : 3,
baseLayer : new maptalks.TileLayer('base', {
'urlTemplate' : 'http://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png',
'subdomains' : ['a','b','c','d','e'],
})
});

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the supplied Node.js snippet with maptalks, node-canvas 2.0, and maptalks.node, then identify where the SSR example stops working. Confirm the expected server-side rendering behavior and document or implement the missing support so the example runs successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.