2

I've created the named map, it's working well and I'm able to query it with setParameter() method and use some basic methods like setOpacity() and show/hide but I haven't succeeded to use any of the methods related to the events and infowindows. It appears that I can't derive a sublayer from the named map layer like this:

var sublayer = layer.getSubLayer(0);

This is what is done in all examples for creating infowindows. I tried layer.getSublayerCount() and it returns zero, so there's no way to get sublayer object out of the layer. Also none of the event methods work. Is there a workaround?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.