Sorry I'm newbie in ESRI API JavaScript, I'm trying to to change the GeoRSS projection from ESRI:102100 to ESRI:54030. could anyone give me a hand?
my project script is:
var map;
require([
"esri/map", "esri/SpatialReference", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/GeoRSSLayer", "esri/InfoTemplate",
"dojo/parser", "dojo/_base/array", "dojo/dom-style",
"dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!"
],
function(
Map, Tiled, GeoRSSLayer, InfoTemplate,
parser, arrayUtils, domStyle
) {
map = new Map ("map");
var tiled = new Tiled ("//.../arcgis/rest/services/.../MapServer");
//==> ROBINSON
map.addLayer (tiled);
// create layout dijits
parser.parse();
var georssUrl = "...gml";
//==> MERCATOR
var georss = new GeoRSSLayer(georssUrl, SpatialReference);
georss.on("load", function() {
domStyle.set("loading", "display", "none");
// create an info template
var template = new InfoTemplate("${name}", "${description}");
// set the info template for the feature layers that make up the GeoRSS layer
// the GeoRSS layer contains one feature layer for each geometry type
var SpatialReference=new SpatialReference (54030);
var layers = georss.getFeatureLayers();
arrayUtils.forEach(layers, function(l) {
l.setInfoTemplate(template);
});
});
map.addLayer(georss);
});