Hi Lucy,
1. If you are still reading directly from a shapefile, it will be read-only so save-copy-as to a TAB file and open this in MapInfo
2. Change the 'base' colour of the objects in MapInfo (set the layer to be editable, select the records which meet your criteria, change the style. Repeat for your 2nd category with a different style etc). Save your table (edits).
3. On the map, select all the objects in the layer
4. Run the GELink tool, select Export Map Image or Current Selection, choose Export selected objects (KML) when asked
5. Select the output path, file name and any other settings required, press OK
The layer should open in Google Earth, using the colours from the MapInfo TAB file. Let us know if you need any extra info on the above steps.
Tim
------------------------------
Timothy Mashford
Knowledge Community Shared Account
Shelton CT
------------------------------
Original Message:
Sent: 08-14-2019 08:28
From: Lucy Corboy
Subject: KML/GeoJSON Colours
I have a TAB and Map from a Shapefile. There are two categorys of information within the TAB, and I would like to colour code these to show on the Map. I have been able to create 2 querys into one map to colour code these in MapInfo Pro. However, when exported as a KML and put into Google Earth these colours do not show - it is black and white. Similarly, when converted from KML to GeoJSON, the colours are also not there. There is a site where you can select each polygon and change the colour in a GeoJSON, however this is a very long process. I have tried changing the code in Visual Studio Code without success.
Can someone guide me in the right direction to be able to input colours, please?
Many thanks
------------------------------
Lucy
------------------------------