POST
|
Hello, I'm creating an application for someone and I'm using the TimeSlider. This all works as expected, but I want to improve the experience for the user. At the moment you can grab the bar on the slider between the 'from' and 'to' dates and drag the slider along to a new date. The annoying thing with this is that the map only updates when the user lets go of the mouse button, i.e. the time-extent-change event only fires on mouse up. This unfortunately means you can't actually drag the slider back and forth to view changes in a fluid way, you have to lift you finger off the mouse button every time you want to view the changes. This isn't a great experience for the user. I've had a look at the HTML and CSS of the slider but can't work this out myself, so can anyone tell me if/how you can change the time-extent-change event to fire when the slider is moved to the next/previous date without being tied to the mouse-up action? I hope that makes sense. My backup plan is to ditch the ESRI slider and look a JQuery but since I've got all my code working I'd rather make a small change if possible rather than re-working the whole thing. Thank you. Mark.
... View more
07-13-2020
01:10 AM
|
0
|
0
|
57
|
POST
|
Victor, Thanks for your reply. I know the proxy file works ok because I'm using it for credentials to access one of my own secured map services. When I test using https://< servername>/proxy.ashx?<featureserviceurl> on my own secured service it works fine, but this third-party service from their Portal site gives me this error in a browser: The remote server returned an error: (401) Unauthorized. Line 560: req.Referer = PROXY_REFERER; Line 561: writeRequestPostBody(req, bytes); Line 562: return req.GetResponse(); Line 563: } Line 564: I added the log file to <ProxyConfig as you suggested, but nothing gets written to it for the above error. I deliberately made my secured service error to make sure the log file was working ok and it is. Something else to mention, I have managed to access the tokens and make requests using dot net NTLM authentication, so I can actually tap into the service and deserialize the JSON to get to features using code behind, but I need to get this to work using JavaScript and the Proxy page. I have been told (when using the dot net NTLM authentication) that I must specify client=requestip like so: request.AddParameter("client", "requestip"). So I was wondering if that has any bearing on the Proxy parameters which I'm currently not doing? Thanks.
... View more
04-28-2020
05:33 AM
|
0
|
0
|
22
|
POST
|
Hello, I have tried all sorts of things before reaching out here, but I'm afraid I'm stuck. I need to consume a feature layer service from a third party ESRI Portal site. The service is secured using a Dynamic Token and I have been supplied a username and password to access the service. If I simply use a browser to get to the REST endpoint of the service I get prompted to login, which I can and I can see the layers in the service listed, so I know the login works. My problem is I can't find a complete walk-through of how to do this for the JS API and I've been unable to piece together the information I've found. I'm using V3.28 of the API but I can change that if needed, and I'm using Version 1.1.2 of the Proxy pages, and my app is dot net V4.5. I'm familiar with the Proxy page and its use but not in the context of services with Dynamic Tokens. So, in my JavaScript I add a proxy rule for where the service is: esri.addProxyRule({ urlPrefix: "thedomain.co.uk", proxyUrl: "proxy.ashx" }); I think the problem then lies in the proxy config. I've found various suggestions online, so what I have below may contain things that aren't required, or are just wrong: <serverUrl url="https:// thedomain .co.uk" tokenServiceUri="http:// thedomain .co.uk/tokens/" matchAll="true" domain=" thedomain .co.uk" host="http://mydomain/" dynamicToken="True" username="portalUsername" password="portalpassword" ></serverUrl> No matter what I've tried, I keep getting prompted with a login box when I launch my API. What I'm trying to achieve is adding the feature service to my map without a login box appearing - I'm expecting the proxy details to handle that as all request to the service will be going through the proxy. Am I missing something fundamental here? If I had a working example to see then I can usually work things out from it, but I just haven't been able to find one. Can anyone please point me to an end-to-end example or make suggestions here? Thank you, Mark.
... View more
04-27-2020
06:10 AM
|
0
|
2
|
79
|
POST
|
Hello, I posted this question back in 2014 and didn't get any responses. I must have found an alternative approach back then, but now I need to do it again and I'm still stuck. I have a graphics refresh issue. I'm adding a PictureMarkerSymbol into a graphics layer which has a png image as its source url. var theSymbol = new esri.symbol.PictureMarkerSymbol({ "url" : "IMAGES/TestImage.png" , "height" : 30, "width" : 30 }); var mapPoint = new esri.geometry.Point(350000, 900000, new esri.SpatialReference({ wkid: 27700 })); var graphic = new esri.Graphic(mapPoint, theSymbol); customGraphicsLayer.add(graphic); This works fine, but the problem is the source png image changes periodically (but the name TestImage.png remains the same), it's updated externally and I need the graphic icon on the map to update when the user clicks an update button (actually I've only added a button for testing, ultimately I'll automate it). However I can't get the API/browser to forget about the previous image. I've tried clearing the graphics, removing the graphics layer and adding it again, and adding a new PictureMarkerSymbol after I know the source png image has changed, but it seems that once the API/browser knows about the original image it assumes it hasn't changed and re-uses the original image from somewhere in its memory. Doing a full page refresh isn't really an option. Can anyone suggest how I can make sure my PictureMarkerSymbol grabs the latest image, not what it thinks the image is from the API/browser cache? Thank you. Mark
... View more
02-27-2020
01:38 AM
|
0
|
2
|
80
|
POST
|
Gilroy. I no longer have this error. Here's what I have implemented... Using V1.1.2 of the proxy page I created a dedicated folder on the wwwroot folder to host the proxy files (convert to application .net V4.5 in IIS). Previously I had a separate proxy folder in each web application with their own proxy files, but by moving the location away from the applications and putting a Proxy folder directly on wwwroot this seems to help. I then reference the proxy rule in my JavaScript like so: urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); My Proxy config has this: <serverUrl url="https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer" username="username" password="password" matchAll="true" dynamicToken="true"/> Hope that helps. urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlUtils.addProxyRule({ urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" }); urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", urlPrefix: "https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer", proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" proxyUrl: "https://[myserver]/ProxyFolder/proxy.ashx" urlPrefix: "https://[myserver]/ArcGIS/rest/services/ <serverUrl url="https://[myserver]/ArcGIS/rest/services/[securedMapService]/MapServer" username="username" password="password" matchAll="true" dynamicToken="true"/> <serverUrl url="https:// <serverUrl url="https:// <serverUrl url="https:// <serverUrl url="https:// <serverUrl url=" <serverUrl url=" <serverUrl url=" <serverUrl url=" <serverUrl url=" <server
... View more
02-13-2020
02:22 AM
|
0
|
0
|
13
|
POST
|
I’ve just set up some secured cached map services on my ArcGIS Server V10.5.1 and converted my JavaScript API websites to dot net V4.5, upgraded the ESRI JavaScript version to V3.28, and set them up to use the dot net proxy page to handle the username and password process of my secure services. At first all seemed to be working fine but then I noticed random login boxes appearing asking me to login to the secured map service when I launched the sites. If I simply refreshed the browser the site loads fine, but I can’t have the public experiencing that. It doesn’t appear often, but clearly it shouldn’t appear at all. The random login box popup was appearing when using the Proxy build version 1.1.0, so I tried changing to the latest proxy page version 1.1.2. Again, at first all seemed fine and the login box appeared to have gone away, but now I have a new random problem. Now my sites randomly don’t load. If I open the Developer Tools Console on the browser I see the error “Failed to load resource: the server responded with a status of 500 (Internal Server Error)” as it’s using the proxy to access the secured map. Again, if I refresh the browser/app the site loads normally and will continue to work fine. So at the moment I have put the proxy page back to V1.1.0 as I prefer to have a login box error popup than the 500 Internal Server Error message. I’ve tried it and seen it happen on my home PC, so I know it’s not a problem with my work environment. What am I doing wrong? I can’t track it down, it seems like if the site isn’t used for a while the proxy page fails to work, but if I try again then it does – it doesn’t make sense to me, that’s why I’m asking the forum for help. I found a post from someone else but it goes back a few years, someone suggested increasing the lifespan of short lived tokens – that didn’t help them and I’ve tried that and it hasn’t helped me either. Has anyone experienced this and found a solution? Thank you, Mark.
... View more
07-10-2019
04:39 AM
|
0
|
2
|
88
|
POST
|
Thanks Rebecca. That's it, we're on 2008, I didn't come across that requirement when looking into the issue. It would have helped/saved a lot of time if the message on the Properties box had told me that instead of telling me 10.5 matched 10.2. Thanks for your reply. Mark.
... View more
02-16-2017
12:41 AM
|
3
|
2
|
166
|
POST
|
Hello. I've just installed ArcGIS Desktop 10.5 (licensed with Advanced Concurrent from 10.5 License Manager) and now I want to upgrade my existing 10.2 SQL Server Geodatabases to 10.5. However, when I right click my database connection in Catalog and select Properties, the Upgrade Geodatabase option is grayed out, and it says: "This 10.2 Geodatabase matches the ArcGIS release you are currently using". The machine I'm working on did have 10.2 Desktop on it previously but I completely uninstalled that before installing 10.5. So the only ESRI products on the machine are Desktop and License Manager, both at 10.5. Does anyone have any ideas what's going on here? How can I upgrade my databases to 10.5? I've looked online and it seems I should be able to do it. Am I missing something obvious? Thank you, Mark.
... View more
02-15-2017
08:35 AM
|
0
|
5
|
1267
|
Online Status |
Offline
|
Date Last Visited |
3 weeks ago
|