Robert,
Can you take a quick look at this. I think I’m close. Here is what the widget is supposed to do. User enters Corridor route and offset and it simply returns a point. When I debug it, it returns “function expected TypeError: Function expected.
Solved! Go to Solution.
Terry,
You are trying to use the same constructor option you used for a SimpleLineSymbol for the SimpleMarkerSymbol and they are not the same.
Look at the doc for the proper constructor options for SimpleMarkerSymbol
Terry,
As this is a whole new widget I branched this into a new Question (as you should have done).
I’m sorry I should have started a new post.. I changed the following removed the LocPoint =new Point and the mp = with the following
mp = ;
Ok I will take a look at it.. thank you..
Terry,
Did you set the GP out spatial reference to be the maps?
this.gp.setOutSpatialReference(this.map.spatialReference);
Yes I added this.. this.gp.setOutSpatialReference(this.map.spatialReference); It creates the point and seems to zoom to an extent.. just does not create a graphic..
Terry,
You are trying to use the same constructor option you used for a SimpleLineSymbol for the SimpleMarkerSymbol and they are not the same.
Look at the doc for the proper constructor options for SimpleMarkerSymbol
I was looking at this page in the api. Should I be looking at something else?
https://developers.arcgis.com/javascript/jssamples/gp_servicearea.html