[Geojson] Adding a style to a simple geojson file
Wael Tarhouni
waelinsat at gmail.com
Thu Mar 28 07:24:14 PDT 2013
Hi all;
I'm trying to add a style to a geojson layer which is composed by a simple
multipolygon but it can't be applied...
This is the code:
*{ "type": "MultiPolygon",
"coordinates": [
[[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0,
2.0]]],
[[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]],
[[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]]
],
"style":{
//all SVG styles allowed
"fill":"red",
"stroke-width":"3",
"fill-opacity":0.6
}
}*
regards;
--
Wael Tarhouni
Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT
(+216) 22 239 551
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20130328/06c6f7b6/attachment.htm>
More information about the GeoJSON
mailing list