POST
|
I got the geometry when I included layerId. function queryResults(featureSet){
var resultSet = featureSet.features;
var shape = resultSet[0].geometry;
if(shape.type==='polygon'){
var featureExtent=shape.getExtent();
map.setExtent(featureExtent);
}else{
alert("Shape is not a polygon");
} Though I set feature Extent to map extent. The slider zooms to the fullest and I get to see only "Map Data Not Available". Why is that? I want the slider to just zoom on the polygon.
... View more
05-28-2013
02:16 AM
|
0
|
0
|
331
|
POST
|
I am trying to get the geometry of the polygon using UNIQPOLYID. UNIQPOLYID is the display field. function searchGeometry(polyId){ queryTask = new esri.tasks.QueryTask(URLGoesHere); query = new esri.tasks.Query(); query.returnGeometry = true; query.text = polyId; queryTask.execute(query, queryResults); } function queryResults(featureSet){ alert(featureSet.features); //undefined //Should get the geometry of the feature and zoom into it. } "featureSet.features" is undefined in my queryResults(featureSet). How should I get the the feature with the provided polyId so that I can zoom in to the geometry.
... View more
05-27-2013
10:25 PM
|
0
|
3
|
731
|
POST
|
I know that I can zoom to a polygon when it is clicked by doing this identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyTask.execute(identifyParams, function(result) {
var i;
var polyId= new Array();
for(i=0; i<result.length;i++){
polyId=result.feature.attributes["UNIQPOLYID"];
} But I do not want to do it upon clicking on the map. When the user enters the polygon id in a text box, I want to zoom and show that polygon on the screen.
... View more
05-26-2013
10:24 PM
|
0
|
0
|
236
|
POST
|
I have a text box where I have the polygon Id like, "id_of_the_polygon_12345" . Is it possible to get its extent on the map and zoom into it? I have figured out how to do it upon clicking on the map. But could not figure how to do the same knowing my poly Id.
... View more
05-26-2013
10:13 PM
|
0
|
3
|
445
|
POST
|
I achieved the result using the following code. esriConfig.defaults.map.slider.top = "200px"; Thanks, Prasanna
... View more
01-20-2013
10:12 PM
|
0
|
0
|
175
|
POST
|
Hi, I am using this map https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer Is there a way to make the scale to appear on the left-middle of the screen? By default it appears at left-top. Thanks Prasanna
... View more
01-14-2013
08:02 PM
|
0
|
1
|
568
|
POST
|
I solved it by adding a layer on to the map. var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer"); map.addLayer(tiledMapServiceLayer); Thanks Prasanna
... View more
01-12-2013
07:47 AM
|
0
|
0
|
165
|
POST
|
Hi, When I click on the map, I get a push pin at that location. I am centering it currently using the code map.centerAt(cPoint); Is there a way to position that push pin at a desired location on the screen(Say, at "500,500")? Thanks Prasanna
... View more
01-12-2013
07:36 AM
|
0
|
0
|
621
|
POST
|
Please do explain me the meaning of these statements.
bldgResults = {displayFieldName:null,features:[]};
parcelResults = {displayFieldName:null,features:[]};
These are present in the addToMap(idResults, evt) method of the sample given in the link http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/find_drilldown.html Also please do let me know if this would get me the "UNIQPOLYID" from feature.
identifyTask.execute(identifyParams, function(result) {
var polyID = result.feature.attributes["UNIQPOLYID"];
});
Thanks Prasanna
... View more
12-23-2012
08:14 PM
|
0
|
1
|
336
|
POST
|
Hi, I have found that I have a webservice method with which I can get the Polygon Id from. But I would need the geometry of the polygon in order to call that method. How will I get the geometry of the polygon? Thanks Prasanna
... View more
12-20-2012
06:41 PM
|
0
|
0
|
181
|
POST
|
Hi, I have a base map and a layer on it which has polygons. How should I get the polygon Id of the polygon that is clicked? Thanks Prasanna
... View more
12-18-2012
11:25 PM
|
0
|
2
|
552
|
POST
|
Hi, I would like to know how to render a custom map service on the page. I know that doing this would render an ArcGis map service. map = new esri.Map("map");
var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer");
map.addLayer(tiledMapServiceLayer); I want one of the custom made map service to be placed as the URL. How should I achieve that? Thanks Prasanna
... View more
12-11-2012
05:55 PM
|
0
|
1
|
440
|
POST
|
Hi, I need to display a mapservice other than that of arcGis. I know this will render my browser with an ArcGis map. map = new esri.Map("map");
var tiledMapServiceLayer = new esri.layers.ArcGISTiledMapServiceLayer("http://wiwauk4ovlgsw03.itservices.sbc.com/arcgis/rest/services/IGLOO_Maps/IGLOO_SupportMap/MapServer");
map.addLayer(tiledMapServiceLayer);
I want to replace the URL(bold) with some other URL which is not offered by ArcGis. How should i do that? Thanks Prasanna
... View more
12-10-2012
11:12 PM
|
0
|
1
|
618
|
POST
|
Hi schlot, The error persists even if I put it inside quotes. I did a workaround to make it work. I globally declared a Javascript Array, stored the string in it and passed the index of the array through the info template. With that index, I can access my content from the array. Thanks Prasanna
... View more
12-10-2012
10:51 PM
|
0
|
0
|
164
|
POST
|
Hi, I have an info template like this. infoTemplate=new esri.InfoTemplate("<div align='center'><input type='button' value='Use this location' onclick='test(x,y,z)'></div>"); I have defined x,y,z as: x=5;
y=10;
z="Sairam"; I am getting an error on my browser as " 'Sairam' is undefined". When I pass only numeric values, it works fine. But if i pass a String, i get this undefined error. Could some one tell me how i could pass a String as a parameter on this info template button onclick function? Thanks Prasanna
... View more
11-20-2012
09:04 AM
|
0
|
2
|
609
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|