|
POST
|
I have used map.showCoordinateTracker = true; to track the co-ordinates on mouse move in web ADF(Java) do we have something similar in Javascript as well ?
... View more
07-31-2012
02:02 AM
|
0
|
3
|
869
|
|
POST
|
On search i load a data grid and on click of data grid i zoom the map to the extent of object selected in grid. I am using a function, function onRowClickHandler(evt) {
var ClickedId = grid.getItem(evt.rowIndex).OBJECTID;
var selectedId;
dojo.forEach(map.graphics.graphics, function (graphic) {
if ((graphic.attributes) && graphic.attributes.OBJECTID === ClickedId) {
selectedId = graphic;
return;
}
});
var selectedExtent = selectedId.geometry.getExtent();
map.setExtent(selectedExtent);
} and i also have a zoom to button on a popup which appears on click of a map component. The Zoom factors of these two differ. I prefer the pop one.(which is inbuilt). So how do i alter my function to get the result desired.?
... View more
07-27-2012
02:10 AM
|
0
|
0
|
712
|
|
POST
|
I was able to figure this out. The problem was due to enabling of Security for GIS services. the Disclaimer says : Once security is enabled, it cannot be disabled using Manager. Stopping Server object manager service and editing the file server.dat helped to get things back.
... View more
07-26-2012
04:22 AM
|
0
|
0
|
940
|
|
POST
|
Every thing was absolutely fine and then, the rest end points of the map services that are running are not found. I went with Post installation so as to re-configure things, but unable to get back on track. What might have gone wrong?
... View more
07-24-2012
04:16 AM
|
0
|
1
|
1227
|
|
POST
|
Update: I tested again and found there seems no need to use the Legend.hideLayers property. The legend control knows which layer has changed its visibility. Attached is the updated sample. Correct: In the #6 post, code lines #92 and #113 have spell errors. They should be "legend.hid eLayers=hide;". I missed the " e". Sorry. 🙂 Hi Shuping, The code works fine with the esri sample server, but when i replace it with my map service neither the TOC nor the legend gets created. I am interested only in TOC though. Am i missing anything here?
... View more
07-16-2012
05:18 AM
|
0
|
0
|
2449
|
|
POST
|
Hi All, How to invoke a the zoom or pan with out trigger an event. I mean with out mouse scroll or click on zoom panel, how can i invoke the same in code level using a JS function. Thank You. If you are using a tiledmapservice then you can go for centerAndZoom(mapPoint, levelOrFactor) use 0.5 to zoom in twice as far and 2.0 to zoom out twice as far. or else you you go with map.setExtent(map.extent.expand(0.5)); for Zooming in and map.setExtent(map.extent.expand(2)); for Zooming out. For Pan you can use the functions panUp(),pannDown(), panLeft(), panRight() You can find more about the map navigation hereand here Mark this as an answer if it helped you.
... View more
06-28-2012
10:15 PM
|
0
|
0
|
805
|
|
POST
|
I hope you have included ., <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css"/> The offset is generally encountered when the browser doesn't resizes. you can include this to resize the browser., dojo.connect(map, 'onLoad', function (theMap) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
});
... View more
06-13-2012
12:49 AM
|
0
|
0
|
1287
|
|
POST
|
what is ,exactly, the css file i should check? I hope you have included this., <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css"/> The offset is generally encountered when the browser doesn't resizes. you can include this to resize the browser., dojo.connect(map, 'onLoad', function (theMap) {
//resize the map when the browser resizes
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
});
... View more
06-13-2012
12:39 AM
|
0
|
0
|
1287
|
|
POST
|
Try this: For ZoomIn Button: var extent=map.extent; map.setExtent(extent.expand(0.5)); For ZoomOut Button: var extent=map.extent; map.setExtent(extent.expand(2)); Thanks a lot Zhu, That worked for me.. where can i get such methods described? I was looking here http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm
... View more
06-11-2012
09:29 PM
|
0
|
0
|
1559
|
|
POST
|
With Reference to the doc., http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm How are the constants ZOOM_IN and ZOOM_OUT used?
... View more
06-11-2012
03:24 AM
|
0
|
0
|
1559
|
|
POST
|
If you're using a tiled service, you can get the map's level, add or subtract one from it depending on which button is clicked and pass that as the second argument to centerAndZoom. If you're not using a tiled service, centerAndZoom probably isn't what you want. Rather, try building a new extent and using map.setExtent. More info about using extents: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_extents.htm I have a tiled service layer as well as a DynamicMapServiceLayer in the map.. for the location attribute i tried something like (map.extent.xmin+map.extent.xmax)/2 and similarly for y parameter.. but it didn't work for me. I just want the + and - functionality of zoom slider into buttons i have defined!
... View more
06-10-2012
09:26 PM
|
0
|
0
|
1559
|
|
POST
|
Hi, I have two external button for zoomin and zoom out. on click of zoomin button i am using map.centerAndZoom() function. But it doesnt work for me. i want the extent to be maximixed and minimized.. when use this, map.centerAndZoom((0,0),1) map.centerAndZoom((0,0),2) map centers to one position.. how do i make it dynamic.. i.e., on click on button it should keep zooming in.. and similarly the zoom out button as well what other functions for the same can i manifest?
... View more
06-07-2012
10:26 PM
|
0
|
6
|
1708
|
|
POST
|
Dear pramodharithsa�??, Can you please post complete code.This type of problems may rise due to improper styling of dojo elements. some time may rise due to not writing bellow 2 lines <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dojox/grid/resources/Grid.css"> <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/dojo/dojox/grid/resources/claroGrid.css"> I thought of the same.. I have both lines in my code.. The problem now is the grid doesn't populate the actual result but instead populates what i enter in search box
... View more
06-06-2012
06:07 AM
|
0
|
0
|
719
|
|
POST
|
I have been trying to integrate different samples. when implementing find functionality., though the functionality works well., I don't see the searched items fit in the grid. and i also see two checkboxes-which i haven't defined. This also disturbs the format of my page How do it fit this code
<div dojotype="dijit.layout.BorderContainer" style="width:100%;height:100%;margin:0" design="headline" gutters="true ">
<div class="details" dojotype="dijit.layout.BorderContainer" region="top" style="height:30px;">
Risk Score:
<input type="text" id="searchText" value="5" />
<input type="button" value="Find" onclick="execute(dojo.byId('searchText').value);"/>
</div>
<div id="map" dojotype="dijit.layout.ContentPane" region="center" style="border:1px solid #000;"></div>
<div dojotype="dijit.layout.ContentPane" region="left" style="width:300px;">
<!--Refer to field by the position id, since the data doesn't have field
names-->
<table dojotype="dojox.grid.DataGrid" jsid="grid" id="grid" >
<thead>
<tr>
<th field="0" >
Layer Name
</th>
<th field="1" >
Field Name
</th>
<th field="2" >
Value
</th>
</tr>
</thead>
</table>
</div>
</div> with this so that i don't have format alteration
<body class="claro">
<table>
<tr><td align="center" bgcolor="#8080FF" valign="baseline"
colspan="2"><span class="style2"><strong>PIMS GIS Dashboard</strong></span><hr />
</td></tr>
<tr>
<td class="style1">
Attributes:<br />
Area:<br />
<input id="Area" type="text" value="-" readonly="readonly"/><br />
Risk Score:
<br />
<input id="Risk_Score" type="text" readonly="readonly" /><br />
Risk History:<br />
<input id="Risk_History" type="text" readonly="readonly" />
<br />
Search
<table style="width:100%;">
<tr>
<td class="style3">
</td>
</tr>
</table>
<table style="width:100%;">
<tr>
<td>
<input id="Radio1" checked="checked" name="Rlist" type="radio" value="V1" onclick="return Radio1_onclick()" /></td>
<td>
World Imagery</td>
<td>
</td>
</tr>
<tr>
<td>
<input id="Radio2" name="Rlist" type="radio" value="V1" onclick="return Radio2_onclick()" /></td>
<td>
World Street</td>
<td>
</td>
</tr>
<tr>
<td>
<input id="Radio3" name="Rlist" type="radio" value="V1" onclick="return Radio3_onclick()" /></td>
<td>
World Topography</td>
<td>
</td>
</tr>
</table>
<br />
<br />
<br />
</td>
<td>
<div id="navToolbar" data-dojo-type="dijit.Toolbar">
<div data-dojo-type="dijit.form.Button" id="zoomin" data-dojo-props="iconClass:'zoominIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_IN);}">Zoom In</div>
<div data-dojo-type="dijit.form.Button" id="zoomout" data-dojo-props="iconClass:'zoomoutIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.ZOOM_OUT);}">Zoom Out</div>
<div data-dojo-type="dijit.form.Button" id="zoomfullext" data-dojo-props="iconClass:'zoomfullextIcon', onClick:function(){navToolbar.zoomToFullExtent();}">Full Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomprev" data-dojo-props="iconClass:'zoomprevIcon', onClick:function(){navToolbar.zoomToPrevExtent();}">Prev Extent</div>
<div data-dojo-type="dijit.form.Button" id="zoomnext" data-dojo-props="iconClass:'zoomnextIcon', onClick:function(){navToolbar.zoomToNextExtent();}">Next Extent</div>
<div data-dojo-type="dijit.form.Button" id="pan" data-dojo-props="iconClass:'panIcon', onClick:function(){navToolbar.activate(esri.toolbars.Navigation.PAN);}">Pan</div>
<div data-dojo-type="dijit.form.Button" id="deactivate" data-dojo-props="iconClass:'deactivateIcon' ,onClick:function(){navToolbar.deactivate();}">Deactivate</div>
<div dojotype="dijit.layout.BorderContainer" region="top" style="height:30px;">Search Risk Score:<input type="text" id="searchText" value="5" />
<input type="button" value="Find" onclick="execute(dojo.byId('searchText').value);"/></div>
</div>
<div id="map" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'" style="width:1024px; height:512px; border:1px solid #000;">
</div>
</td>
</tr>
</table>
</body>
</html>
... View more
06-06-2012
02:14 AM
|
0
|
2
|
2841
|
|
POST
|
[/HR] see this thread http://forums.arcgis.com/threads/41800-Replace-ESRI-logo-with-custom-logo Thanks again
... View more
06-05-2012
02:45 AM
|
0
|
0
|
1951
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-24-2016 02:36 AM | |
| 1 | 08-01-2017 03:25 AM | |
| 1 | 09-16-2015 09:23 AM | |
| 1 | 03-22-2016 11:13 AM | |
| 1 | 11-24-2016 02:39 AM |
| Online Status |
Offline
|
| Date Last Visited |
05-18-2023
06:35 PM
|