POST
|
Please Help arcgis server - Geoprocessing for download Shape File by silverlight c# - Geographic Information Systems Stack Exchange
... View more
04-21-2015
11:01 AM
|
0
|
1
|
3586
|
POST
|
arcgis silverlight api - ArcGISDynamicMapServiceLayer Custom Renderer - Geographic Information Systems Stack Exchange Any help?
... View more
04-07-2015
08:04 AM
|
0
|
0
|
2669
|
POST
|
I m getting invalid Spatial Reference error. System.ArgumentException was unhandled by user code Message=Invalid spatial reference. StackTrace: at ESRI.ArcGIS.Client.Projection.WebMercator.ToGeographic(Geometry proj) at Delasoft.Hpm.ViewModel.HpmBaseEsriMapViewModel.OnGoogleMapOpen(Object param) at Telerik.Windows.Controls.DelegateCommand.Execute(Object parameter) at Telerik.Windows.Controls.RadMenuItem.ExecuteCommand() at Telerik.Windows.Controls.RadMenuItem.OnClickImpl() at Telerik.Windows.Controls.RadMenuItem.OnClick() at Telerik.Windows.Controls.RadMenuItem.ClickItem() at Telerik.Windows.Controls.RadMenuItem.HandleMouseUp() at Telerik.Windows.Controls.RadMenuItem.OnMouseLeftButtonUp(MouseButtonEventArgs e) at System.Windows.Controls.Control.OnMouseLeftButtonUp(Control ctrl, EventArgs e) at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags) InnerException:
... View more
11-10-2014
11:57 AM
|
0
|
2
|
503
|
POST
|
I have a right click menu at one of maps feature layer. when use clicks on 1 menu item he should be able to open google map with same cordinates Like this url Google Maps so I have the code like this in this menu Item command: private void OnGoogleMapOpen(object param) { var e = param as GraphicMouseButtonEventArgs; MapPoint clickpoint = HpmMap.ScreenToMap(e.GetPosition(HpmMap)); double X = clickpoint.X; double Y = clickpoint.Y; var mercator = new WebMercator(); HtmlPage.Window.Navigate( new Uri("https://www.google.com/maps/@"+X.ToString()+","+Y.ToString(), UriKind.Absolute), "_blank"); } I see x and y are not Lat/Long. How to get lat long for this graphic/ geometry.
... View more
11-07-2014
09:50 PM
|
0
|
4
|
3325
|
POST
|
How I load this ContextMenu when user make a right Click? Any code snippet? Please share
... View more
11-06-2014
05:12 PM
|
0
|
0
|
744
|
POST
|
How I load this ContextMenu when user make a right Click? Any code snippet? Please share
... View more
11-06-2014
05:12 PM
|
0
|
0
|
744
|
POST
|
Right click Open Contex Menu on Layer Silverlight 3.2 - Geographic Information Systems Stack Exchange How I can Open a RadContextMenu (telerik) When User Click on Layer (Feature Layer / Graphic Layer) and allow user to do different task etal : Show Details of Geometry, Edit Option For Geometry, Edit/Delete Other information for Graphic. other Task Like Running Code Behind & doing Db changes etc. My Application is in Prism 4.2 & MVVM. ArcGIS Silverlight 3.2
... View more
11-06-2014
02:43 PM
|
0
|
0
|
2110
|
POST
|
Everything was right Except 1 thing. My Map is insider a Dock Panel where I have a Grid so when I gave the same Column & Row which i Mentioned for Map to InfoWindow.I worked.
... View more
11-06-2014
01:38 PM
|
0
|
0
|
450
|
POST
|
My Fields Are same I checked during Debug & Map Binding is also there Map="{Binding ElementName=HpmEsriBaseMap}" with the map. dmv is my ViewModel where I have these properties. Actually I need Map Object InfoWindow, Editor to work with in my ViewModel so I assigned defiend xaml things to my ViewModel from constructor and used. If there is any other good way to do please let me know. I did exactly same way defiend in link provided by you as I followed that only from start. But things are not working out. even I assign a just a texbox datatemplate with No attributes still dont show the datatemplate in info just round ball with arrow comes over geometry
... View more
11-06-2014
12:36 PM
|
0
|
1
|
450
|
POST
|
My Project is in Prism 4.2 & MVVM. I defined this infowindow in xaml & from map.xaml.cs Constructor I assigned it to my Property in this way. public HpmsBaseEsriMap() { InitializeComponent(); if (DesignerProperties.IsInDesignTool == false) { var dmv = ServiceLocator.Current.GetInstance<IHpmsBaseEsriMapViewModel>(); dmv.HpmEditor = this.HpmsRoutesSelectionEditorNme; dmv.HpmMap = this.HpmEsriBaseMap; dmv.HpmInfoWindow = this.HpmInfoWindow; dmv.HpmMapTip = this.MyMapTip; dmv.BindingMap(); DataContext = dmv; } }
... View more
11-06-2014
06:55 AM
|
0
|
0
|
450
|
POST
|
arcgis silverlight api - DataTemplate not appearing in InfoWindow - Geographic Information Systems Stack Exchange Can Any one please help me in this.
... View more
11-05-2014
10:22 AM
|
0
|
5
|
2341
|
POST
|
My Project is in Silverlight 5, MVVM & Prism 4. I have a requirement for Feature Layer Selection. when User Select on map, Graphic should get highlighted & show a menu with 2 options. 1. Info Details. 2 user can edit the Information. if use click on 1 graphic Like Road then this is the functionality. & When user select and area all roads get highlighted & Corrospoinding Rows in Another datagird available in same screen should get highlighted. at the same time map should also have extra details in Popup Listbox etc. I m not getting any kick start for this. I have to allow user to break the geometry also like User can break 1 road in to parts. Please help me. Any guide line for doing this. Eagerly waiting for Reply So far I am able to Display map with MVVM, load Dynamic Layer. Show Hide Feature layers, Now I my messing up with Selection at Feature layer. & Editing. Please find attachment for my work.
... View more
10-29-2014
07:42 AM
|
0
|
1
|
1997
|
POST
|
Currently I m building a Application which is in Silverlight 5, Prism 4, Telerik Controls, Open RIA Service, Entity Framework 6. This application have lot of work in ArcGIS Silverlight Api. I m able to Display map Using . On the top of this Map I've Few Fetaure Layers for Roads, Traffic Signs & Lot may other Layers Like this. I'm able to project these layer on Map too 1 by 1 by MVVM pattern. Now I tried to Use esri:Editor to allow user to select on click & Selection Rectangle with the help of ArcGIS API for Silverlight - Interactive Samples | ArcGIS for Developers this link. Now I m able to select the Roads when use click on it. or select some area. But I m unable to get the data selected in my ViewModel. More I also need to Draw tool with MVVM how to do It. I m unable to get some good resource for this. I need to Download the shape file when use select on map too. Please help
... View more
10-28-2014
08:36 AM
|
0
|
1
|
2526
|
POST
|
Hello All, I have around 3000 Point which contains x,y, spatialReference,attributes{id:'329',owner:'me'}; These all Points are available with 1 WKID, now I want to Project these Points on map with Different WKID. eg: 4326 [points spatialef] to 102113 [Map spatialRef]. I'm able to Project these Points on Map By using taskParameter, GeometryService But Point Graphics on Map doesn't contain the attributes after Projection. Actually These attributes I've to use in when user will select the points on Map. Resuleted of Selection I'll change the graphic color of Pin and releated data presented on HTML page will get selected. What I tried : Actually Geometry Doesn't contain Any Attribute While graphic contains attributes. So I extended
dojo.extend(esri.geometry.Point, {
attributes: null
}); and set My Attributes to this with This Points Array i created taskParameter --> transformed to another wkid --> project these transformed points by GeometryService. checked outpoint OnProjectCOmplete have attributes null, undefiend. Next time I created graphic array and tried to Project on Map but GeomteryService say Wkid is miss or some other error it give. Please suggest some sloution.. I read somewhere that I can not transform Graphics and then project these graphics Is it true. Thank Anand
... View more
09-04-2013
05:22 AM
|
0
|
1
|
652
|
POST
|
Hello All, Background : I am new to ArcGIS. Currently I'm working on Migration of 1 Web Application which was build upon WebADF , Vb.Net using Ajaxcontrolles,*.acmx,*.aspx etc. Now we are migrating this Applicaiton to ArcGIS Javascript API. Problem : When I'm using Online Geometry Service with :http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer giving me issue like following: Issues : XMLHttpRequest cannot load http://services.arcgisonline.com/ArcGIS/rest/info?f=json. Origin http://localhost:49236 is not allowed by Access-Control-Allow-Origin. mainform.aspx:1 1. Port error: Could not establish connection. Receiving end does not exist. miscellaneous_bindings:235 XMLHttpRequest cannot load http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/�?�atialReference%22%3A%7B%22wkid%22%3A102113%7D%7D%5D%7D&transformation=4326. Origin http://localhost:49236 is not allowed by Access-Control-Allow-Origin. http://localhost:49236/arcgisserver/apis/javascript/proxy/proxy.ashx?http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project (404 not found) -- Here I have no proxy.aspx etc in my project
/* Map code*/
/// <reference path="esri-jsapi-vsdoc.js" />
dojo.require("esri.map");
dojo.require("esri.tasks.geometry");
dojo.require("esri.arcgis.utils");
var map, geometryService;
var LATLANGS;
var gsvc;
var xmin=-144.13584773952124;
var ymin = 7.981485927970198;
var xmax = -52.76454682003924;
var ymax = 68.8956865409582;
var wkid_base = 4326;
var fromWKID = 102113;
var toWKID = 4326;
var gometry_url_base = "http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer";
var pin_width = 16;
var pin_height = 16;
var base_center_map = [-75.67, 39.69];
var defaultZoom = 12;
var map_uiid = "basemapid";
var temp_layers = [];
function init() {
}
/* Runs when full document get Loaded */
//dojo.ready(init);
/* create Base Map if <map> parameter is null*/
function mapProxySettings() {
esriConfig.defaults.io.proxyUrl = "/arcgisserver/apis/javascript/proxy/proxy.ashx";
esri.config.defaults.io.alwaysUseProxy = false;
esri.config.defaults.io.corsEnabledServers.push("tasks.arcgisonline.com");
esri.config.defaults.io.corsDetection = true;
}
/* Main Function Called From DataManagerWithMap.ascx */
function rscMap(json) {
createMap(json);
var prms = transformMultiPoints(json, fromWKID, toWKID);
var symbol = defaultSymbol();
projectPointsOnMap(prms, toWKID, symbol,false);
}
/* FUNCTION FOR MARKER HIGHLIGHT*/
function rscMapselectedrows(jsonSelete) {
var prms = transformMultiPoints(jsonSelete, fromWKID, toWKID);
var symbol = defaultSymbol();
projectPointsOnMap(prms, toWKID, symbol, true);
}
/* Responsible for Creating Base Map*/
function createMap(json) {
if (map == null) {
map = new esri.Map(map_uiid, {
basemap: "streets",
center: base_center_map, //long, lat
zoom: defaultZoom
});
createGeometryService(gometry_url_base);
}
}
/* create geometry Service */
function createGeometryService(gmurl) {
geometryService = new esri.tasks.GeometryService(gmurl);
console.log(geometryService);
mapProxySettings();
}
/*Transform Points from JSON */
function transformMultiPoints(json, fromwkid, towkid) {
var PrjParams = null;
if (json) {
if (json.points) {
if (fromwkid != towkid) {
var outSR = new esri.SpatialReference({ wkid: towkid });
var mp = new esri.geometry.Multipoint(new esri.SpatialReference({ wkid: towkid }));
mp.points = json.points;
PrjParams = new esri.tasks.ProjectParameters();
PrjParams.geometries = [mp];
PrjParams.outSR = outSR;
PrjParams.transformation = {
wkid: parseInt(towkid)
}
}
}
}
return PrjParams;
}
function projectPointsOnMap(projectionParams, towkid, symbol, selection) {
if (symbol == null) {
symbol = defaultSymbol();
}
if (selection) {
symbol = highlightSymbol();
}
if (selection ==false && map != null && temp_layers.length > 0) {
clearLayers();
}
geometryService.project(projectionParams, function (outputpoint) {
var mp = new esri.geometry.Multipoint(new esri.SpatialReference({ wkid: towkid }));
mp.points = outputpoint[0].points;
mp = esri.geometry.geographicToWebMercator(mp);
var graphic = new esri.Graphic(mp, symbol);
var layer = new esri.layers.GraphicsLayer();
layer.add(graphic);
map.addLayer(layer);
temp_layers.push(layer);
if (outputpoint[0].points.length > 0) {
map.centerAndZoom(outputpoint[0].points[0], defaultZoom);
} else {
map.centerAndZoom(base_center_map, defaultZoom);
}
});
}
function clearLayers() {
dojo.forEach(temp_layers, function (layer) {
map.removeLayer(layer);
});
temp_layers = [];
}
/* Default Symbol Marker Green Color PIN*/
function defaultSymbol() {
var symbol = new esri.symbol.PictureMarkerSymbol({ "angle": 0, "xoffset": 0, "yoffset": 12,
"type": "esriPMS", "url": "http://static.arcgis.com/images/Symbols/Basic/SpringGreenStickpin.png",
"imageData": "",
"contentType": "image/png", "width": 24, "height": 24 });
return symbol;
}
/* High Light Symbol Marker Orange Color PIN*/
function highlightSymbol() {
var symbol = new esri.symbol.PictureMarkerSymbol({ "angle": 0, "xoffset": 0, "yoffset": 12,
"type": "esriPMS", "url": "http://static.arcgis.com/images/Symbols/Basic/OrangeStickpin.png",
"imageData": "",
"contentType": "image/png", "width": 24, "height": 24 });
return symbol;
}
auto Map XHR Request :
http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/project?f=json&outSR=4326&inSR=4326&geometries={%22geometryType%22%3A%22esriGeometryMultipoint%22%2C%22geometries%22%3A[{%22points%22%3A[[-75.656784%2C39.560282]%2C[-75.632698%2C39.58751]%2C[-75.65255%2C39.577474]%2C[-75.686066%2C39.547535]%2C[-75.682438%2C39.54095]%2C[-75.694216%2C39.575307]%2C[-75.651307%2C39.580395]%2C[-75.6482%2C39.575169]%2C[-75.648215%2C39.549923]%2C[-75.687168%2C39.57538]%2C[-75.629991%2C39.536007]%2C[-75.699769%2C39.567282]%2C[-75.645382%2C39.543401]%2C[-75.63618%2C39.571134]%2C[-75.6197%2C39.560688]%2C[-75.627753%2C39.529639]%2C[-75.677432%2C39.560432]%2C[-75.686516%2C39.593999]%2C[-75.677395%2C39.582762]%2C[-75.674255%2C39.572248]%2C[-75.619297%2C39.553027]%2C[-75.675617%2C39.515461]%2C[-75.650513%2C39.5791]%2C[-75.63412%2C39.587994]%2C[-75.638361%2C39.5767]%2C[-75.610946%2C39.544501]%2C[-75.617597%2C39.55509]%2C[-75.66168%2C39.561739]%2C[-75.653888%2C39.521338]]%2C%22spatialReference%22%3A{%22wkid%22%3A4326}}]}&transformation=4326
Response when I copy pase above in Browser
{"geometryType":"esriGeometryMultipoint","geometries":[{"points":[[-75.656784,39.560282],.. and more}]}
How to solve this X browser access origion policy issuse? More about configuration i need to know: 1. Do I need to run some Geometry Service? / Do I need to have any ArcGIS sever On My side while I work with JS api? 2. How to Configure Proxy? 3. I looked into http://developers.arcgis.com/en/javascript/jshelp/inside_esri_request.html and tried setting proxy.ashx c# and proxy.config wit vb.net (My project stop running and gives different error). Please help I have 24hrs to solve this else I'll be in big trouble. I already did enough from 2 days 😞 but no success. Waiting for your kind reply Kirti
... View more
06-06-2013
06:01 AM
|
0
|
1
|
1581
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|