POST
|
I would approach this a little different. I would separate the line from the arrow head. something Like this: (please forgive the hodgepodge of code) var trackingLayer; var trackingPath; var trackingCurrentSymbol; var trackingCurrentGraphic; init { var trackingLayer = new esriGraphicsLayer({ id: "trackingLayer" }); map.addLayer(trackingLayer); // init line as usual trackingCurrentSymbol = new SimpleMarkerSymbol( { "color": { r: 255, g: 99, b: 3, a: 1 }, "path": "M29.225,23.567l-3.778-6.542c-1.139-1.972-3.002-5.2-4.141-7.172l-3.778-6.542c-1.14-1.973-3.003-1.973-4.142,0L9.609,9.853c-1.139,1.972-3.003,5.201-4.142,7.172L1.69,23.567c-1.139,1.974-0.207,3.587,2.071,3.587h23.391C29.432,27.154,30.363,25.541,29.225,23.567zM16.536,24.58h-2.241v-2.151h2.241V24.58zM16.428,20.844h-2.023l-0.201-9.204h2.407L16.428,20.844z", "size": 21, "style": "esriSMSPath", "type": "esriSMS", "xoffset": 0, "yoffset": 0 } ); } onUpdateCurrent { // Get GPS // Add vertices to path // Update arrow. lastPosition = me.currentPosition; currentPosition = new Point(long, lat); currentHeading = me.computeAngle(me.lastPosition, me.currentPosition); trackingCurrentGraphic.setGeometry(currentPosition); trackingCurrentSymbol.setAngle(currentHeading); trackingCurrentGraphic.setSymbol(trackingCurrentSymbol); } computeAngle = function(pointA, pointB) { var dLon = (pointB.x - pointA.x) * Math.PI / 180; var lat1 = pointA.y * Math.PI / 180; var lat2 = pointB.y * Math.PI / 180; var y = Math.sin(dLon) * Math.cos(lat2); var x = Math.cos(lat1) * Math.sin(lat2) - Math.sin(lat1) * Math.cos(lat2) * Math.cos(dLon); var bearing = (Math.atan2(y, x) * 180 / Math.PI) + 180; bearing = ((bearing + 360) % 360).toFixed(1); //Converting -ve to +ve (0-360) if (isNaN(bearing)) bearing = 0; return bearing; }; SVG Icons: Icons
... View more
12-27-2015
01:32 PM
|
0
|
0
|
2389
|
POST
|
Assuming you mean in an Offline Mode - I would think your best bet is to create a PDF on the device then "send" it somehow to your printer. In a Cordova environment you could use something like Bytescout PDF Generator SDK for Javascript | ByteScout I'm sure there is some equivalent in the native environments. If you are connected you can simply use the ArcGis Server print services. as in: Print | ArcGIS API for JavaScript
... View more
08-16-2015
09:02 AM
|
0
|
0
|
561
|
POST
|
I spent the last week convincing management to use the Web App Builder. But come to find out they won't have Portal spun up till January. They will not white list nor use AGOL and I'm feeling stuck. I've worked around the Web map issue, but am having trouble on bypassing security. I don't really need it as they lock down the IIS dir with Active directory - only authorized NT users can see the url. I'm using the Web AppBuilder dev edition. Thanks in advance.
... View more
05-20-2015
07:54 AM
|
0
|
0
|
2704
|
POST
|
We are trying to setup collector for our project and have been hitting this odd error. Can someone translate? " Map Download Failed Unable to download the map. The operation couldn't be completed. Failed to create table descriptions from the input. ObjectID-based attachments are not supported. Failed to create table descriptions from input. ObjectID-based attachments are not supported. OK " [The repetition is intentional. the error message reads exactly that way.] We are removing attachment and trying again, but we will need attachments. Was there a note about attachments that I forgot to read? Thanks in advance.
... View more
02-24-2015
06:58 AM
|
0
|
2
|
5370
|
POST
|
You should have no issues with the functionality, the sdk's are very similar and your animations can be easily handled with libs like TweenJS. My biggest issues was giving up my compiler ; )
... View more
01-13-2015
06:42 AM
|
0
|
0
|
1250
|
POST
|
It's still a trigger, but you could easily call a web service, from there you have all options ava - ArcObjects, direct db interaction, ect. How to invoke a Web Service from a Stored Procedure - CodeProject
... View more
08-28-2014
09:27 AM
|
1
|
0
|
998
|
POST
|
Thank you all, I tried Riyas' solution first as it looked the easiest, but I think all of your answers would have solved my issue. Thanks again to all.
... View more
08-11-2014
11:13 AM
|
0
|
0
|
2040
|
POST
|
Arrrg! I'm having a terrible time translating this connection string, would someone mind taking a stab at it? Working connection in everything else: //public string connectString = "SERVER=11.111.11.111;DATABASE=ABCDE;PORT=5121;USER=sde;PASSWORD=password;VERSION=SDE.DEFAULT"; Don't work: IPropertySet connectionProps = new PropertySet(); connectionProps.SetProperty("dbclient", "Oracle11g"); connectionProps.SetProperty("server", "11.111.11.123"); // Also tried: [11.111.11.123:5121 | 11.111.11.123:5121/ABCDE] connectionProps.SetProperty("instance", "5121"); // Also tried [11.111.11.123:5121/ABCDE | 11.111.11.123:5121 | "" ] connectionProps.SetProperty("database", "ABCDEF"); // Also tried [ "" | "SDE" ] connectionProps.SetProperty("version", "sde.DEFAULT"); connectionProps.SetProperty("user", "SDE"); connectionProps.SetProperty("password", "password"); return workspaceFactory.Open(connectionProps, 0); I've tried every bloody combination I can think of. I usually get "Entry for SDE instance not found in services file" or "Network I/O error" or "SDE not running on server" Thanks in advance!
... View more
08-04-2014
09:01 AM
|
0
|
5
|
9619
|
POST
|
Q: Are you two event handlers [gp_jobCompleteHandler | gp_getResultDataCompleteHandler ] getting called at all?
... View more
06-16-2014
05:35 AM
|
0
|
0
|
719
|
POST
|
I saw this several times with IE and Silverlight. Nothing I did got that stupid browser to drop that cache - Until - I changed the URL. I added and arbitrary where clause rnd() = sameRND(). And on the url's I added a &rnd=rnd() paramater. This tricked IE into thinking it was a different URL and made the call properly.
... View more
06-13-2014
05:13 AM
|
0
|
0
|
1238
|
POST
|
We have a client with their data in State Plane Coordinate system. They would like to publish to ArcGIS Server and use the ESRI base maps (web mercator) There is one Feature Class layer they would like to edit using an app we will build (simply adding some points) They have a concern about projecting their data on the fly to Web Mercator and would like to avoid that, but do not want to change the base projection from State Plane. Does someone know the "Proper" way to handle this? There is lots of talk about Replicated data - Nightly py processes and syncing routines. But this is sounding way overboard. Seems like we are missing something simple. Is it not possible to publish in a different projection and still be able to edit our feature classes in the GeoDB and keep everything in sync? Thanks in advance.
... View more
05-12-2014
01:47 PM
|
1
|
0
|
416
|
POST
|
The link for others: https://github.com/rscheitlin/eSearch/blob/master/Enhanced%20Search%20Widget%20XML%20Configuration.pdf
... View more
03-06-2014
12:29 PM
|
0
|
0
|
616
|
POST
|
Ya, just looked again in Enhanced Search Widget XML Configuration Page*1*of*13* * Developed*By:*Robert*Scheitlin*Version 3.6.4 �?? Mar 3, 2014 But could not see any example with eserach= or search=. I swear I read it ; ) http://gislap134/FlexViewer2.1/index.html?esearch=R1&slayer=0&exprnum=0&showdatagrid=true But lets just take this appart: -- esearch=R1 where r1 is the <layer><name>? -- slayer=0 where 0 is the layer #? but isn't that specified in the <layer><url> as in http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Louisville/LOJIC_LandRecords_Louisville/MapServer/2 -- exprnum=0 where 0 is the string to search for? -- Showdatagird=true - self explanatory. I'm using the following pdf: https://raw.github.com/rscheitlin/eSearch/master/Enhanced%20Search%20Widget%20XML%20Configuration.pdf
... View more
03-06-2014
11:01 AM
|
0
|
0
|
616
|
Title | Kudos | Posted |
---|---|---|
1 | 09-16-2025 09:54 AM | |
1 | 05-12-2014 01:47 PM | |
1 | 06-22-2017 08:13 AM | |
1 | 02-12-2018 09:03 AM | |
1 | 01-28-2016 03:55 PM |
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|