question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

wizard to style migration

See original GitHub issue

DON’T EDIT THIS, CONTINUE AT THE WIKI PAGE

TODO: describe it

Previous format:

Reference of all of the available properties: https://github.com/CartoDB/cartodb/blob/master/lib/assets/javascripts/cartodb/table/menu_modules/carto_wizard_forms.js

New format:

  • Fill component:
    • Simple:
fill: {
  size: {
    fixed: 10
  },
  color: {
    fixed: '#FFF',
    opacity: 0.5
  },
  image: null
}
  • Complex:
## mapping

## style_property structure
```js
{
    type: TYPE
    aggregation: {
        ....
    }
    properties: {
        ...
    }
}

example:

{
  type: 'regions',
  aggregation: {
    aggr_dataset: 'adm0',
    aggr_value: {
      operation: 'sum',
      attribute: 'testing'
    }
  },
  properties: {
    fill: {
      'color': {
        fixed: '#000',
        opacity: 0.4
      }
    }
  }
}

mapping

style_property structure

{
    type: TYPE
    aggregation: {
        ....
    }
    properties: {
        ...
    }
}

example:

{
  type: 'regions',
  aggregation: {
    aggr_dataset: 'adm0',
    aggr_value: {
      operation: 'sum',
      attribute: 'testing'
    }
  },
  properties: {
    fill: {
      'color': {
        fixed: '#000',
        opacity: 0.4
      }
    }
  }
}

mapping Rules

polygon

{
 type: 'simple'
 properties: {
      color: {
          fixed: '...' // marker-fill or polygon-fill
      }
 }
}

intensity TBD

bubble

{
  type: 'simple',
  properties: {
      color: {
        range: [radius_min, radius_max]
        attribute: 'test', // property
        bins: 10, // it should be allways 10
        quantification: 'jenks', //qfunction
        opacity: 0.5 // marker-opacity
      }
  }
}

choropleth

{
  type: 'simple',
  properties: {
      color: {
        range: 'colorbrewer(Greens)', // transform color ramp  to color array, this are the ramps names https://github.com/CartoDB/cartodb/blob/master/lib/assets/javascripts/cartodb/table/menu_modules/carto_wizard_forms.js#L272, color ramps are here https://github.com/CartoDB/cartodb/blob/ebfb0e62bfdb6bd941408b4d2f0826b3195318fb/lib/assets/javascripts/cartodb/models/color_ramps.js
        attribute: 'test', // property
        bins: 6, // method, '3 buckets', '5 buckets' ...
        quantification: 'jenks', //qfunction
        opacity: 0.5 // marker-opacity or polygon-opacity
      }
  }
}

category

{
    type: 'simple'
    properties: {
    }
}

torque

{
    type: 'simple'
    properties: {
    }
}

** torque_cat **

{
    type: 'simple'
    properties: {
    }
}

** torque_heat **

{
    type: 'simple'
    properties: {
    }
}

** cluster ** no mapping

** density **

no mapping

Labels

if any text-* property is found there should be a labels entry in the style, the mapping is (old properties in the comment)

{
  type: 'simple',
  properties: {
      ...
      labels: {
          enabled: true,
          attribute: null, // text-name
          font: 'DejaVu Sans Book', // text-face-name
          fill: {
            'size': {
              fixed: 10 // text-size
            },
            'color': {
              fixed: '#000', // text-fill
              opacity: 1
            }
          },
          halo: {
            'size': {
              fixed: 1 // text-halo-radius
            },
            'color': {
              fixed: '#111', // text-halo-fill
              opacity: 1
            }
          },
          offset: -10, // text-dy
          overlap: true, // text-allow-overlap
          placement: 'point' // text-placement-type
      }
  }
}

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
xavijamcommented, Jun 2, 2016

Closing since it was deployed, let’s open new tickets if we find something 💋

0reactions
juanignacioslcommented, May 31, 2016

First (big) migration batch deployed (CartoDB/cartodb#7406).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Henshin/Migration Wizard - Eclipsepedia
In order to use old transformations with the latest version of Henshin, you need to migrate your transformation models. To support you in...
Read more >
Migration Wizard - Oracle Help Center
You use the Migration wizard to migrate (copy) applications and databases across Essbase Server instances. You can migrate to any platform supported by ......
Read more >
SSIS Catalog Migration Wizard - Visual Studio Marketplace
SSIS Catalog Migration Wizard helps you migrate the full or part of the SSIS catalog to another SQL server. You can move the...
Read more >
DB Migration with the NextForm Multi-Table Wizard - IRI CoSort
The “Multi-Table Migration Wizard” in the DBMS edition of IRI NextForm software moves data from one database to another, multiple tables at a...
Read more >
Migrate SAS Content with the Migration Wizard
The Migration Wizard generates a migration record file, which identifies all of the migrated files and all of the updates to metadata references ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found