Styling

Prompts for styling maps, layers, and geospatial visualizations

1. Color by Category

Apply distinct colors to features based on a categorical field like type or status.

Style the layer so each category in the [field_name] column has a unique color. Use a professional color palette that's easy to distinguish.

2. Gradient Color Ramp

Create a smooth color gradient based on numeric values.

Apply a color gradient to the layer based on [numeric_field]. Use a gradient from blue (low values) to red (high values).

3. Size by Value

Scale point or symbol sizes based on a numeric attribute.

Size the points proportionally based on [numeric_field]. Larger values should have bigger markers. Keep the minimum size readable and maximum size reasonable for the map scale.

4. Custom Icons

Replace default markers with custom icons or symbols.

Replace the default markers with [icon_type] icons. Use different icons for each category in [category_field]. Make sure icons are clearly visible at all zoom levels.

5. Label Styling

Add and style labels for map features.

Add labels showing [field_name] for each feature. Use a clean sans-serif font, add a white halo for readability, and position labels to avoid overlapping. Hide labels at lower zoom levels.

6. Opacity and Transparency

Control layer transparency for better visualization.

Set the layer opacity to show underlying features. Use [percentage]% fill opacity and keep stroke at full opacity. This should help see overlapping features.

7. Cluster Styling

Style clustered points with counts and colors.

Enable clustering for this point layer. Show the count inside each cluster, size clusters by point count, and use a color that stands out.