http://blog.cartodb.com/full-editing-of-infowindow-html/
http://mustache.github.io/mustache.5.html
http://www.postgresql.org/docs/9.3/static/functions-conditional.html
<!doctype><html><head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Odyssey.js Scroll</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="icon" type="image/x-icon" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png"> | |
<link rel="icon" type="image/png" href="http://cartodb.github.io/odyssey.js/sandbox/favicon.png"> |
SELECT row_to_json(fc) | |
FROM ( SELECT 'FeatureCollection' As type, array_to_json(array_agg(f)) As features | |
FROM (SELECT 'Feature' As type | |
, ST_AsGeoJSON(lg.geom, 4)::json As geometry | |
, row_to_json((SELECT l FROM (SELECT fylkesnr, navn) As l | |
)) As properties | |
FROM sandbox.fylker As lg ) As f ) As fc; |
SELECT *, | |
(select string_agg(value->>'tekstfelt',', ') a from | |
json_array_elements(tekstfelt::json) m) tekstfelt_streng | |
FROM mellomlag m |
http://www.webatlas.no/mediakart/testbuild_v2/embed/kart.htm |
-- http://overpass-turbo.eu/ | |
-- https://gist.github.com/atlefren/60234fb68d8299136c05 | |
-- http://www.norkart.no/produkt/datavarehus/ | |
-- toalett og kommunekart | |
SELECT | |
f.cartodb_id, | |
f.the_geom_webmercator, | |
f.the_geom, |
Ressurser
Klippe raster til et polygon for visning | |
* Du har en WMS | |
** Eksporter det område du vil ha som geotiff | |
*** Save as image (rimelig ok oppløsning) | |
*** Print composer (~300dpi) | |
** Last inn igjen og sett projeksjonen eksplisitt (raster-projection-assign projection) | |
* Finn frem favorittpolygonet ditt | |
** Eller tegn på frihånd et scratch layer |
Introduksjon | |
------- | |
* NORKART | |
* https://vimeo.com/92617228 | |
* Webinar: | |
* http://www.norkart.no/kurs/gratis-webinar-laer-alt-du-vil-vite-om-fme-og-open-source-27/ | |
* http://www.norkart.no/kurs/gratis-webinar-cartodb-og-mediakart-3/ | |
* Sommerjobb i Trondheim | |
* Utvikler - JS, HTML, PostGIS, linux/devop |
var globalCartoDB_SQL_Layer = null; | |
$("#btn_runquery").click(function() { | |
var query = $("#sqlcommand").text(); | |
var cartocss = $("#cartocss").text(); | |
runSQL_API(query); | |
updatemap(query, cartocss); | |
}) | |
function createMap() { |