pablo.cortes00

Locator, ArcGISDynamicMapServiceLayer

Discussion created by pablo.cortes00 on Oct 28, 2013
Hi, I am using this code, and is perfect, but as I can do to get the points found appears.

<!DOCTYPE html> 

<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css"> 
<style> 
html, body, #map { 
height:100%; 
width:100%; 
margin:0; 
padding:0; 
} 
body { 
background-color:#FFF; 
overflow:hidden; 
font-family:"Trebuchet MS"; 
} 
#search { 
display: block; 
position: absolute; 
z-index: 2; 
top: 20px; 
left: 75px; 
} 
</style> 

<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"></script> 
<script> 
dojo.require("esri.map");
dojo.require("esri.dijit.Geocoder");
var locatorUrl = "http://localhost:6080/arcgis/rest/services/localizador/GeocodeServer";
function init() {

 var map = new esri.Map("map", {
   //basemapUrl : "http://localhost:6080/arcgis/rest/services/Cementerio/MapServer",
   //center : [-120.45, 37.28], //long, lat
   //zoom : 10
  });

 var myGeocoders = [{
   url : locatorUrl,
   name : "localizador"
  }
 ];

 var geocoder = new esri.dijit.Geocoder({
   map : map,
   autocomplete : true,
   arcgisGeocoder : false,
   geocoders: myGeocoders,
   value : 'buscar' 

  }, "search");

 geocoder.startup();
 var imageParameters = new esri.layers.ImageParameters();
imageParameters.layerIds = [1];



layer = new esri.layers.ArcGISDynamicMapServiceLayer("http://localhost:6080/arcgis/rest/services/Cementerio/MapServer", {
  "imageParameters" : imageParameters
 });
map.addLayer(layer);

}


dojo.ready(init); 
</script> 
</head> 
<body> 
<div id="search"></div> 
<div id="map"></div> 
</body> 
</html>


I want to show the Locate points of interest of my map service in ArcGIS Server, but failed

[ATTACH=CONFIG]28670[/ATTACH]

I'm using google translate sorry

hopefully can guide me, thanks

Attachments

Outcomes