Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Add custom @2x handling for mapbox v4 tile API when tileSize: 512 #3788

Merged
merged 1 commit into from
Feb 11, 2016

Conversation

yhahn
Copy link
Member

@yhahn yhahn commented Feb 2, 2016

versionIdx != std::string::npos &&
(normalizedURL.compare(extensionIdx + 1, 3, "png") == 0 ||
normalizedURL.compare(extensionIdx + 1, 3, "jpg") == 0 ||
normalizedURL.compare(extensionIdx + 1, 4, "webp") == 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better comparison would be add this function to string.hpp:

inline bool beginsWith(const std::string& string, const std::string &prefix) {
    return std::equal(prefix.begin(), prefix.end(), string.begin());
}

@jfirebaugh
Copy link
Contributor

Can we hold this until after #3715 lands? There's going to be significant conflicts.

@brunoabinader
Copy link
Member

Can we hold this until after #3715 lands?

👍

@jfirebaugh
Copy link
Contributor

Updated for today's new offline world. @yhahn @tmpsantos Look good?

@tmpsantos
Copy link
Contributor

Updated for today's new offline world. @yhahn @tmpsantos Look good?

👍

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.

5 participants