[Geojson] Adding a style to a simple geojson file

Wael Tarhouni waelinsat at gmail.com
Thu Mar 28 09:30:25 PDT 2013


Anybody here?

2013/3/28 Wael Tarhouni <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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20130328/f76fccbd/attachment.htm>


More information about the GeoJSON mailing list