How to use SQL API output to create a layer in a map?

I thought it could be achieved with createLayer passing the data directly, i.e. not with URL as second argument, but the data I am getting from SQL API has not the structure of a layer.

Any advice?

1 Answer 1


To create a layer without a URL is possible. It is in the section titled, "create a layer at runtime", here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.