[Geojson] Adding a style to a simple geojson file
Allan Doyle
afdoyle at MIT.EDU
Thu Mar 28 09:40:48 PDT 2013
Plenty of people, but this question looks like it's better asked in the forum/list for the mapping software you're using. There is no "layer" or "style" in GeoJSON.
Allan
On Mar 28, 2013, at 12:30 PM, Wael Tarhouni <waelinsat at gmail.com<mailto:waelinsat at gmail.com>>
wrote:
Anybody here?
2013/3/28 Wael Tarhouni <waelinsat at gmail.com<mailto:waelinsat at gmail.com>>
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
--
Wael Tarhouni
Ingénieur en Réseaux informatiques et Télécommunications de l'INSAT
(+216) 22 239 551
_______________________________________________
Geojson mailing list
Geojson at lists.geojson.org<mailto:Geojson at lists.geojson.org>
http://lists.geojson.org/listinfo.cgi/geojson-geojson.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20130328/c0a40757/attachment.htm>
More information about the GeoJSON
mailing list