maptalks / maptalks/maptalks.js
maptalks support ssr,but I don't run the examples
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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