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

Drill down identify with features #521

Closed
carrbrpoa opened this issue Mar 18, 2016 · 3 comments
Closed

Drill down identify with features #521

carrbrpoa opened this issue Mar 18, 2016 · 3 comments

Comments

@carrbrpoa
Copy link

Hello guys,

Consider these layers:

{
    type : 'feature',
    url : '.../FeatureServer/0',
    title : 'CEU',
    options : {
        id : 'ceu0',
        opacity : 1.0,
        visible : true,
        outFields : ['*'],
        mode : 1,
        showLabels : true
    },
    identifyLayerInfos : {
        layerIds : [0]
    },
    layerControlLayerInfos : {
        swipe : true,
        metadataUrl : false,
        expanded : false
    }
}, {
    type : 'feature',
    url : '.../MapServer/1',
    title : 'Lotes',
    options : {
        id : 'lotes0',
        opacity : 0.5,
        visible : true,
        imageParameters : imageParameters,
        outFields : ['*'],
        mode : 1
    },
    identifyLayerInfos : {
        layerIds : [1]
    },
    layerControlLayerInfos : {
        swipe : true,
        metadataUrl : false,
        expanded : false
    }
}

Do you have any clue about why the "drill down" identify doesn't happen with them?
See:

identify
The selected featured labeled DM1 is on top of a Lote feature.

The Editor seems to be able to recognize that there are two features there:

edit

Thanks in advance!

@tmcgee
Copy link
Member

tmcgee commented Mar 18, 2016

@carrbrpoa "drill-down" identify does not occur when you click on a graphic feature from a feature layer. The mouse click is intercepted by the top-most graphic on the map. This is a "feature" of the JavaScript API.

@carrbrpoa
Copy link
Author

Thanks @tmcgee. By the way, do you have any ideas why when I click the feature label's, it identifies the feature behind it?

@tmcgee
Copy link
Member

tmcgee commented Mar 31, 2016

That is another "feature" of the API trying to help you out...

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

No branches or pull requests

2 participants