GNS-Science / solvis-graphql-api

solvis-graphql-api
GNU Affero General Public License v3.0
1 stars 0 forks source link

SOLVIS_GRAPHQL_API Feature: Geojson styling #5

Closed benjamineac closed 1 year ago

benjamineac commented 1 year ago

Want to be able to configure the styling options so the leaflet component can use the styling supplied by the geojson instead of providing its own. Done when:

chrisbc commented 1 year ago

@benjamineac example query below:

Notes:


query SOLVIS_various{
  SOLVIS_about
  SOLVIS_analyse_solution (
    input:{
      solution_id:"U2NhbGVkSW52ZXJzaW9uU29sdXRpb246MTIwNzIy"
        location_codes: ["WLG", "LVN"]
      radius_km: 100
      minimum_mag:5
      maximum_mag: 10
      minimum_rate:0.000001
      maximum_rate:1
      location_area_style: {
        stroke_color: "gold"
        stroke_width: 1
        stroke_opacity: 0.5
        fill_color:"gold"
        fill_opacity: 0.5
      } 
      fault_trace_style: {
        stroke_color: "silver"
        stroke_width: 3
        stroke_opacity:1      
      }      
    }) {
    analysis {
      solution_id
      location_geojson
      fault_sections_geojson
    }    
  }
}