I use Google maps, I mark areas on the maps like that:
var a
This one works for me with the dynamic polygon values.