Skip to content

Instantly share code, notes, and snippets.

View claustres's full-sized avatar
🏠
Working from home

Luc Claustres claustres

🏠
Working from home
View GitHub Profile
@claustres
claustres / service-events.md
Last active January 31, 2024 10:20 — forked from daffl/service-events.md
HTTP methods, service layer and real-time event mapping
HTTP method Service layer method Real-time event
GET /features features.find({}) -
GET /features?properties.type=building features.find({ query: { properties.type: building } }) -
GET /features/id features.get(id) -
POST /features features.create(body) features created
PUT /features/id features.update(id, body) features updated
PUT /features?properties.id=1 features.update(null, body, { query: { properties.id: 1 } }) features updated
PATCH /features/id features.patch(id, body) features patched
PATCH /features?properties.id=1 features.patch(null, body, { query: { properties.id: 1 } }) features patched
@claustres
claustres / index.html
Last active October 12, 2017 14:45 — forked from VictorVelarde/index.html
Leaflet.CanvasLayer.Field issue #8 - weacast (Custom JSON)
<!DOCTYPE html>
<html>
<head>
<title>Weacast ScalarField | Issue #8 with 1.3.3</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="stylesheet" href="//unpkg.com/[email protected]/dist/leaflet.css" />
<link href="https://fonts.googleapis.com/css?family=Roboto:100,400" rel="stylesheet">
<style>
@claustres
claustres / osm-bright-aeroway-labels.json
Last active September 25, 2017 12:54 — forked from anonymous/style.json
OSM Bright
{
"version": 8,
"name": "OSM Bright",
"metadata": {
"mapbox:type": "template",
"mapbox:groups": {
"1444849364238.8171": {
"collapsed": false,
"name": "Buildings"
},