Skip to content

Instantly share code, notes, and snippets.

View riccardoklinger's full-sized avatar

Riccardo Klinger riccardoklinger

View GitHub Profile
define(["jquery"], function(jQuery) {
function BasicControl() {};
"use strict";
BasicControl.prototype.initialize = function(oControlHost, fnDoneInitializing, oDataStore) {
fnDoneInitializing();
}
BasicControl.prototype.draw = function(oControlHost) {
console.log('3. Draw')
/*
first Author:
Ed Gonzalez
adjusted by
riccardo.klinger@gmail.com/
Free for personal and commercial use under the CCA 3.0 license
I just ask for you give me credit for the code and tell your friends about it.
@riccardoklinger
riccardoklinger / index.html
Created January 8, 2021 14:27
DevLabs - Create a 2D map with a layer // source https://jsbin.com/takemum
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>DevLabs - Create a 2D map with a layer</title>
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
@riccardoklinger
riccardoklinger / article.md
Last active January 20, 2020 14:31
an article about GeoBerlin

GeoBerlin, the very spatial Meetup in Berlin

Once upon a time, there was a small room, two guys and a plan: plan an event where spatial enthusiasts, students, developers, sales persons, and everyone else interested in geography and geosciences can meet, discuss, present, share thoughts and problems. Six months later, the moment had com and we had the chance to take the organization of GeoBerlin in our own hands.

The Start of GeoBerlin

Back in 2015 Kathleen Danielson organized tze very first geo berlin meetup with 25 participants. Meeting in a pub, interesting talks followed every month. The number of members grew and the time had come to change the pub to a more professional location. WIth the take over of Uli from door2Door the Meetup had a new home at the Door2Door headquarter. The meetup was getting bigger and bigger but organization is quite challenging if you're just one player on the field. So the meetup fell asleep for quite a few month. Uli decided to hand over the organizaton to someone else.

@riccardoklinger
riccardoklinger / qgis.au3
Created December 23, 2019 21:13
an automated testing script for QGIS, German version
#include <AutoItConstants.au3> ; need this for the mouse clicks
#include <MsgBoxConstants.au3>
#include <WinAPIFiles.au3>
Run("C:\Program Files\QGIS 3.4\bin\qgis-ltr-bin-g7.exe") ; starting the program
Local $qgis = WinWaitActive("Unbenanntes Projekt - QGIS")
WinSetState ($qgis, "", @SW_MAXIMIZE) ; maximise the working window
Send("^+n"); ctrl Shift n for new geopackage Layer
WinWaitActive("Neuer GeoPackage-Layer") ; waiting for the window to appear
Send("{TAB 3}") ; Presses the DEL key 3 times
@riccardoklinger
riccardoklinger / article.md
Last active December 7, 2019 11:04
The future of QGIS2web: Exchange of ideas

qgis2web was downloaded 500'000 recently. As this is quite a milestone for a plugin which was started approx. 5 years ago by creating qgis2leaf and qgis-ol3 form different developers, it is time to look ahead.

TC: your part

Riccardo Klinger: A Plugin for the user and consumer

The use of maps as a form of knowledge transfer, illustration as well as a simple form of presenting an information has become incresingly popular in the past 10 years. Especially with the arrival of google maps and google earth, the questions "where?", "how far?" where even easier answered as befor. Furthermore, the technologies used by GIS and mapping experts became somehow "ubiquitious" as you can geocode, change projections, create buffers and many other things in a variety of software solutions now without even knowing what you're doing in detail.

My initial thought about qgis2leaf (one predecessor of qgis2web) was to bring several parts of a full blown GIS to the web user. So it startedt with exporting the map as it is and e

@riccardoklinger
riccardoklinger / olScriptStrings.py
Last active August 28, 2019 13:37
new Labels OL
from . import xmltodict
from qgis2web.olStyleScripts import getStrokeStyle
def measureControlScript():
measureControl = """
var measuring = false;
measureControl = function(opt_options) {
@riccardoklinger
riccardoklinger / projections.html
Last active May 17, 2019 06:05
Choose you projection
<!DOCTYPE html>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://d3js.org/d3.geo.projection.v0.min.js"></script>
<script src="http://d3js.org/topojson.v0.min.js"></script>
<style>
.background {
fill: #a4bac7;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.