POST
|
Dear All, In my flex application, I got the Route results as Graphic from my Routing Widget. I want my graphic attributes to be exported as Shapefile. I am using shpWriter but I am unable to export. Please help. Regards, Tanya Bisen
... View more
06-13-2014
01:51 AM
|
0
|
0
|
1624
|
POST
|
Hi All, I am trying to customise the look and feel of ArcGIS Portal 10.2. Can anybody help me how to go about it. I basically want to change the background color, Menu names e.g. Gallery,MyContent,etc. Thanks, Tanya
... View more
12-02-2013
10:51 PM
|
0
|
0
|
528
|
POST
|
Hi Anthony, I was going through this forum and I have a similar requirement however I dont see the source code attached. Can you please email me at bisen.tanya@gmail.com. Also, i have csv file link. I dont have the excel file stored at some location.. I converted the link from .csv to .xml but how do I parse it. Can you please help me on that too. Thanks, Tanya Shweta, There is an example here but it will require you doing soming coding: http://www.arcgis.com/home/item.html?id=173870a7926c4ef9b2a5121be0b46211 regards Anthony
... View more
09-09-2013
11:04 PM
|
0
|
0
|
212
|
POST
|
Hello Everyone, I am trying to build a Time Slider on a similar approach, wherein I want to customize the Time Slider in Flex API. When i select the date range and play the Time slider it should work. I have little idea of how to proceed about it but if someone can share their tips it will be beneficial for me. e.g. When I select the date range how it will query my map service and how the time stops can be created so that my time enabled layer recognizes it and works. Thanks and Regards, Tanya
... View more
08-26-2013
08:52 PM
|
0
|
0
|
84
|
POST
|
Hi All, I downloaded Closest Facility Widget for Flex Viewer Application Builder and I am able to import it successfully. It works fine while using sample ESRI Network Service. I tried embedding my Network Service into the widget but it failed. I even tried importing my custom Closest Facility widget which is working fine using Flash Builder but no success. Below is the Error : Input field [sh_name] was not mapped to a field in the network analysis class "Facilities". Input field [DTNAME11] was not mapped to a field in the network analysis class "Facilities". Insufficient number of valid locations in "Facilities" or "Incidents". Where is it actually I am going wrong for my NA service for Application Builder as the same NA service works fine for my customized Flex application. Please help. Thanks,
... View more
08-16-2013
01:11 AM
|
0
|
11
|
3255
|
POST
|
Hello All, I am using ArcGIS Desktop and ARcSDE 9.3.1 version and trying to extend my featureclass which is coming from ArcSDE geodatabase. I am using DBMS authentication mode on my Development server while Production server uses OSA authentication mode. While I try to create a new feature from my featureclass, it doesnot fire IObjectClassEvent_OnCreate function in my ApplicationExtension.vb class file. Can anybody help me how to debug ApplicationExtension.vb class file and how do IObjectClassEvent_OnCreate function gets called in Visual Studi 2008. Here is the code snippet : In my Private Function SetUpDocumentEvent(ByVal myDocument As IDocument) As Boolean { InitialiseConnection() } Sub InitializeConnection() { Dim pCLEDObjectClassEvents As IObjectClassEvents_Event g_CLEDLayerName = ReadXML("CLEDFeatureClassName") g_CLEDFeatureClass = g_FeatureWorkspace.OpenFeatureClass(g_CLEDLayerName) If Not g_CLEDFeatureClass Is Nothing Then g_CLEDIndex = g_CLEDFeatureClass.FindField("CURRENT_CLED") g_CLEDIntrmIndex = g_CLEDFeatureClass.FindField("CLED_INTRM_DATE") pCLEDObjectClassEvents = CType(g_CLEDFeatureClass, IObjectClassEvents_Event) AddHandler pCLEDObjectClassEvents.OnDelete, AddressOf CLEDObjectClassEvents_OnDelete AddHandler pCLEDObjectClassEvents.OnCreate, AddressOf CLEDObjectClassEvents_OnCreate AddHandler pCLEDObjectClassEvents.OnChange, AddressOf CLEDObjectClassEvents_OnChange End If } Sub CLEDObjectClassEvents_OnCreate(ByVal obj As IObject) (This function doesn't get called when I create a new feature) Try If g_RemoveRuleBase = False Then CheckForCLED(obj) End If Catch ex As Exception MsgBox(ex.ToString(), MsgBoxStyle.Information, "CLEDObjectClassEvents_OnCreate") End Try End Sub please help, I am new to this.. and have been strugglind since 2 weeks to debug the issue but unsuccessful. Thanks, Tanya
... View more
03-11-2013
01:10 AM
|
0
|
1
|
412
|
POST
|
Hello all, I am trying to confgiure Routing task for my web application I am getting the following error. I am attaching the scrrenshot Kindly help me to figure out what is the exact issue. If anyone has steps hhow to create Network dataset or any sample code for running this task it would be of great help. Please help me. Thanks, Tanya Bisen.
... View more
12-10-2012
01:37 AM
|
0
|
0
|
1297
|
POST
|
Nobody has tried it ?? I need help guys...please help me.. Thanks, Tanya
... View more
11-20-2012
01:27 AM
|
0
|
0
|
214
|
POST
|
Hi, I am trying to configure TimeSlider tool as a widget in Silverlight Viewer but I am unable to do it. I am not able to set intervals for my Time Aware layer. I am posting my .xaml code and .cs code. Kindly help me as to where I am going wrong. Rest end point: http://182.72.232.27/ArcGIS/rest/services/TimeSlider/MapServer/0 XAML: <esri:TimeSlider x:Name="MyTimeSlider" HorizontalAlignment="Left" Margin="15" VerticalAlignment="Top" Width="212" Height="20" TimeMode="TimeExtent" MinimumValue="{Binding Layer.TimeExtent.Start, Mode=OneWay}" MaximumValue="{Binding Layer.TimeExtent.End, Mode=OneWay}" Value="2012/10/07 17:00:00 UTC, 2012/10/14 17:00:00 UTC"> </esri:TimeSlider> C#: TimeExtent timeExtent = null; foreach (Layer layer in this.MapControl.Layers) { if (layer is FeatureLayer) { timeExtent = ((FeatureLayer)layer).TimeExtent; } else if (layer is ArcGISDynamicMapServiceLayer) { timeExtent = ((ArcGISDynamicMapServiceLayer)layer).TimeExtent; } } List<DateTime> intervals = new List<DateTime>(); TimeSpan timeSpan = timeExtent.End.Subtract(timeExtent.Start); // Divide the time span by 20 to set the slider intervals //double timeInterval = timeSpan.TotalDays; double timeInterval = timeSpan.TotalDays / 20; DateTime dt = timeExtent.Start; for (int i = 0; i < 20; i++) { intervals.Add(dt); dt = dt.AddDays(timeInterval); } MyTimeSlider.Intervals = intervals; this.MapControl.TimeExtent = new TimeExtent(timeExtent.Start, timeExtent.Start.AddDays(timeInterval * 4)); } Any help would be greatly appreciated. Thanks, Tanya Bisen
... View more
10-21-2012
10:04 PM
|
0
|
2
|
4564
|
POST
|
Hello All, I am using Silverlight 5.0 and trying to add ZoomtoScale tool based on userinput in Silverlight Viewer for ArcGIS. I used this.MapControl.ZoomToResolution(textinput.text) but its not working and my projection system is in meters. How can i get this working. I have already refered to old threads related to similar query. http://forums.esri.com/Thread.asp?c=213&f=2455&t=285205 Thanks, Tanya Bisen
... View more
09-13-2012
03:55 AM
|
0
|
1
|
1975
|
POST
|
Thank you Ken. I was just missing out on one line and your link did the trick. Thanks a ton. Regards, Tanya
... View more
06-03-2012
08:00 PM
|
0
|
0
|
250
|
POST
|
Hello All, I was trying to import Navigation widget in my project using Flex API. How do I call the navigation bar in my application on load. Please help me..Its urgent. Thanks, Tanya
... View more
05-30-2012
12:02 AM
|
0
|
4
|
687
|
POST
|
Hi again Caroline, I think I might have solved my problem. When I was pulling in the url for the layer in the SelectionWidget.xml file, I was using the FeatureServer service instead of the MapServer service from my rest services directory. (The layer I am using is editible also.) When I tried using the MapServer url I got the unique values list to populate. Hopefully this fix will be as easy for you! Ashlee Dear All, I am unable to configure this widget. I configured the xml and when I click the feature its unable to retrieve the unique values.Following is the map service I am using : http://agis.pipetrakit.com/ArcGISPetroIT/rest/services/GAILDABPL/MapServer/29 This is what I have configured in the XML. <layers> <layer> <name>Benchmark</name> <url>http://agis.pipetrakit.com/ArcGISPetroIT/rest/services/GAILDABPL/MapServer/30</url> <minscale>500000</minscale> <maxscale>10</maxscale> <fields> <field name="BM__NO_" alias="BM__NO_"/> <!--<field name="LATITUTE"/> <field name="LONGITUDE"/> <field name="DESCRIPTIO"/>--> </fields> <titlefield>Benchmark No</titlefield> <linkfield linkprefix="http://www.test1.com." linksuffix=".txt">URL_FIELD</linkfield> <infowindowfields> <field name="BM__NO_"/> <field name="LATITUTE" alias="Latitude"/> <field name="LONGITUDE" alias="Longitude"/> <field name="DESCRIPTIO" alias="Description"/> </infowindowfields> </layer> Please anyone help me on this. Thanks, Tanya
... View more
03-19-2012
03:07 AM
|
0
|
0
|
515
|
POST
|
Hello, I am new to this API. I tried using the sample which you have posted above and even after making the changes it doesn't work for me. Basically I am trying to overlay GIS server mapservice on to google maps. I want to know how do we combine dojo toolkit and google extension as I would not like to use default google infowindow..would love to use use infowindow given in Javascript API samples Please help me. Thanks, Tanya
... View more
12-14-2011
11:05 PM
|
0
|
0
|
422
|
POST
|
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAN-Td40dwxFW7Kl1Q6ose-RSfCPemwdJVBhVchwJQMM9mgW5i3RSCFG3iEvk1vrOzbuw-jEazCurPzQ" type="text/javascript"></script> <script src="http://serverapi.arcgisonline.com/jsapi/gmaps/?v=1.6" type="text/javascript"></script> <script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"></script> <script type="text/javascript"> var gmap = null; var geocoder = null; var dynMapOv = null; var dynMapOv1 = null; var marker,mapExtension,overlays,layers,identifyTask,layerId,dynamicMap,Repmap; function initialize() { if (GBrowserIsCompatible()) { gmap = new GMap2(document.getElementById("gmap")); gmap.setCenter(new GLatLng(12.978004, 77.606081), 12); gmap.enableScrollWheelZoom(); gmap.addControl(new GSmallMapControl()); gmap.addControl(new GMapTypeControl()); gmap.removeMapType(G_HYBRID_MAP); mapExtension = new esri.arcgis.gmaps.MapExtension(gmap); geocoder = new GClientGeocoder(); } } function dynmapcallback(mapservicelayer) { gmap.addOverlay(mapservicelayer); dynMapOv = mapservicelayer; } function dynmapcallbackRep(Replayer) { gmap.addOverlay(Replayer); dynMapOv1 = Replayer; } function showAddress(address) { if(marker){ gmap.removeOverlay(marker); } if(address.indexOf(",Bangalore")) { address; } if(address.indexOf() == address.indexOf(",Bangalore")) { address+= ",Bangalore"; } if (geocoder) { geocoder.getLatLng( address, function(point) { if (!point) { alert(address + " not found"); } else { gmap.setCenter(point, 15); marker = new GMarker(point); gmap.addOverlay(marker); marker.openInfoWindow(document.createTextNode(address)); } } ); } } function identify(overlay, latLng) { if (overlay) return; clearResults(); // set the identify parameters var identifyParameters = new esri.arcgis.gmaps.IdentifyParameters(); identifyParameters.geometry = latLng; // location where the user clicked on the map identifyParameters.tolerance = 3; identifyParameters.layerIds = [0,1]; identifyParameters.layerOption = "all"; identifyParameters.bounds = gmap.getBounds(); var mapSize = gmap.getSize(); identifyParameters.width = mapSize.width; identifyParameters.height = mapSize.height; // execute the identify operation identifyTask.execute(identifyParameters, function(response, error) { // function to be called when the result is available // display error message (if any) and return if (hasErrorOccurred(error)) return; // note that the location where the user clicked on the map (latLng) is visible in this function through closure addResultToMap(response, latLng); }); } function addResultToMap(response, point) { debugger; // aggregate the result per map service layer var idResults = response.identifyResults; layers = {"0": [],"1": []}; for (var i = 0; i < idResults.length; i++) { var result = idResults; layers[result.layerId].push(result); } // create and show the info-window with tabs, one for each map service layer var tabs = []; for (layerId in layers) { var results = layers[layerId]; var count = results.length; var label = "", content = ""; switch(layerId) { case "0": if (count == 0) break; for (var j = 0; j < count; j++) { var attributes = results .feature.attributes; content = "<a href='#' onclick='showFeature(" + layerId + "," + j + ")'>" + attributes["Ward_Name"] + "</a><br>"; content += "<br>This is ward number: <b>" + attributes["Ward_No"] + "</b>" + "<br>" + " <b>Ward Population: </b>" + attributes["Ward_Popul"] + "<br>" + " <b>Ward Area: </b>" + attributes["Area"]+ " sqkm"; } break; case "1": if (count == 0) break; for (var k = 0; k < count; k++) { var attributes1 = results .feature.attributes; content = "<a href='#' onclick='showFeature(" + layerId + "," + k + ")'>" + attributes["AC_Name"] + "</a><br>"; content += " <b><font color='#0000FF'>" + attributes["AC_Name"] + " : "+ attributes["AC_No"] + "</font></b>" + "<br>" + " <b>No.of Wards: </b>" + attributes["No_of_Ward"] + "<br>" + " <b>Ward Names: </b>" + attributes["Ward_No__"]; } break; } tabs.push(new GInfoWindowTab(label, content)); } gmap.openInfoWindowTabsHtml(point, tabs); } function showFeature(layerId, index) { mapExtension.removeFromMap(overlays); var idResult = layers[layerId][index]; overlays = mapExtension.addToMap(idResult, {polygonOptions: { clickable: false}}); } function clearResults() { debugger; mapExtension.removeFromMap(overlays); gmap.closeInfoWindow(); } function hasErrorOccurred(error) { if (error) { alert("Error " + error.code + ": " + (error.message || (error.details && error.details.join(" ")) || "Unknown error" )); return true; } return false; } function showAdmin(){ debugger var arr = []; dynamicMap = new esri.arcgis.gmaps.DynamicMapServiceLayer("http://map2.janaagraha.org/arcgis/rest/services/IJ_Google/MapServer",null, 0.5, dynmapcallback); if(Repmap){ dynMapOv1._visible=false; } document.getElementById('Corp_0').checked=false; document.getElementById('MLA_1').checked=false; document.getElementById('MP_2').checked=false; if(document.getElementById('0').checked==true){ arr.push(0); dynamicMap.setVisibleLayers(arr); dynamicMap.refresh(); } if(document.getElementById('1').checked==true){ arr.push(1); dynamicMap.setVisibleLayers(arr); dynamicMap.refresh(); } identifyTask = new esri.arcgis.gmaps.IdentifyTask("http://map2.janaagraha.org/arcgis/rest/services/IJ_Google/MapServer"); GEvent.addListener(gmap, "click", identify); } function showRep(){ debugger var arr = []; Repmap = new esri.arcgis.gmaps.DynamicMapServiceLayer("http://map2.janaagraha.org/arcgis/rest/services/IJ_ElecRep/MapServer",null, 0.5, dynmapcallbackRep); if(dynamicMap){ gmap.removeOverlay(dynMapOv); } document.getElementById('0').checked=false; document.getElementById('1').checked=false; if(document.getElementById('Corp_0').checked==true){ var corp= document.getElementById('Corp_0').id.split('_')[1]; arr.push(0); Repmap.setVisibleLayers(arr); Repmap.refresh(); } if(document.getElementById('MLA_1').checked==true){ var mla= document.getElementById('MLA_1').id.split('_')[1]; arr.push(1); Repmap.setVisibleLayers(arr); Repmap.refresh(); } if(document.getElementById('MP_2').checked==true){ var mp= document.getElementById('MP_2').id.split('_')[1]; arr.push(2); Repmap.setVisibleLayers(arr); Repmap.refresh(); } } </script> </head> <body onload="initialize();" onunload="GUnload();"> <div id="mainWindow" style="width: 100%; height: 100%;"> <form action="#" onsubmit="showAddress(this.address.value); return false"> <div id="header"> <span>Bangalore /</span><span id="subheader"> Select your location to get more information</span> <input type="text" size="60" name="address" value="Walton road" style="width: 146px; height: 24px;"/> <input type="submit" value="Search!" /> </div> </form> <div id="accordion2"> <dl class="accordion2" id="slider2"> <dt>Find Complaints</dt> <dd> <span>This lightweight (1.2 KB) JavaScript accordion can easily be customized to integrate with any w</span> </dd> <dt>Find Elected Representatives</dt> <dd> <input id="Corp_0" type="radio" name="group2" value="Corporator" onclick="showRep();"/>Corporator<br/> <input id="MLA_1" type="radio" name="group2" value="MLA" onclick="showRep();"/>MLA<br/> <input id="MP_2" type="radio" name="group2" value="MP" onclick="showRep();"/>MP </dd> <dt>Administrative Divisions</dt> <dd> <input id="0" type="radio" name="group1" value="Wards" onclick="showAdmin();"/>Wards<br/> <input id="1" type="radio" name="group1" value="AC" onclick="showAdmin();"/>Assembly Constituency </dd> </dl> </div> <div id="gmap" class="shadow" style="width: 1260px; height: 790px"> </div> </div> <script type="text/javascript"> var slider2=new accordion.slider("slider2"); slider2.init("slider2",0,"open"); </script> </body> </html>
... View more
12-11-2011
11:59 PM
|
0
|
0
|
600
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|