Set address on Our.Umbraco.Gmaps property using d...
# help-with-umbraco
n
I tried this code in angularjs wiring up the value from editorstate but it keeps me getting empty field.
Copy code
let map = findPropertyByAlias("map");
if (map) {
    map.value = option.map;
}

function findPropertyByAlias(alias) {
    let state = editorState.getCurrent(),
        variant = state.variants.find(v => v.active),
        value = null;

    for (let i = 0, l = variant.tabs.length; i < l; i++) {
        let tab = variant.tabs[i],
            property = tab.properties.find(p => p.alias === alias);

        if (property) {
            value = property;
            break;
        }
    }

    return value;
}
Does anyone had similar scenario. Thanks in advance https://cdn.discordapp.com/attachments/1290235941302173708/1290236063046172682/image.png?ex=66fbb978&is=66fa67f8&hm=c13122d91d7fbbaa0ea7f4b77c6992ee5329f68f7fa6e042346e1467dda9f6e2&