Hi,
I have custom CRS EPSG:900015 for which I have created CRSConfig file and copy pasted in WEBMAP "CommonFiles/Hexagon/CSFStore" folder also I verified GIS WFS/WMS services capabilities it is showing correctly assigned EPSG:900015.
But when I register custom CRS and load these GIS services through Geospatial Portal SDK Javascript API it is not loading/displaying map rather not respecting map. Same registering CRS and load GIS services if I perform manually through Geospatial portal instance "Settings" panel it works perfectly (means map is getting displayed with custom CRS)
I don't know where I am going wrong or missing anything or it's a bug in Geospatial Portal SDK Javascript API)
I am using SQL server 2012 professional
Code Snippet used for registering and setting CRS:
var targetCode = "EPSG:900015";
$GP.crs.register({
code: targetCode,
}, function(result) {
var first = result.crsIds[0];
$GP.crs.setCurrent({
code: first,
}, function (result2) {
$GP.ui.info("CRS changed");
});
});
If anyone knows whatz wrong or missing please help me in that...
Thanks & Regards,
Mohanbabu
|