AnsweredAssumed Answered

Uncaught TypeError: Cannot read property 'PeFactory' of null

Question asked by Nadir_Hussain on Aug 19, 2019
Latest reply on Aug 20, 2019 by taungesriaustralia-com-au-esridist

Dear All,

 

I am facing this problem.when i want to convert into utm coordinates i am getting the fallowing error.

 Uncaught TypeError: Cannot read property 'PeFactory' of null

i did not understand what is null in my code i check every thing.please help.

Thanks in advance.

require([
"esri/map",
"esri/layers/FeatureLayer",
"esri/dijit/Search",
"esri/geometry/coordinateFormatter",
"esri/SpatialReference",
"esri/geometry/Point",
"esri/InfoTemplate",
"dojo/domReady!"
], function (Map, FeatureLayer, Search,coordinateFormatter,SpatialReference,Point, InfoTemplate) {

var lt="44.0505";
var lg="17.5183";
var pt = new Point(lt, lg, new esri.SpatialReference({ wkid: 4326 }));
alert(pt.x+"_HELLO____"+pt.y);
var str = coordinateFormatter.toUtm(pt, "north-south-indicators", true);
alert(str);

});

Outcomes