|
POST
|
Hi Kelly, This does not work in my application. Is it possible class names or something else changed since 2013? I'm using API v. 3.10. I don't follow the app.object pattern I just named my object "printer" for the new Printer constructor. I updated your example appropriately in that case, and to use my own png icon. I even added the z-index as you have in html just to be consistent. What happens is this: First, the Print button appears just as it always did. The word Print is there. My png icon is not. When I click the Print button, for a moment it shrinks to ~10px wide, there is no text. Nothing. So it's very skinny. (This is when it would normally say "printing"). Then when it's done, it just disappears. The "Printout" link text never shows up. Thoughts? I'll keep working on this. Conceptually I see what your example is doing. In theory it should be fine, unless something in the API changed. And we have jQuery object scoped into our main JS file with the map object. We are also using bootstrap 3 and storing the tools in the navbar although I don't think that should cause the issue. Basically I'm just wondering if anyone has done this, this year with a recent version of the API. I'll keep working on it, looking at it with the F12 dev tools etc. If I figure it out I'll post back. Thanks. update: so far I tried this on ESRI sandbox and JSFiddle. I borrowed ESRI's sample for referencing jquery, grabbed a 48x48 px printer png icon on the Internet and put it on this JS Fiddle. Still not working, it exhibits the behavior described above in Sandbox, and button doesn't even show up at first on Fiddle. Happens with API versions going back to 3.1. I am beginning to think it's a code issue and not a matter of API version. Edit fiddle - JSFiddle
... View more
08-22-2014
07:57 AM
|
0
|
0
|
2184
|
|
POST
|
Awesome! To get Web Builder just sign up for the Beta. https://betacommunity.esri.com/ Shouldn't be too long before you are accepted. Once you are in, you go to the Web Builder page to download it. Hopefully ESRI creates or makes easier a 3rd party Widget system, like from FlexBuilder. So for GIS analysts or people just beginning to develop software (me) it is a 1-click install for a widget. You put it in the right spot, tell a config file to use it, and done. In Builder, you pick where you want to position it, and that's it. Perhaps they'll make new widgets open in a floating dialog by default, like jquery or Dojo, linked to from a toolbar button click, with the tools in Builder's "header". Anyhow we will be following your tool's dev and contribute if needed.
... View more
08-20-2014
12:48 PM
|
0
|
0
|
3399
|
|
POST
|
Well then, thanks Tim! That's a nice tool. The right-click on it is sweet. I may use your tool's code base if that's all right and just add setting opacity on top of it. Now, if you really want to take it to ninja level.. would you be interested in adding a "Show Measurements" checkbox? Clicking this would subsequently display dimensions on the user's graphics that they draw. For example a line would show a label of the total feet of a line the user draws. A polygon would display acres in the center of the polygon. A point would display x,y lat/long. Or if you prefer, I can take a shot at this, and post my code back for your integration to your widget. Because one way or the other we will be adding such an option to our site (which open source). I have only just started researching this but I think this sample will be useful - Points for labeling | ArcGIS API for JavaScript I foresee this Draw tool becoming a popular widget Tim. Akin to AGS TOC and others. I recommend we all coordinate in this group... Web App Builder Custom Widgets Group
... View more
08-20-2014
12:08 PM
|
0
|
2
|
3399
|
|
POST
|
Robert, Thank you. This worked perfectly. I'll post my finished Draw widget, it's almost done. I'm just finishing up getting opacity working. (drawing, no pun intended, on advice from this thread and others JavaScript Color Palette in RGB rather than Hexidecimal?) I have also added some code to make the polygons take the color selected from the color picker. Although before you select a color apparently Dojo has a bug in the dijit where it doesn't have a color. (it appears this thread is still relevant javascript - How to get value of Dojo/Dijit ColorPalette to a string - Stack Overflow) You have to select a color, then draw. I'll fix that by explicitly setting it when the draw toolbar instantiates, I think. Anyway, I'm almost done.... I'll post the code here when complete.
... View more
08-20-2014
10:59 AM
|
0
|
4
|
3399
|
|
POST
|
I am making a tool that adds text to the map where a user clicks. First they fill in text in an input box, they can select size and color, then they click somewhere in the map and it adds the text as a graphic. I already have a nice Draw toolbar working for point/line/poly. Kelly posted the perfect example in this thread. Allow user to place text on map Example : Edit fiddle - JSFiddle Yes, it uses API 1.5. Good old ESRI forums. But.. I switched out the APIs all the way up to 3.5 and it still works. However it gets messed up, mostly the HTML and CSS, with version 3.6 and up, of the API. I was wondering if someone knew why this was? I just want to copy out the text functionality along with its color/size/angle selection, and put it into our site. For some reason I can't find any good examples besides this one. Which is really perfect but just doesn't seem to work above 3.5 API. And we are using the version 3.10 of the API in the site. When I copied the right parts of it into our site it didn't work. No errors or anything, just nothing happened on button click triggering the code. If anyone has a more recent example or way to update this one that would great! For some reason I am tinkering with textSymbol and not having luck yet. Perhaps because it is a complex project a lot going on (MVC 5/Bootstrap 3 with a lot of other widgets, jQuery, Angular and other stuff too). Thanks all for any advice, links or input. If I figure it out though I'll post back and maybe put it in a Fiddle.
... View more
08-04-2014
01:42 PM
|
0
|
7
|
8405
|
|
POST
|
Thank you I'll join. And hopefully someday I'll be able to contribute something good in terms of a widget or code enhancement!
... View more
07-17-2014
11:19 AM
|
0
|
0
|
1163
|
|
POST
|
Aaaah you are THE Robert Scheitlin! You created so, so many useful Flex widgets, I now remember. It seems with this web builder widget dev is becoming more powerful in that it is becoming easier to "install" widgets so to speak, in this Web Builder platform. Very glad to see you're interested in this Web Builder platform. With you and other high-powered devs on board, I think we'll see any widgets ESRI does not include out of the box will spring forth from the community. For example, that sweet Streetview/Bing oblique widget of yesteryear in Flash. And other great stuff from the Common Operating Picture Flex viewer and other Flex widgets and concepts. Just wanted to say thank you for giving me the drive to go back and look closer at this web builder. I'm going to look at it in more depth in the coming weeks.
... View more
07-17-2014
10:06 AM
|
0
|
2
|
1163
|
|
POST
|
OK the more I explore this, I'm getting seriously interested. One thing I'd add either if I do it or someone else does is to put a Nav widget in (previous extent, forward to next extent) and a buffer tool. Although I guess that could be created with the Geoprocessing widget. I'll read up on widget dev, but so far the documentation looks pretty thorough and more importantly, it seems to actually encourage "widgets" in a standard way. I always disliked how blocks of code on the JS API page were called Widgets. Yes I know the Dojo term and it loosely applies. But to me, a widget is a completely independent block of code that provides a functionality (i.e. Draw) and is EASY to add to your project. No mucking around with scoping, variable names, etc. It just works. Like in Flash. You want a Widget? Download it to the Widgets folder, turn it on in config, and you're done. There is no step 3. A big question: So, Query Widget. It executes pre-defined Queries. That is good. But, could ESRI consider enhancing this widget, in order to allow end users to construct their OWN queries? Basically, just expose the interface that we see as developers, to construct the queries. That would be exponentially more useful. I can see adding only a handful of preset queries before it gets to be "too much". But almost every user might have a unique query they would want, and perhaps a different kind of query every day even, depending on what they need to know. Also how do we add our own REST endpoints. We want nothing to do with ArcGIS.com at least for some of our viewers. (We have an org account and like it but it can not be used for certain kinds of data and viewers) Also I'd recommend at least as an option to display each line segment or each side with its own measured length dimension, in Draw. Like the old Draw in Simple Viewer or the Flash/Flex Draw/Measure widget. So if you draw a rectangle for example, it has the length of each side on it as text labels.
... View more
07-15-2014
05:37 AM
|
1
|
5
|
1163
|
|
POST
|
Robert, I stand completely corrected. Thank you for prompting me to look further at this. This is wonderful, there is a TOC! Yay! It's much like ags toc although it is a different source code base apparently. Excellent. I'll also investigate adding more widgets to Header. Hm this is looking better. Also I am reading the stuff on JSON in the Docs. I just didn't dive into it too far as soon as I saw what apppeared to be the Builder forcing us to ArcGIS.com services still, and no place to put our own REST link. For the sake of looking at the TOC I loaded a ArcGIS.com map and yes the TOC is great. Not quite as good as AGS but good. Things AGS does better: has transparency slider (optional), and it turns off checkboxes when a parent checkbox is turned off. But great work with the TOC, keep it up.
... View more
07-14-2014
01:18 PM
|
1
|
7
|
1163
|
|
POST
|
Many customers like federal agencies and large client companies, are sophisticated. They know what a TOC is. They want it. They are ultimately the ones paying ESRI.
... View more
07-14-2014
12:25 PM
|
0
|
9
|
1163
|
|
POST
|
Well it ain't Flex Viewer. In this Builder there is no Table of Contents. We are restricted to 3 extra widgets. And the customization in the first beta with JSON where we could configure position and some other quick things... appears to be gone? Also where do we add our own REST layers? I saw that mentioned in What's New but can't find it. Is there an "Advanced Mode" I'm missing somewhere or is this really all there is. Even BasicViewer template was more useful as a starting point. That is just the problem. ESRI by now has released dozens of "starter apps". HTML5 boilerplate. Bootstrap starter. Bootstrapmap. AngularJS viewer. SimpleViewer. BasicViewer. Now this Builder. The problem? All of them are lacking some fundamentals. Table of Contents etc. Easy use of our own layers. Yes...... I know I can dive in and remove the hardwired restriction to 3 widgets somewhere I'm sure, or add my own layers. But then, what is the point of this template!? If it's only for extreme beginner users, they're better off just sticking to ArcGIS.com. This is in a useless middle zone, between beginning and advanced. It's basically a dumbed-down Basic Viewer with a graphic user interface to set it up. I hope they add a lot more to this before release. The easier JSAPI is, the more server licenses they may sell... The comment on people developing 3rd party widgets to plug into this sounds great though. That's key. Like in Flash. You download it, alter one line of code and presto, it works. No scope issues, AMD vs legacy issues, and so on. Like fitting two legos together. I hope ESRI makes Widgets finally this easy, with this builder. First one to publish ags TOC widget will be pretty popular here on the forum!
... View more
07-14-2014
11:55 AM
|
0
|
11
|
1349
|
|
POST
|
AMEN! - They canned the TOC functionality out of the 10.0 WebADF in the conversion to 10.1and it needs to come back. Tom ESRI developers have posted philosophical reasons they do not want a TOC in the API. ESRI has also been promoting "task based viewers" where every viewer is substantially different. Task based viewers are nice, but nearly every big client, company, or city wants "The Viewer". The main viewer with a standard set of tools. Or at least an easy way to add and remove from a standard set of tools. (Flex easy, not JS easy. ActionScript is nice.). One of which is a Table of Contents (TOC). I believe the majority of users do in fact understand how to use a TOC and want it. Everyone else chime in here if you have different experiences. But I believe they need to make the Basic Viewer template and the Web App Builder for JavaScript both A) easier to use B) more powerful. Our services, our servers, local API, as much (and much more) customization possible as Flex, but as easy to get started with. More out of the box widgets supplied, like TOC, Google StreetView, Multiple services Identify widget, etc. The JSON customizing in the Web Builder looks great although I wasn't getting it to work doing some tweaks on positioning scalebar, and some simple geocoder things (i.e our geocoder).
... View more
06-11-2014
10:22 AM
|
0
|
0
|
1349
|
|
POST
|
I've only played with beta 1 for a few minutes, but on first glance it looks like it's hard-wired for ArcGIS Online/Portal - one of the inputs is an ArcGIS.com web map. How much can we discuss here? Stevel you're right on. I believe most of us wanted something like Flex but for JS. Easy to use yet powerful and customizable, not tied to ArcGIS.com. This is not it. This Web Builder is just Basic Viewer 2.0. It should support our services on our servers running the API on our machines. I say this even though we have an ArcGIS.com Online organizational account. ArcGIS.com is fantastic, we use it, and it's really coming along, but it's not appropriate in a lot of common scenarios especially for large enterprises or government agencies, where data sharing, security, control over redundancy, and other concerns mean sites and data will never be in anyone's "cloud" except on premise. The more ESRI can get their web viewers out there as a tool and get CIOs/CEOs and other corner office types interested the more ArcGIS Server licenses they can sell. I don't think ArcGIS.com competes with onsite servers, it compliments them. So I think it would be very beneficial to both ESRI and us as users, to make this Web Builder work with local services, local API etc. And I think we all want AGS TOC widget built in to API. A real table of contents, it's time for it! Would be a nice feature to include in Web Builder.
... View more
06-06-2014
06:45 AM
|
2
|
0
|
1349
|
|
POST
|
I am creating a map that has overlapping polygons from multiple FeatureLayers and I want the user to be able to cycle through all features clicked in the popup window (i.e. 1 of 2, 2 of 2, etc.). For example, when I click on a city, I would like to see the info for that city and then cycle to see the info for the County that contains it. See my example code attached. What am I missing? Here are some examples, which also discuss visibility and dealing with multiple services http://jsfiddle.net/URpaW/ http://jsfiddle.net/kenbuja/nvNQw/ http://forums.arcgis.com/threads/83899-Paging-results-in-Popup-class-in-JS-API-3.4?p=295993&posted=1#post295993 http://forums.arcgis.com/threads/52543-NLiu-s-Table-of-Contents%28TOC%29-Legend-widget-and-Visibility-States?p=291707#post291707 I still haven't gotten a working multiple services identify but for now the logic from the second fiddle above works fine after I put everything in one service.
... View more
03-25-2014
04:30 AM
|
0
|
0
|
532
|
|
POST
|
Hi Flex people. I dabbled in Flex for a while, it was so nice and easy. JS requires knowing HTML5, CSS3, Dojo, and probably at some point ASP.NET, C#, MVC, etc. You have to do all the nuts and bolts yourself. But, it is nice learning it all. However... Now, as someone mentioned ESRI is making a Javascript "Builder" template finally for the Javascript API. To be released this summer. Join us in the JS forum for discussion on it. I hope it can provide even some of what Flex used to in terms of both functionality and ease of use. http://forums.arcgis.com/threads/5357-Sample-Javascript-Viewer/page2 We all liked Flash because it was quick, simple, and worked. It provided a rich UI without line by line programming. Add your voices to ours in the JS forums. It has been a long time coming because so far ESRI has crippled the JS API by leaving out essential things like a Table of Contents widget. (yep, no TOC, seriously. Comes up every week on the forum). Then there is that sweet Google StreetView/Bing widget in Flex. Would love is someone ports that to us in JS! So, Your support will help improve the JS API! See you in Javascript forums my future colleagues.
... View more
03-19-2014
09:59 AM
|
0
|
0
|
852
|
| Title | Kudos | Posted |
|---|---|---|
| 23 | 12-16-2014 10:46 AM | |
| 2 | 06-06-2014 06:45 AM | |
| 1 | 12-15-2014 01:07 PM | |
| 1 | 07-14-2014 01:18 PM | |
| 1 | 07-15-2014 05:37 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|