Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Pass variables to replace tokens in query#1

Closed
rafatower wants to merge 2 commits into
v1.2.2-cdbfrom
1.2.2-pass-variables
Closed

Pass variables to replace tokens in query#1
rafatower wants to merge 2 commits into
v1.2.2-cdbfrom
1.2.2-pass-variables

Conversation

@rafatower
Copy link
Copy Markdown

@rafatower rafatower commented Jul 17, 2017

This fixes mapbox#218

What this does:

  • it optionally adds a new member mapnik::attributes vars to the mvt processor. It is a pretty open data structure used in other parts of mapnik & friends to pass tokens along.
  • it is passed by processor::update_tile to the tile_layer, so that it can set the variables of its associated query from there (an empty unordered map if not passed to the processor).

(thanks @Algunenano for the advice on the constructor)

@Algunenano @javisantana can you please take a look?

@rafatower rafatower changed the base branch from master to v1.2.2-cdb July 17, 2017 13:20
@Algunenano
Copy link
Copy Markdown

👍 Looks good to me. Are you also creating a PR upstream with these changes?

@rafatower
Copy link
Copy Markdown
Author

Are you also creating a PR upstream with these changes?

That's the idea.

@rafatower rafatower closed this Jul 18, 2017
@rafatower rafatower reopened this Jul 18, 2017
@rafatower
Copy link
Copy Markdown
Author

Superseded by mapbox#248

@rafatower rafatower closed this Feb 6, 2018
@rafatower rafatower deleted the 1.2.2-pass-variables branch February 6, 2018 12:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants