[Qgis-user] GEOJSON Marker colours

Alex Mandel tech_dev at wildintellect.com
Fri Oct 30 07:44:50 PDT 2015


That said, there are some potential workarounds. If this is for a web
map you could 1. save the style to SLD, then reapply the SLD with your
web js code or 2. Save the style information into columns of your
attribute table and the use code to rextract those components to be
useful. The QGIS2leaf and QGIS2Web plugins have a little something like
that going on in them.

Enjoy,
Alex

On 10/30/2015 07:41 AM, David Fawcett wrote:
> Phil,
> 
> Both shapefile and GeoJSON are just data formats, and they don't encode any
> styling or marker information.  In QGIS, after you export to GeoJSON and
> add it to your project, you can copy the styling from the shapefile
> instance of that layer to your GeoJSON layer.
> 
> That styling will only exist in that project, not the data files.
> 
> David.
> 
> On Fri, Oct 30, 2015 at 1:11 AM, Phil (The Geek) Wyatt <
> phil at wyatt-family.com> wrote:
> 
>> Hi Folks,
>>
>>
>>
>> Can anyone give me any clues on how I can export from a shapefile to
>> GEOJSON and maintain my marker colours?
>>
>>
>>
>> Cheers - Phil




More information about the Qgis-user mailing list