|
POST
|
It looks like someone has figured this out. https://community.esri.com/message/395853#395853
Thomas Rippetoe wrote:
You can 'value add' a 'mapPoint' and/or 'screenPoint' objects to the click event. I think 'mapPoint' might be the object you are looking for. I have done something like this (I am pretty sure that i am not doing 'screenPoint' correctly - that's why i am using mapPoint):
var scrPt = new Point(-122, 45.6);
var mpPt = new Point(-122, 45.6);
map.emit("click", { bubbles: true, cancelable: true, screenPoint: scrPt, mapPoint: mpPt });
So now I just need to find a way to convert feature.geometry to either a ScreenPoint or a MapPoint.
... View more
11-05-2014
09:38 AM
|
0
|
14
|
3537
|
|
POST
|
The simple version of this question is... Can I trigger a specific layers popup / click response using a feature.geometry point? The more involved version is as follows... I have some simple maps, MyWatershed, Council Districts, etc. Currently the user opens the map, enters their address, and then has to click on the map to find out what watershed or council district they are in. I would like to circumvent that. I want the user to enter their address and then wherever that dot / popup (titled "Location") shows up, instead of showing it... trigger a click event / popup for a specific layer at that point. I found the place in the Geocoder widget where this event gets fired... /widgets/Geocoder/Widget.js : line 238 if (feature) { this.map.infoWindow.setTitle("Location"); this.map.infoWindow.setContent(content || null); this.map.infoWindow.show(feature.geometry); } else if (extent) { this.map.setExtent(extent); } I "believe" that I can interrupt the this.map.infoWindow.show command, and step in and fire off a click even at feature.geometry instead. Still researching but if anyone has a better direction, please advise!
... View more
11-05-2014
08:48 AM
|
1
|
16
|
9173
|
|
POST
|
I see. That's right. I forget. The Geocoder widget folder doesn't actually hold ALL of the widget code for that widget. Hmmmm.... back to the drawing board.
... View more
11-05-2014
08:05 AM
|
0
|
0
|
2031
|
|
POST
|
In the Flex app, Locator widget, I could restrict the address searches to only within the overall extent of the map. As all of my searches happen within Tulsa, Oklahoma, I would LIKE to have my users only have to enter the address and not the City and State in order to run the geocoder. I've been digging around the config.json and such files trying to find out how to make this happen but no luck so far. Does anyone know if this is an option?
... View more
11-05-2014
07:34 AM
|
0
|
11
|
9635
|
|
POST
|
I'm not actually sure Robert. I thought this might just be a Javascript API question but I suppose since it is a GeoCoder Widget from WAB that I'm referencing then maybe it should be? How do I move it?
... View more
11-05-2014
07:12 AM
|
0
|
0
|
2031
|
|
POST
|
I kind of thought it might have to modified in the 'onFindResults' method inside of Widget.js
onFindResults: function(results) {
//Check to see if the user typed an MGRS or USNG string
this.lastMgrsResult = this.lookupMgrs(results.results.value);
if (null !== this.lastMgrsResult) {
// Get reference ellipsoid coordinates of the current coordinate system
// var mapWkid = this.map.spatialReference.wkid;
// var srWkid = csUtils.isProjectedCS(mapWkid) ?
//csUtils.getGeoCSByProj(mapWkid) : mapWkid;
//Make a new object just like the objects in results.results.results
var point = new Point(
this.lastMgrsResult.longitude,
this.lastMgrsResult.latitude,
new SpatialReference({
wkid: 4326 //srWkid should use the ellipsoid SR of the current coordinate system
}));
var extent = this.map.extent.centerAt(point);
var feature = new Graphic(point);
var resultObject = {
extent: extent,
feature: feature,
name: this.lastMgrsResult.text
};
//Insert at start of results list
results.results.results.unshift(resultObject);
}
},
I tried commenting out from var extent on and it didn't seem to affect the widget... so maybe I'm wrong?
... View more
11-04-2014
02:00 PM
|
0
|
0
|
2031
|
|
POST
|
What I want is the following: User enters their address into Custom-Geocoder Input Field Address is found Instead of 'Location' popup window that just shows the address searched for... Cause a click to happen at the coords where the 'Location' popup was going to fire How difficult would this be? I would PREFER this to be a custom widget so that I could choose to add this to projects that ALREADY have the GeoCoder. Kinda like a GeoFinder widget? Any ideas?
... View more
11-04-2014
01:55 PM
|
0
|
7
|
4281
|
|
POST
|
Is anyone using the D3.js library in their ESRI maps?
... View more
11-03-2014
11:28 AM
|
1
|
3
|
6836
|
|
POST
|
I've been digging around the Local Government Data Model trying to see if there is any layer that is / can be used for Water Sampling by Stormwater personnel. I realize that this is probably unique to each city that does this, but I was hoping to at least find a placeholder for this data. Any chance that anyone knows where something like this might be in the LGDM?
... View more
10-30-2014
12:30 PM
|
0
|
2
|
3776
|
|
POST
|
Have you made sure your proxy.config is set up right?
... View more
10-29-2014
10:42 AM
|
1
|
2
|
4091
|
|
POST
|
Alrighty then... So I'm trying to figure out a way to share connection files with my users. Currently we have a folder with a list of *.sde files. We copy these files to: C:\Users\<insert user name here>\AppData\ESRI\Desktop10.2\ArcCatalog for each user. We are starting to get some more advanced GIS components in place for other departments... Lucity for WaterSystem mgmt, CrescentLink for fiber... and we need to have tiers of users. SO... I did some digging looking for ideas. My thoughts were to have some way to control SDE connections amongst users. For ArcGIS 9.0 they offered this advice: 34530 - Distribute saved spatial database connection properties to clients And the USE CASE option of accessing connections via 'Folder Connections' in ArcCatalog would actually work. But it would be a LOT easier if there was someway to 'hijack' the pathing to C:\Users\<insert user name here>\AppData\ESRI\Desktop10.2\ArcCatalog and set this path to whatever we wanted. However, this doesn't cover what to do when a super user with editing rights to various datasets gets a new position and needs to have his editing rights revoked? Those connection files are still out there. Does anyone work with large user groups (we have around 70-100 ESRI users that my co-worker and I manage) and connections files that might have some good ideas? Suggestions? etc.? Message was edited by: Brian O'keefe for grammatical corrections.
... View more
10-29-2014
10:35 AM
|
0
|
2
|
6160
|
|
POST
|
Ok. When you say 'hosted on AGOL content' do you mean that you have uploaded the files to AGOL? Make sure you have 'shared' the AGOL map with everyone.
... View more
10-29-2014
10:00 AM
|
1
|
4
|
4091
|
|
POST
|
Thank you for the links! It always helps to have resources that are actively being used by people in similar situations to yourself... I do have a decent grasp of Javascript and even HTML5. It's the Dojo that's eluding me... ugh! But I'm adding these to my Keep for Javascript References, thanks again!
... View more
10-23-2014
02:02 PM
|
0
|
0
|
1768
|
|
POST
|
Well, I'll keep on aiming for time to get in and learn Dojo. Any good recommendations for tutorial sites, books, etc?
... View more
10-23-2014
01:41 PM
|
0
|
2
|
1768
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2015 08:51 AM | |
| 1 | 06-02-2016 02:00 PM | |
| 1 | 10-09-2015 07:43 AM | |
| 1 | 10-09-2015 09:42 AM | |
| 1 | 02-09-2016 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|