|
POST
|
Apparently when this post was ported over to the new system the links didn't travel. Can someone update these links? I can never FIND the Data Dictionary, but I do tend to stumble across it when I am not even looking.
... View more
11-13-2014
09:20 AM
|
0
|
6
|
7355
|
|
POST
|
Ok. We are working on a Fish sample project for our Stormwater group. The basics of the project are that they have X number of Sample Sites. Each site is sampled X times per year. They gather fish from these sites, count, label, identify, etc. Then they run reports on those sample sites against that collected fish data. This is "part" of Phase 1 of a larger project that will have more OBVIOUSLY spatially related data. In THIS instance, we don't "technically" need to have a dot on a map for each report because those dots on the map are identified by the Sample Site ID. However, we want to build this "part" of Phase 1 for Collector... as a web map. So we have some questions about Collector and AGOL. Since we only need to register each sample event with a sample site, is there some way to allow them to open collector, hit the plus button, and enter their fish data with the sample site being a drop down, and ignore the spatial aspect... in other words, ignore the X,Y coords for each sample event because they will ALWAYS happen at one of the pre-arranged, permanently stationed Water Sample Sites. I ask because Collector TECHNICALLY includes the spatial component with each entry. It automatically logs each new entry with a new X,Y point. I want to ignore that. BUT I want each report to line up perfectly with the exact same coords for the Sample Site locations. Ideas?
... View more
11-07-2014
01:57 PM
|
0
|
4
|
3499
|
|
POST
|
I don't even know where to look to 'research' this on my own so I'm posting here HOPING for a dual response. Is there a way to adjust the "links" entry in config.json to replace the "label" with an image? I want to create links to our companies facebook, twitter, etc. and I'd like to do it in WAB-created maps. Where do you find answers to questions like this, about the config.json file? Is there a repository / wiki / faq / documentation somewhere that lists all this out like they have for the LGDM? Something that breaks down each file and the components of those files? Hoping I don't have to mess with actual HTML/CSS to do this. I would LIKE to create a template for this kind of thing.
... View more
11-07-2014
06:50 AM
|
0
|
1
|
4555
|
|
POST
|
Alright... So Robert Scheitlin, GISP helped me figure out how to fire a click event and re-route the Geocoder. Now I am able to have users enter an address and instead of the fairly worthless (in my humble opinion) popup that says, "Here's you address at this address" and puts a dot on the map as... now when the user enters their address and hits enter it fires a click event on the map which pops up the various popups configured for that map. Trigger Layer(s) Popup with Feature.Geometry So now I am looking for bigger and better things. Now I want to have it target just specific layers. If I have a map point and a screen point, how can I target a click (or popup) for just specific layers? Any ideas?
... View more
11-06-2014
03:52 PM
|
1
|
1
|
5636
|
|
POST
|
I don't have a problem adding feature classes, but one of the key points of the LGDM is the apps that get built off of them. Now I'm fairly familiar now with the WAB, and AGOL and I could do this. I'm just 'certain' that ESRI is either 'in the works' or planning to add this type of layers soon and would hate to duplicate data. Especially since I've recently seen a Watershed map by ESRI that was amazing... it just seems like it's coming soon. But, I don't really have a choice. We've got a project that requires water sampling station points, so water sampling station points I will make. I'm just way too fond of this LGDM it causes a hiccup when they don't have something that I thought was universal... oh well... *grumble grumble*
... View more
11-06-2014
11:49 AM
|
0
|
0
|
970
|
|
POST
|
This question is answered. Thank you SO much. I've literally been wanting this solution for a year... now with WAB and you I've got it. Thanks Robert Scheitlin, GISP!
... View more
11-06-2014
11:19 AM
|
0
|
0
|
1864
|
|
POST
|
Working Code
// First thing we need to do is convert the feature.geometry to a "mapPoint" object
var mpPt = feature.geometry;
// Then we want to zoom to the mapPoint location, 16 is an arbitrary number but close enough
this.map.centerAndZoom( mpPt, 16);
// Now we set a timeout for 1000 and then set our screenpoint and emit our click
setTimeout(lang.hitch(this, function(){ var scrPt = this.map.toScreen(mpPt); this.map.emit("click", { bubbles: true, cancelable: true, screenPoint: scrPt, mapPoint: mpPt }); }), 1000);
Ok. This is the closest yet.
... View more
11-06-2014
09:48 AM
|
0
|
2
|
1864
|
|
POST
|
My Guess I think the issue we are dealing with here is a combination of the Javascript rendering of the polygons combined with the current Zoom level. For instance... if I am zoomed in to, let's say, Street Level. And I do an address search. Bingo. Works fine. However, if I am zoomed way out, and I try an address that is close to a borderline, then I get two Feature responses. My co-worker noticed something. When he zoomed in to a certain level, and clicked on a polygon, the selection (light blue line) showed a polygon out that was fairly smooth. However, he zoomed out with his scroll button and the selection was still active. The smooth border was great, no worries. But once zoomed out, he tried to re-select and the polygon shape suddenly was "wonky" and nowhere NEAR as smooth. It had jagged edges that skewed the boundary. The boundary... I think we are dealing with an issue where the javascript rendering of these polygons trips up the screen point and the map point precision. I really think the code should zoom to feature.geometry and THEN create the map and screen points. Just my guess.
... View more
11-06-2014
09:30 AM
|
0
|
0
|
1864
|
|
POST
|
4901 East 5th Place South, Tulsa, Oklahoma That is a border location.
... View more
11-06-2014
09:07 AM
|
0
|
4
|
1864
|
|
POST
|
If I am already zoomed in to an area then the same address only gives me ONE Council... But when zoomed out I get two for any address close to a border. I was trying this on our Watershed map with similar results. Close to the border? Two results... I had thought I could just adjust the bubble method to false, and fix it but I haven't read the documentation on it and it didn't do what I thought it did... lol...
... View more
11-06-2014
09:01 AM
|
0
|
6
|
3544
|
|
POST
|
My Code
console.info(content);
// First thing we need to do is convert the feature.geometry to a "mapPoint" object
var mpPt = feature.geometry;
console.log( "Map Point is set." );
this.map.centerAndZoom(mpPt,16);
console.log( "Center and Zoom" );
// Once we have the "mapPoint" object we convert it to a "screenPoint" object
var scPt = this.map.toScreen(mpPt);
// The click event requires a screenpoint and a mappoint in order to fire.
// Now we fire that event.
// this.map.emit( "click", { bubble: true, cancelable: true, screenPoint: scPt, mapPoint: mpPt } );
this.map.emit( "click", { bubble: true, cancelable: true, screenPoint: scPt, mapPoint: mpPt } )
... View more
11-06-2014
08:59 AM
|
0
|
0
|
3544
|
|
POST
|
Great idea. I hadn't even considered that. Just ran that code and I'm getting a single address. Ugh!
... View more
11-06-2014
08:58 AM
|
0
|
0
|
3544
|
|
POST
|
I don't have enough facepalms for this. Thanks for testing it Robert... I'm thinking that after I get this cleaned up and make a settings page this would be a great upgrade for the Geocoder. But we are getting dual councils popup for various addresses. When I check out the Screenpoint and Mappoint variables I'm getting some distinctly different looking coords. mpPt: Object spatialReference: Object type: "point" x: -10685928.332287207 y: 4321245.409954926 __proto__: Object scPt: Object spatialReference: undefined type: "point" x: -25248 y: 2027 __proto__: Object I'm almost certain that my duplicate council issues are coming from the two points being registered. Maybe if I zoomed first and the generated the scPt and mpPt? I am looking around for how to zoom to a feature.geometry, so once I get that figured out I'll do that THEN run the mpPt and scPt and emit.
... View more
11-06-2014
08:34 AM
|
0
|
3
|
3544
|
|
POST
|
Okay Robert, So I've modified /widgets/Geocoder/Widget.js : Line 239 as follows:
/widgets/Geocoder/Widget.js : Line 239
// First thing we need to do is convert the feature.geometry to a "mapPoint" object
var mpPt = feature.geometry;
// Once we have the "mapPoint" object we convert it to a "screenPoint" object
var scPt = this.map.toScreen(mpPt);
// The click event requires a screenpoint and a mappoint in order to fire.
// Now we fire that event.
this.map.emit( "click", { bubble: true, cancelable: true, screenPoint: scPt, mapPoint: mpPt } );
What I'm getting is a dual hit. http://maps.cityoftulsa.org/jsdev/citycouncil/ If you type in an address, like mine, 4740 E 5th Pl in Tulsa, Ok it pops up two districts. But now that I'm zoomed in, if I do the same address search then I get just one. Ugh! I wonder if zooming to that point FIRST would correct this situation.
... View more
11-06-2014
08:08 AM
|
0
|
12
|
3544
|
| 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
|