code for client to embed into webpage to create map widget