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?


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


| improve this answer | |

Your Answer

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

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