User:Susannaanas/karttakokokeita

 { "type": "ExternalData", "properties": { "stroke": "#666", "stroke-opacity": 1, "stroke-width": 0.4 }, "service": "geoshape", "query": "SELECT ?id (SAMPLE(?img) AS ?img) (SAMPLE(?fill) as ?fill) (CONCAT(' ', ?stateLabel, ) AS ?title) (CONCAT() AS ?description) WHERE { ?id wdt:P31 wd:Q15715406.  OPTIONAL { ?id wdt:P1082 ?population . }  BIND(if(?population >= 15000, '#dd8888', if(?population >= 10000, '#ddb388', if(?population >= 5000, '#dddd88', if(?population >= 3000, '#9dde87', if(?population >= 1000, '#9be4bf', if(?population >= 0, '#afe9e9', '#a6a6a6')))))) as ?fill)  SERVICE wikibase:label {    bd:serviceParam wikibase:language 'fi'.    ?id rdfs:label ?stateLabel.  }  OPTIONAL { ?id wdt:P18 ?img. }  ?link schema:about ?id.  ?link schema:isPartOf . } GROUP BY ?id ?stateLabel ?link" }

 { "type": "ExternalData", "service": "geoshape", "ids": "Q18660592" }