|
POST
|
I would like to create a custom geoprocessing tool to provide drive times from a specific location. Is there any way to publish my own gp drivetime service on my own gis server, and use it to create and serve drive times using an ESRI map service (eg World Street Map), or must I use my own Network layer for the tool to create the drivetime polygons? The World Street map is a "Dumb" basemap, it is just a picture. You would need to publish a Network Dataset for use by a custom geoprocessing tool and overlay the results on the basemap.
... View more
12-21-2011
07:04 AM
|
0
|
0
|
470
|
|
POST
|
Is the problem only while zooming (i.e. the dynamic layer is in the correct place once the zoom is complete)? Or is the problem after a zoom event the dynamic layer is in the wrong place. v2.6 introduced some new zoom transitions, you can try disabling them. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/map.htm Look at the options, try: navigationMode:'classic' displayGraphicsOnPan: false
... View more
12-21-2011
04:04 AM
|
0
|
0
|
879
|
|
POST
|
Ive seen the sample to add a legend and the sample to toggle layer visability. Is there a way to combine the two and make the legend more like the table of contents in ArcMap/ArcServer to toggle the layers? I'm fairly new to JavaScript so if its too complicated, I can work on this aspect later. Thanks. Check out this incredible sample from nianwei http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/1.06/examples/toc.html
... View more
12-20-2011
10:42 AM
|
0
|
0
|
458
|
|
POST
|
you can also just rename them back to arcgis and arcgis_compact, respectively
... View more
12-19-2011
09:14 AM
|
0
|
0
|
876
|
|
POST
|
Hello, I have a map that implements the Identify Task, where a user clicks on a feature and information appears in a datagrid. The problem is that now when I go to measure something using the Measurement Widget, the line being measured does not show up and features are being selected instead of measured. I am sure it has something to do with an OnClick Event, but I am not sure how to differentiate between the two? Any suggestions would be gretly appreciated!! [CODEvar measurement = new esri.dijit.Measurement({ map: map }, dojo.byId('measurementDiv')); measurement.startup(); ] A little light on details, but my guess is that your app has no way to predict which action the user is performing. It is up to you to code. More than likely, if a measurement tool is selected, you need to disable you identify onClick.
... View more
12-19-2011
06:42 AM
|
0
|
0
|
807
|
|
POST
|
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? Sorry, I am not the right person for that. I see value in both, and could care less about the differences. Both good tools, both useful. Both have shortcomings, both have value. I much prefer to learn a tool and get the job done than to complain that I can't use a different tool.
... View more
12-16-2011
12:07 PM
|
0
|
0
|
1991
|
|
POST
|
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. If popularity were the determining factor we would be using Flex (sorry, tongue in check). Even where I work jQuery is more popular. And amongst developers so is IIS vs Tomcat, .net vs javascript, etc.. Dojo is an appropriate tool for the task, and it is just a tool. It works, and is worth learning. To me the important message is they are not mutually exclusive. We use dojo and jQuery side by side in our app. var tabs = jQuery(dojo.hitch(this,function() {
jQuery( "#infoPopupTabs" ).tabs({
selected: 1,
select:dojo.hitch(this, function(e, ui){
this.readDetailSizePreference();
})
});
})); For example of a tabbed infoPopup container. Not being argumentative, just pointing out a preference for jQuery does not have to be preference against Dojo.
... View more
12-16-2011
08:33 AM
|
0
|
0
|
1991
|
|
POST
|
I had experienced the same problem. From what I can tell in testing, the solution is to called <yourEditorWidget>.destroy() successfully. In addition, create the template and editor divs dynamically in the DOM using the tools of your choice. In dojo... var contentHolder = "<div id='templateDiv'></div><div id='editorDiv'></div>";
dojo.place(contentHolder, "LogOccurrence", "first"); Include this code prior to or during your creation of the editor-related objects. To deactivate editing or recreate the editing stuff upon opening a container, for example, just call <yourEditorWidget>.destroy(); Using static divs in the page prevented the editor from reappearing after a destroy. I could see the editor initially but not after destroy. I believe the destroy operation blows away the domNodes associated with the static divs. You have two options really. 1. Destroy the containing div as well. We use a container div and then the edit div. When destroying edit, we destroy the edit div as well. Actually we have to do this for almost all widgets. 2. Loop through the dijit.registry and destroy the proper widget (Code below destroys all). dijit.registry.forEach(function(w){
w.destroy();
});
... View more
12-16-2011
03:16 AM
|
0
|
0
|
1579
|
|
POST
|
Ok i figured my issue out, but it is very app specific. I use a onExtentChange event to hide items in the Gallery if they aren't available at a particular level (i.e. hide the "OpenStreetMap" option at level 19). I hide them by doing dojo.style(dojo.byId(id), "display", "none"); If i comment out the line in my extent change handler my app works again. So it turns out, i was manually (hardcoding) look for some particular layers to hide. One of them was "USA Topo Maps" Apparently that is not in the 2.6 api for the Gallery, so when i went to hide it, I was trying to access it byId, I was accessing a null object. Kelly, Is there a service or description somewhere we could query to figure out what services are included in the BasemapGalleryWidget by default?
... View more
12-16-2011
03:05 AM
|
0
|
0
|
923
|
|
POST
|
Ok i figured my issue out, but it is very app specific. I use a onExtentChange event to hide items in the Gallery if they aren't available at a particular level (i.e. hide the "OpenStreetMap" option at level 19). I hide them by doing dojo.style(dojo.byId(id), "display", "none"); If i comment out the line in my extent change handler my app works again. So it turns out, i was manually (hardcoding) look for some particular layers to hide. One of them was "USA Topo Maps" Apparently that is not in the 2.6 api for the Gallery, so when i went to hide it, I was trying to access it byId, I was accessing a null object.
... View more
12-15-2011
10:07 AM
|
0
|
0
|
923
|
|
POST
|
Jeff, We'd really like to try and reproduce this issue but so far no luck. Just to clarify can you reproduce the problem with the sample or is it only your application? Since you are seeing errors in Firebug I assume you are seeing the issue in Firefox - which version? If you can't reproduce with the sample do you have a url that shows the problem? I am working on it. Your code works for me. It is only internal at the moment. Firefox 8.
... View more
12-15-2011
09:53 AM
|
0
|
0
|
923
|
|
POST
|
Your sample works for me also I get exception in animation handler for: onEnd ?v=2.6 (line 14) TypeError: n is null (function(){var _1=null;if((_1||(typeo...etTimeout(dojo._loadInit,100);}})(); After any zoom event using BasemapGallery and 2.6 . Switching back to 2.5 and error goes away Interesting: Looking in firebug IF i zoom from level 10 to level 15: 1. Operational layers tile requests (from the net tab in firebug) make requests from level 15 2. Tiled layers make new tile requests from level 10.
... View more
12-15-2011
09:09 AM
|
0
|
0
|
923
|
|
POST
|
Jeff, I can't reproduce with this sample: http://help.arcgis.com/en/webapi/javascript/arcgis/demos/widget/widget_basemap.html Can you repro with that sample? If so can you provide me with a series of steps that will show the problem. I tested switching basemaps and using the scroll wheel to zoom and everything looked ok to me. Your sample works for me also I get exception in animation handler for: onEnd ?v=2.6 (line 14) TypeError: n is null (function(){var _1=null;if((_1||(typeo...etTimeout(dojo._loadInit,100);}})(); After any zoom event using BasemapGallery and 2.6 . Switching back to 2.5 and error goes away
... View more
12-15-2011
09:00 AM
|
0
|
0
|
923
|
|
POST
|
Are you specifying a valid bing maps key for the BasemapGallery? var basemapGallery = new esri.dijit.BasemapGallery({
showArcGISBasemaps: true,
bingMapsKey:'Enter Bing Maps Key Here',
map: map
}, "basemapGallery"); Yes I am. To be more specific (or general) 1. Normal tiled services work fine 2. ANY basemap added via the basemap gallery (local, AGO, BING) all fail on mousewheel/zoom slider, its as if the "draw at new scale" is never received. Operational layers on top of basemap draw fine. 3. If you switch layers the basemap will draw at the appropriate scale, so its only zoom events that are failing.
... View more
12-15-2011
08:41 AM
|
0
|
0
|
1105
|
|
POST
|
Thanks for both of those answers. Using expand with setExtent and the true option helps. But I have features that range in size from as big as the Gulf of Mexico to some dinky island in the middle of it. For the small area it would be helpful to see it within the context of nearby land or some other reference information from the Ocean basemap. That is why I was asking if there was a way to evaluate the size or shape of the area and then set a zoom level. It sounds like you want to have a maximum zoom level on your result. Or you could var taxLotExtent = selectedTaxLot.geometry.getExtent();
var height = taxLotExtent.ymax-taxLotExtent.ymin;
var width = taxLotExtent.xmax - taxLotExtent.xmin;
if (width < someSmallWidth or height < someSmallHeight){
taxLotExtent = taxLotExtent.expand(5);
}else{
taxLotExtent = taxLotExtent.expand(1.25);
}
... View more
12-15-2011
08:04 AM
|
0
|
0
|
2154
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-22-2014 08:35 AM | |
| 1 | 05-02-2012 04:56 AM | |
| 1 | 10-29-2021 07:40 AM | |
| 1 | 10-28-2021 05:26 AM | |
| 1 | 07-17-2012 08:48 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-01-2022
02:00 PM
|