From 9dc252f2f97d1598583213cad1ead6920d255869 Mon Sep 17 00:00:00 2001 From: Fredrik Karlsson Date: Fri, 12 Aug 2016 10:33:20 -0400 Subject: [ios, macos] fixes #5958 naming conventions --- platform/darwin/scripts/generate-style-code.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'platform/darwin/scripts/generate-style-code.js') diff --git a/platform/darwin/scripts/generate-style-code.js b/platform/darwin/scripts/generate-style-code.js index e28b4c0d11..04bddbc474 100644 --- a/platform/darwin/scripts/generate-style-code.js +++ b/platform/darwin/scripts/generate-style-code.js @@ -145,16 +145,16 @@ global.arraySetterImplementation = function(property) { global.getterImplementation = function(property, layerType) { switch (property.type) { case 'boolean': - return `return [MGLStyleAttribute mbgl_boolPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_boolWithPropertyValueBool:self.layer->get${camelize(property.name)}()];` case 'number': - return `return [MGLStyleAttribute mbgl_numberPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_numberWithPropertyValueNumber:self.layer->get${camelize(property.name)}()];` case 'string': - return `return [MGLStyleAttribute mbgl_stringPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_stringWithPropertyValueString:self.layer->get${camelize(property.name)}()];` case 'enum': var objCType = `${prefix}${camelize(layerType)}${suffix}${camelize(property.name)}`; return `MGLGetEnumProperty(${camelize(property.name)}, ${mbglType(property)}, ${objCType});`; case 'color': - return `return [MGLStyleAttribute mbgl_colorPropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_colorWithPropertyValueColor:self.layer->get${camelize(property.name)}()];` case 'array': return arrayGetterImplementation(property); default: @@ -163,7 +163,7 @@ global.getterImplementation = function(property, layerType) { } global.arrayGetterImplementation = function(property) { - return `return [MGLStyleAttribute mbgl_${convertedType(property)}PropertyValueWith:self.layer->get${camelize(property.name)}()];` + return `return [MGLStyleAttribute mbgl_${convertedType(property)}WithPropertyValue${camelize(convertedType(property))}:self.layer->get${camelize(property.name)}()];` } global.convertedType = function(property) { -- cgit v1.2.1