Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow suffixes to be added to gazetteer field names #675

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

geographika
Copy link
Collaborator

@geographika geographika commented Dec 18, 2023

By default field names are expected to be minX3857 etc.
This update allows different suffixes to be added so fields such as minX2157 can be used, using a new fieldNameSuffixconfig setting onCpsiMapview.view.combo.Gazetteer`:

Example:

{
    xtype: 'cmv_gazetteer_combo',
    url: '/gazetteer/',
    srs: 'EPSG:2157', // also set the project to use for the extents
    fieldNameSuffix: '2157',
    proxyRootProperty: 'data',
    displayValueMapping: 'name',
    emptyText: 'Townland...'
}

Ext.create('CpsiMapview.view.combo.Gazetteer', { fieldNameSuffix: '2157' });

@geographika geographika merged commit f42b509 into compassinformatics:master Dec 18, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant