POST
|
Does this make sense? function zoomToLocation(location) {
pt = new esri.geometry.Point(location.coords.longitude, location.coords.latitude);
var outSR = new esri.SpatialReference({ wkid: 3006});
gsvc.project([ pt ], outSR, function(projectedPoints) {
pt = projectedPoints[0];
map.centerAndZoom(pt, 8);
});
}
... View more
12-15-2011
09:07 AM
|
0
|
0
|
617
|
POST
|
Ok, thanks. Is there a sample of it being used anywhere? The spatial reference is WKID: 3006. Appreciate the help!
... View more
12-14-2011
02:35 PM
|
0
|
0
|
617
|
POST
|
Hi there, i'm kinda new to this and i'm trying to get the "Current Location with temporal renderer" sample for mobiles to work with a custom map. The map i'm using has a different spatial reference. So when the position is displayed, it is way off. As far as i can tell, the coordinates in the sample are converted from WGS84 (format in the Geolocation API) to Web Mercator. Is there any way to convert them to the spatial reference my map is using? Here's the sample i used (i just changed the map URL in the code): http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/mobile_geolocaterenderer.html
... View more
12-14-2011
11:05 AM
|
0
|
6
|
3026
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|