POST
|
Hi Guys Hope you all are doing well. I have a query here where I am trying to figure out where in the standard Add Data widget this might be customizable. The problem: The add data widget uses the ESRI geocoder to geocode addresses. The problem we are having is that we need the widget to be using our geocoder. The reason: We upload excel files with address and want to to get the coordinates on the map, but for some reason the standard geocoder add the data to the street closest to the coordinate and not the exact point. The widget also does not allow to change the geocoder to our custom inhouse one. Any ideas on how to change that perhaps in the widget itself? Maybe someone else have had to do this and might be a quick change in the code? Regards, Brett
... View more
06-01-2018
02:45 AM
|
0
|
1
|
595
|
POST
|
Thanks for this, will start exploring this option, as this would be my other option on how to integrate the 2 systems and know which user/role is currently on the map. As always thanks a lot for the information.
... View more
05-10-2018
06:35 AM
|
0
|
0
|
1151
|
POST
|
Hi Robert The only possible way I thought to overcome this is maybe do it in a widget. Basically I want to have a user click a feature on the map and then get the user that is logged in and its role assigned? I have been playing around the identityManager but have not had much luck, is this the right route or is it possible to get the info through a widget when the user clicks the map? thanks again for all your help and responses. Brett
... View more
05-10-2018
06:12 AM
|
0
|
2
|
1151
|
POST
|
Hi Robert Not exactly. So basically, a client of mine has their own ArcGIS online portal at ****.maps.arcgis.com. I have added a link there to another system that I wrote using vb.net that I host on my own server. The problem I am facing is that users in this organization has different roles, now depending on these roles coming from ArcGIS online they get to access certain parts in my system. So what I need to do is, as soon as they use the link provided in their online portal I need to somehow grab the user that is logged in as well as the role assigned to him. It comes down to linking my system which has nothing to do with ArcGIS online, to be able to get users + roles when landing on my home page. My thoughts was that as soon as someone logs into their ArcGIS Online, it has to store the token somehow in the browser or somewhere for external systems to be able to get that type of info? I hope this makes sense
... View more
05-09-2018
06:49 AM
|
0
|
4
|
1151
|
POST
|
Hi Robert I do understand the code given above, to pass a JS variable over and store it in a hidden field to retrieve from the server side. My question is however, if a user is logged in on the AGOL and uses the link provided in there to my system, how would I grab the person who is logged in username and the role assigned to him in his organization? Thanks Brett
... View more
05-09-2018
01:37 AM
|
0
|
6
|
1151
|
POST
|
HI Robert Yet again thanks for your reply and input! Will go test this and come back but it sounds really good, I knew it had to be something simple and accessible. Brett
... View more
05-07-2018
06:28 AM
|
0
|
0
|
1151
|
POST
|
HI Guys Hope you are well. I am wondering of someone could assist me or point me into a direction, perhaps someone has done this before but I have not gotten much info on it just yet. I have a 3rd party system I wrote using .net. This system is has a link in the organizational online portal to it and on the feature class as well. Although I need to grab the user that has logged in via their online portal in .NET. Any ideas how to access the token from the server side as the user lands in the 3rd party system? Using vb.net in the backend. Also by grabbing the token, I see in JS it gives the user + role but like I said I need to grab it on the system load and store it perhaps somewhere? Any ideas would be helpful Thanks Brett
... View more
05-07-2018
02:38 AM
|
0
|
9
|
1410
|
POST
|
Hi Guys I am trying to use the screening widget out the box, but wanting to change the scale it zooms to after the user has searched for the feature. I got a buffer of around 5km around the POI, but the scale after zoomed stays at 1:50000. I would like this scale to rather change to 1:10000 after zoomed but cant seem to find the point in the code of the widget on where to change this? Any help/guidance would be appreciated. Thanks in advance Brett
... View more
02-19-2018
01:48 AM
|
1
|
1
|
557
|
POST
|
Hi Guys Could someone please assist me, I used WAB v2.1 - 2.4 and my widgets was working fine. When the map started, the code inside the widget run. This was as simple as adding to the config file: "openAtStart": true For some reason in v2.7 this is not the case and it seems the config files has changed. Could someone please guide me on which config and what do I need to change in this version so that my widget will run when the map loads? Thanks in advance. Brett
... View more
02-15-2018
04:48 AM
|
0
|
1
|
801
|
POST
|
HI Robert, So I have got it working in the way which I originally wanted to. For my marker I was using this page on the API: https://developers.arcgis.com/javascript/3/jsapi/simplemarkersymbol-amd.html SimpleMarkerSymbol | API Reference | ArcGIS API for JavaScript 3.18 After including it like this from the legacy example it actually became a JS object and I could start using and adding to the map. marker = new esri.symbol.SimpleMarkerSymbol(); I know you are not encouraging the way I am using the API (outside of widgets) but perhaps if you ever get a gap in your schedule I can perhaps show you the system and how I am coding it. I am sure you could perhaps give me extremely valuable pointers and tips on how to rather improve my coding and where/what I should rather have done instead of how I have done it. Thanks as always for you're rapid responses and valuable input. Please do let me know if you would like to see the system and code. Brett Kruger
... View more
11-03-2016
02:14 AM
|
0
|
0
|
263
|
POST
|
Hi Robert, I have seen that tutorial and understand the basics such as those so far. Please correct me if I am not understanding you correct, so you suggest that I add my dropdowns into the widget's HTML page and have it as an in-panel widget? So what will happen then is to modify the config file to have the widget openAtStart? These dropdowns will then still query my .NET server pages and return with results to populate the values of the dropdowns?
... View more
11-02-2016
11:44 PM
|
0
|
1
|
1505
|
POST
|
Robert, No I am using .NET because that is my background and I am still new to widgets only recently really started getting into it and the methodology and how it works. Also because I have control then over my SQL queries to my DB - so its easier for me to populate the dropdowns with those results. So to answer your question it is a feature service with points on the map.
... View more
11-02-2016
06:56 AM
|
0
|
4
|
1505
|
POST
|
Robert, No the index.html is the page where the map is loaded in, so if you download you're map from the WAB the index.html page which is included there. The workflow of the system to try and put it short is as follow: The user logs into the system. Chooses a filter e.g. Africa - the map opens then with Africa's extent. Dropdown is above the map with a list of African countries. As soon as a country is chosen the system zooms to that country and a list of mines appear on the next dropdown. The user selects a mine and the system zooms to that mine. So what I have done is the following, adding my script to this index.html page and then whenever the dropdowns change my .net server page responds with the filtered results for the next dropdown. So this is why I have followed this route and not a widget, if however you can tell me how I can use widgets here I would love to of course.
... View more
11-02-2016
06:21 AM
|
0
|
6
|
1505
|
POST
|
Hi Robert, thanks for the fast reply, the system itself is a .net system with the map created and downloaded from the webapp builder. When the map gets loaded I have created dropdowns on the index.html page. I guess I followed this route because I am most probably not too sure how I would do it in a widget, I know widgets are the correct route to follow. I am still very inexperienced when it comes to the widgets interacting with dropdowns/buttons on a page as I have tried using JS to access them but always tend to not get it to work : / not in the html page of the widget itself but rather in the page where the map is loaded. Basically what would happen is that after a dropdown option is selected I call my js file with my zoom function and use the map object to zoom to the point. I know in a widget this is very simple even the highlight it as I have done it in other widgets (which you actually helped me with the calculations of segments )
... View more
11-02-2016
06:05 AM
|
0
|
8
|
1505
|
POST
|
Hi Guys So I have created my map with the webapp builder and plugged it into a system. When displaying the map I use the index.html file from the map. I load my script like this at the bottom of the index.html file: <script type="text/javascript" src="*.js"></script> My script does a basic thing like a zoom using the CentreAndZoom function of the map, but I do however create a point by using legacy code such as: point = new esri.geometry.Point(lng, lat); But it seems I cannot access anything else in the JS api, any ideas why or how to enable my js file to have access to the functions provided by the API? My js file: //map object var esriMap; function zoomTo(lat, lng, factor) { var point; point = new esri.geometry.Point(lng, lat); esriMap.centerAndZoom(point, factor); } function setZoom(faktor) { esriMap.setZoom(faktor); } What happens so far is that I have dropdowns on my html page and this calls my zoomTo function which zooms to a point on the map. I am trying now to highlight the point with the SimpleMarkerSymbol function but I cannot get any access to it at all, says undefined now this could be that I do not declare it but if my point is declared in this matter and works should a markersymbol not work the same? Looking forward to you're responses. Brett
... View more
11-02-2016
05:17 AM
|
0
|
11
|
3145
|
Title | Kudos | Posted |
---|---|---|
1 | 02-19-2018 01:48 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|