If you don't like Dojo (which I understand), Esri also has some plugins for Leaflet: Esri Leaflet
Hello Steve G,
I just saw in your sample PermitView.
It's so smooth and good app with jquery that i saw in a while. I was looking for such examples.
One thing i noticed that in your print map, there were buffer circles in the final map. I was wondering, how were you able to get buffer graphics exported to map? Did you use buffer_analysis inside of your python script or did you export graphics from javascript and sent it to export_map?
http://www.sloplanning.org/arcgis/rest/directories/arcgisoutput/Utilities/PrintingTools_GPServer/_ags_225bd9c041ac4ca5b7…
Thanks and Regards,
Shay~
If you're after the jQuery style of selector syntax, check out dojox.jq.
I'm not advocating that Esri switch to jQuery, but here are some reasons I prefer to use jQuery over Dojo.jQuery has better documentation than Dojo. Not just jQuery and Dojo's own websites, but it's easier to find outside tutorials for accomplishing a task with jQuery than with Dojo using a search engine.Most things are more complicated in Dojo than jQuery. For example, try going through the both the jQuery Mobile and Dojo Mobile tutorials. I found that it is much easier for me to create my own widgets in jQuery (using the jQuery UI Widget Factory) than it is to create "dijits".The Dojo UI controls are weird. When you create a Dojo UI Button, it changes the HTML button element into a span element. When you create a jQuery UI Button, it remains an HTML button.When I create controls for developers who have no GIS experience, I currently create them using jQuery UI Widget Factory using a minimal amount of Dojo as required for the ArcGIS JS API.
One thing I'd like to see is a write up of things that dojo does poorly and could be improved by switching to jQuery.
I promise this is my last post on this topic since I completely agree that our time is better spent making cool stuff rather than these holy wars. Yes, popularity should not determine what framework to use, but what is it about jQuery that makes it so popular? Is it for technical reasons, probably so. Is dojo better for GIS, maybe, sounds like it is for Esri but not for the opensource GIS community it seems. I think you nailed it when you said those opensource frameworks don't use a framework. And that is my main point with all of this and that's why I think you see the negative comments with Esri leveraging dojo heavily. That would be great if someone could write up something on comparing dojo to jQuery rather than the bashing with no legitimate argument. I definitely don't have enough background in either to do that. Maybe Jeff could put something like that in a blog post or something?
...what is it about jQuery that makes it so popular?
Is dojo better for GIS, maybe, sounds like it is for Esri but not for the opensource GIS community it seems.
I think you nailed it when you said those opensource frameworks don't use a framework. And that is my main point with all of this and that's why I think you see the negative comments with Esri leveraging dojo heavily.
Hi Derek,Thanks again for the info and your candor on this, it is much appreciated. I definitely understand the reasoning but I think many in the community don't or just don't agree. I imagine you get this kind of negative feedback on using dojo alot. As seen in that blog post comments I listed above alone, about everyone is negative towards dojo. The open source community seems to embrace jQuery over dojo as well. I get that you are hesitant to lean on the jQuery plug-in community but many of these efforts are probably bigger than dojo community all together. So that is being traded for relying on the dojo framework. The same argument against relying on jQuery plugins could be used against relying on a framework at all such as dojo or even jQuery. As I said before, I just see this as problem today and is only going to get bigger as time goes on due the popularity of jQuery.
var tabs = jQuery(dojo.hitch(this,function() { jQuery( "#infoPopupTabs" ).tabs({ selected: 1, select:dojo.hitch(this, function(e, ui){ this.readDetailSizePreference(); }) }); }));
It seems clear that since the Esri JS API was released that Esri has showed a strong favoritism towards Dojo for some reason and I'm sure they have had their reason for this.
...it's become clear in the last 1-2 years that jQuery is the premier JavaScript framework.
In fact, this looks to be Esri's focus in the JS mobile space with jQuery mobile.
Is Esri going to begin to show more support for jQuery where we can completely utilize only that framework?
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.