Hi Guys
So I have created my map with the webapp builder and plugged it into a system. When displaying the map I use the index.html file from the map.
I load my script like this at the bottom of the index.html file:
<script type="text/javascript" src="*.js"></script>
My script does a basic thing like a zoom using the CentreAndZoom function of the map, but I do however create a point by using legacy code such as: point = new esri.geometry.Point(lng, lat);
But it seems I cannot access anything else in the JS api, any ideas why or how to enable my js file to have access to the functions provided by the API?