Select to view content in your preferred language

JavaScript runtime error: Object doesn't support this action

1664
2
Jump to solution
03-06-2018 10:41 AM
ShaningYu
Honored Contributor

Got error on

<script type="text/javascript" src="http://js.arcgis.com/3.23compact/"></script>

...

var pt = new esri.geometry.Geometry.Point([-76.99, 38.88]);

Message:  JavaScript runtime error: Object doesn't support this action

What's wrong on this piece of code?  Thanks.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Shaning,

  this is your error:

var pt = new esri.geometry.Geometry.Point([-76.99, 38.88]);
//should be
var pt = new esri.geometry.Point([-76.99, 38.88]);

View solution in original post

2 Replies
RobertScheitlin__GISP
MVP Emeritus

Shaning,

  this is your error:

var pt = new esri.geometry.Geometry.Point([-76.99, 38.88]);
//should be
var pt = new esri.geometry.Point([-76.99, 38.88]);
ShaningYu
Honored Contributor

Thanks for you to quickly point out my careless mistake.

0 Kudos