Problem with javascript and WebMapViewer

Hi at all ,
when I execute this partial code on Shown event to my WebMapViewer, this message appears : Could not execute returned javascript: Invalid value for property : [object HTMLDivElement]
Source: var optionsCircle = {center: new google.maps.LatLng(48.7333,-3.35),map: AkBdEbFD,radius: 50000};var myCircle = new google.maps.Circle(optionsCircle);

This is my code :
dim js as string
js=“var optionsCircle = {”
js=js+“center: new google.maps.LatLng(”+str(me.Latitude)+","+str(me.Longitude)+"),"
js=js+“map: “+me.ControlID+”,radius: 50000};”
js=js+“var myCircle = new google.maps.Circle(optionsCircle);”
MapLocation.ExecuteJavaScript js

Thanks for your Help :slight_smile:

I’m not surprised. The WebMapViewer is not designed to be hacked in this manner.