Skip to content

Instantly share code, notes, and snippets.

Uroš Preložnik uprel

Block or report user

Report or block uprel

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

How to calculate MaxResolution for WMTS given info in GetCapabilities

For using an arbitrary WMTS-server in OpenLayers you need two values:

  • The MaxResolution
  • A bounds object

Given a WMTS response with a TileMatrixSet defined as:

uprel / .gitignore
Created Mar 28, 2018 — forked from tschaub/.gitignore
OpenLayers + Webpack
View .gitignore
uprel / search_views.sql
Created Jan 6, 2018
Postgis example to enable WSGI search in EQWC
View search_views.sql
CREATE OR REPLACE VIEW public.search_pop_places AS
SELECT AS searchstring,
(pop_places.type::text || ' '::text) || AS displaytext,
'01_pop_places'::text AS search_category,
pop_places.geom AS the_geom,
st_geometrytype(pop_places.geom) AS geometry_type,
'pop_places'::text AS showlayer
FROM pop_places;
CREATE OR REPLACE VIEW public.search_airports AS
uprel / maptip.html
Created May 8, 2017
QGIS Layer Display Maptip
View maptip.html
<a target='_blank' href='[% country %]'>
<img src='[% lower(iso_cc) %].png' width='150'>
uprel / eu_demo.json
Last active Nov 19, 2018
Example of project settings for Extended QGIS Web Client. Features: search with project data with WMS standard using search panels and external services (MapBox) for geocoding, reverse geocoding and getting elevation data.
View eu_demo.json
"search": [{
"title": "Places",
"useWmsRequest": true,
"queryLayer": "pop_places",
"formItems": [{
"xtype": "textfield",
"name": "name",
"fieldLabel": "Name",
"allowBlank": true,
uprel / demo.html
Last active Apr 18, 2017
Leaflet multi map with sync plugin for showing MapQuest and MapBox tiles
View demo.html
<!doctype html>
<meta charset="utf-8">
<title>Leaflet Sync Demo</title>
<link rel="stylesheet" href="../leaflet/leaflet.css" />
<link rel="stylesheet" href="../leaflet/plugins/zoomdisplay/dist/leaflet.zoomdisplay.css" />
<style type="text/css">
html, body { width: 100%; height: 100%; margin: 0; }
You can’t perform that action at this time.