|
POST
|
You're not wrong, but now that I'm revisiting this, I have no desire to look at Esri's code. Has anyone else discovered a fix? Can this be a bug that is fixed by Esri?
... View more
11-19-2015
09:45 AM
|
1
|
2
|
1907
|
|
POST
|
Look into the properties available to the draggable functionality. You have: $('.LayerDrag').draggable({}); Add constrainment like this: $('.LayerDrag').draggable({ constrainment: '#divName' }); '#divName' would be the container you want your draggable to stay within, like, your DOM element that you put your map in. Note: For your QueryDrag element, you only have "draggable()". You'd need the {} to add draggable properties, like above. https://jqueryui.com/draggable/#constrain-movement
... View more
11-06-2015
07:47 AM
|
1
|
1
|
882
|
|
POST
|
What about hiding a Point symbol (opacity set to 0%) and trying to show the infoTemplate without user interaction (I haven't tried this but seems possible).
... View more
11-05-2015
04:28 AM
|
0
|
0
|
509
|
|
POST
|
In 3.14, if you select a polygon that doesn't require a double click to complete (triangle, rectangle, circle, etc), start drawing the shape, right-click before you let go of the left mouse button, and keep drawing, you get two shapes displaying on the map. What's going on with this? Is there a fix for this? Repro steps: 1. Go here Maps Toolbar 2. Select 'Triangle' 3. Mouse-over map 4. Left click to start drawing 5. Drag mouse to make a triangle 6. Right-click and drag (note: do not lift off of the left mouse button) 7. Drag mouse across map to continue drawing 8. Let go of both mouse buttons (in any order, or same time) 9. Note the red outlined triangle and the black outlined triangle Notes: - When you first right-click, you see a line - If you don't drag across the map in step 7, you'll have 2 triangles on top of each other Tim Witt, if you don't mind taking a look. This looks to be your wheelhouse after I saw the Advanced Draw Tool. Any thoughts on this? Thank you, D
... View more
10-30-2015
05:32 AM
|
0
|
5
|
4198
|
|
POST
|
Use an ajax call in JavaScript to call your webservice method.
... View more
10-29-2015
11:05 AM
|
0
|
0
|
1187
|
|
POST
|
No update. If the graphic is added to the map with a null x or y, there is no telling where the point will be located. That occurs when the graphic is added, and it gets moved when the extent changes.
... View more
10-29-2015
09:12 AM
|
0
|
0
|
1032
|
|
POST
|
What specific questions do you have? What do you want to use .NET for?
... View more
10-29-2015
06:22 AM
|
0
|
0
|
1187
|
|
POST
|
A link to my working code? No, I don't have a link that has this code. In my initial reply to this thread, I provided a link to the class you need, and a code snippet example.
... View more
10-28-2015
06:01 AM
|
1
|
0
|
1585
|
|
POST
|
You'll need to show all of your code. It could be an actual missing semicolon or some kind of hiccup that JavaScript allows, and still renders your data. Also, shooting from the hip thought: Could be callback is a keyword that JSONP is expecting, not JSON.
... View more
10-26-2015
06:54 AM
|
0
|
2
|
1096
|
|
POST
|
I noticed that when bad data is used to create a Point graphic in a graphicLayer, a point is (seemingly) randomly placed on the map. Specifically, the bad data is that graphic.geometry.x (and .y) is undefined. The default map extent is about 4 when I add the point (in fact, I had a layer, then 5 points to the layer where all x and y are undefined). All points display in the middle of the USA. When I mouse scroll to zoom in/out, the points all move to the top-left visible coordinate of the map. From there, I can pan the map around, and the points stay still. The points reset to wherever the top-left visible x/y coordinate is on the map. Any thoughts on what is happening? Why isn't there some kind of validation to not show anything? Bad data shouldn't result in unexpected visual data, no? And yes, I'm adding validation on my end. I found a code path where I'm setting the geometry to the value of a jQuery .val() DOM element. Once I correct it, this isn't an issue. I'm just trying to understand it better. This is for 3.14. Thank you, D
... View more
10-26-2015
06:41 AM
|
1
|
2
|
2483
|
|
POST
|
Hi, I'm trying to wrap my head around how the esri/config class works. I noticed a module in our application that sets a esriConfig.defaults.map property but esri/config is not required in that module. I put a breakpoint on my first line of javascript once the DOM is ready to watch esriConfig. The default properties of esriConfig are set but I haven't explicitly required the class anywhere. To confirm that I wasn't requiring the class elsewhere and it somehow being in scope, I went to the other module or two that were requiring esri/config and removed the reference. Surely, esriConfig would be undefined now, right? Nope, the default properties exist. I review the documentation and discover this: "When coding legacy (non-AMD) style, there is no need to require the module. All methods and properties are available in the namespace." https://developers.arcgis.com/javascript/jsapi/esri.config-amd.html I'm using 3.14 and AMDs. So, it would seem that I would have to require it. Should esriConfig be required before setting/getting properties in a custom module? How is esriConfig global? Is esriConfig supposed to be global? Should it be global? Am I doing it wrong? Why does the documentation imply that only legacy code requires requiring of esri/config? Are there any other global classes? Thank you, D
... View more
10-22-2015
09:30 AM
|
0
|
0
|
2298
|
|
POST
|
Full disclosure, I'm not familiar with the directions widget. I've only used aspects of it. Once a location for A and B was entered, the up/down arrow button switches A and B. Other than that, I don't know about updating the stops/addresses. The link that I provided is for taking the coordinates that are showing up for A and B on the reverse geocoder, and providing an address. I only addressed that part of your question. If you tell me what you mean by updating stops, I might be able to take a peak later.
... View more
10-20-2015
08:11 AM
|
0
|
0
|
666
|
|
POST
|
Note the use of location-to-address-complete here: https://developers.arcgis.com/javascript/jssamples/locator_reverse.html
... View more
10-20-2015
05:47 AM
|
0
|
3
|
666
|
|
POST
|
I'm not sure I've seen an actual book, but check out the API resource center: http://resources.arcgis.com/en/communities/silverlight-api/ and the developer guide: https://developers.arcgis.com/silverlight/ and the API reference library: https://developers.arcgis.com/silverlight/api-reference/#library-reference-overview.html
... View more
10-16-2015
04:20 AM
|
0
|
0
|
430
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-31-2015 06:07 AM | |
| 1 | 09-25-2015 08:35 AM | |
| 1 | 12-07-2015 04:32 AM | |
| 1 | 11-06-2015 07:47 AM | |
| 1 | 03-28-2016 04:19 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|