POST
|
Hi, now i solved my problem with the rest api. the problem was that the browser auto correct the address from http... to https..., which is not working in my case. But the connection via arccatalog as user over internet isn't working.
... View more
04-23-2012
04:00 AM
|
0
|
0
|
608
|
POST
|
hi, thx for the reply! no, there is no log file created yet. but it seems that my problem is not the rest-api! Because i can connect via ArcCatalog to manage and create my mapservices. But when i try to connect as user i get these massage: "Unable to connect... No resource could be found at that address" thanks, Sebastian
... View more
04-20-2012
01:00 AM
|
0
|
0
|
608
|
POST
|
Hi, i have ArcGIS Server10 and two running mapservices. But nothing is listed in my Browser under rest?! http://<host>/ArcGIS/rest/services/ -> is empty in the rootfolder of my server is the rest folder with the css and two config files. Any Ideas what i forgot? Thanks for your time,
... View more
04-19-2012
12:03 AM
|
1
|
5
|
3465
|
POST
|
thanks kelly for your suggestion. I try the same but the infowindow lost than its anchorpoint and moved not with the map while panning. Now, i customised the common infowindow for my need. regards
... View more
04-01-2012
11:44 PM
|
0
|
0
|
154
|
POST
|
Need help urgend, how can i make the custom infoWindow still visible while panning in the map? The sample i used: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm Thanks for any tips!
... View more
03-29-2012
10:03 AM
|
0
|
2
|
564
|
POST
|
Hi, in the samples InfoWindow Custom the InfoWindow is hidden while i panning in the map. How can i set it still visible at the point geometry? I tryed around to disable the code in InfoWindow.js: //this._eventConnections.push(dojo.connect(map, "onPanStart", this, this.hide)); and set it to: this._eventConnections.push(dojo.connect(map, "onPanStart", this, this.show)); the InfoWindow is shown, but it lost the anchor to its location pt. In the second try, i set the position back when i start panning. dojo.connect(map, "onPan", function () {
map.infoWindow.show(pt, map.getInfoWindowAnchor(pt));
}); the code works, but it is not the optimal solution because, the infoWindow is not bind to the background and must jump back every time. Is there a way to make the behavior of the custom InfoWindow like the other InfoWindow samples? Any help on this will be appreciated!! Thanks
... View more
03-29-2012
02:00 AM
|
0
|
1
|
1198
|
POST
|
Thx for the reply! I tested and it worked well. But due to performance reasons i changed my sr. in the .mxd to 102100 and recreated the mapcache. Now, i use the geographicToWebMercator() method without the geometry service. Hope it was the right way!
... View more
02-24-2012
12:20 AM
|
0
|
0
|
403
|
POST
|
ahh thanks so much!! but im a bit confused, where can i find the SOURCE SR? My pt comes from the GPS signal and to use the same SR like my initextent doesn't make sense for me. Did I need to use wkid:102100 like thes examples: correct location? Or is it the WGS 1984 (4326), I mean it must be a Geographic Coordinate Systems, right? Sorry for that question! Cant test it at the moment, but thanks for all the answers!
... View more
02-17-2012
08:14 AM
|
0
|
0
|
403
|
POST
|
now i tryed to convert the coordinates, but i got the error (Fehler: _19.spatialReference is undefined).
var gsvc = new esri.tasks.GeometryService("http://www.rakmaps.com/ArcGIS/rest/services/Geometry/GeometryServer");
var pt = new esri.geometry.Point(location.coords.longitude, location.coords.latitude);
var outSR = new esri.SpatialReference({ wkid: 32640 });
// alert(outSR);
gsvc.project([ pt ], outSR, function(projectedPoints) {
alert("test");
pt = projectedPoints[0];
});
if (!posGraphic) {
addGraphic(pt);
} else { //move the graphic if it already exists
posGraphic.setGeometry(pt);
}
map.centerAndZoom(pt, 3);
i'm not sure if i'm on the right way. Does this make sense? Or is my initialExtent wrong. Thank you for your reply
... View more
02-17-2012
05:13 AM
|
0
|
0
|
403
|
POST
|
Hi all, i have a custom ArcGISTiledMapServiceLayer and i like to use the geolocation API on it. When i test the function (my current position is in the map!) it shows and zoom to a location point which is NEVER in my mapextent. My spatialReference is wkid: 32640! Did i neet to convert the coordinates like this post: convert coordinates) ?
function init() {
initialExtent = new esri.geometry.Extent({ "xmin": 351177.108232252, "ymin": 2824081.4592078, "xmax": 438159.053029475, "ymax": 2878255.00505489, "spatialReference": { "wkid": 32640} });
map = new esri.Map("Maparea", { extent: initialExtent});
LayerTiledMap1 = new esri.layers.ArcGISTiledMapServiceLayer("http://www.rakmaps.com/ArcGIS/rest/services/RAK_Businessmap/MapServer", { id: "imageMap" });
map.addLayer(LayerTiledMap1);
}
Function for geolocation:
function getGeolocation() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(setLocation, locationError);
} else {
alert("Geolocation not supported on this device.");
}
}
function setLocation(location) {
var pt = esri.geometry.geographicToWebMercator(new esri.geometry.Point(location.coords.longitude, location.coords.latitude));
// doesen't work, too: var pt = esri.geometry.geographicToWebMercator(new esri.geometry.Point(location.coords.longitude, location.coords.latitude, new esri.SpatialReference({wkid: 32640})));
if (!posGraphic) {
addGraphic(pt);
} else {
posGraphic.setGeometry(pt);
}
map.centerAndZoom(pt, 3);
}
function addGraphic(pt) {
var symbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 30,
new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID,
new dojo.Color([210, 105, 30, 0.5]), 8),
new dojo.Color([210, 105, 30, 0.9])
);
posGraphic = new esri.Graphic(pt, symbol);
map.graphics.add(posGraphic);
}
Appreciate the help!
... View more
02-17-2012
01:40 AM
|
0
|
6
|
1126
|
Title | Kudos | Posted |
---|---|---|
1 | 04-19-2012 12:03 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|