Closed ComBatVision closed 5 years ago
Looks like it already exists but wasn't being added into the release as part of the build script. I'll go ahead and fix that.
fixed in release v0.3.35
Problem was not solved. Or there is related problem exists.
I am debugging the situation now.
Function GeoPixelConversion3D is present in build, but renderer fails to find Deg2Rad function in some cases.
I will tell result when will understand the reason.
clsUtility PointPixelsToLatLong
Severe: ReferenceError: Deg2Rad is not defined - Could not convert point to geo sm-bc.js:97230:21
LogException sm-bc.js:97230
PointPixelsToLatLong sm-bc.js:121050
PixelsToLatLong sm-bc.js:120713
FilterPoints2 sm-bc.js:122222
render_GE sm-bc.js:118995
renderWithPolylines sm-bc.js:118904
Could you please add "this." in line:
GetMetersPerDegAtLat: function(lat) {
// Convert latitude to radians
lat = Deg2Rad(lat);
Also could you replace in two places of the same file: armyc2.c2sd.renderer.utilities.GeoPixelConversion3D.GetMetersPerDegAtLat(latitude); to: this.GetMetersPerDegAtLat(latitude);
Thanks!
Ok, checked in changes for GeoPixelConversion3D. let me know.
Thanks. It works OK now. You may release.
Hello! Mil-sym-js module is missing armyc2.c2sd.renderer.utilities.GeoPixelConversion3D implementation from original Java code, which is very suitable to integrate mil-sym-js with WorldWindWeb GIS.
Could you, please, add this implementation to official release?
Code is taken from Java version of library.