|
POST
|
@ _js Ok that makes sense. I have not switched back to the stack container yet but with the divs I was able to call initMap the first time the map page loads and it is now working as expected. @ btfou I did try that and If I remember I had every pane and parent set to 100% width and height, but I will do some more testing later tonight after work just to be sure, it's currently working with div's and calling my initMap function when that particular div becomes visible, so I'll see if I can get this working inside the stack container widget. This was failing in the browser as I often just test things in Safari to make sure they at least load before I run the app through XCode and then test it on my iPhone or iPad. Thanks guys, I appreciate the response.
... View more
06-18-2013
01:03 PM
|
0
|
0
|
1420
|
|
POST
|
So I tried some new things. I removed the StackContainer from the equation and made a very simple layout with three div's that change their display property. I changed all three Content Panes in the Stack Container to normal div's with display set to none, I then set the homepage display to block and when a button was hit to change page I would just change the page's display to block and the previous page's display to none. This results in the same thing. When I change to the map it shows up in 400 x 400. Could it be that just because when I create the map, if the parentDiv the map lives in has the display set to none then it defaults to this size?
... View more
06-18-2013
09:53 AM
|
0
|
0
|
1420
|
|
POST
|
Hi everyone, I am building a mobile app and am running into problems with the size of the map. I have a stack container(with 3 content pane's) inside a border container with region set to center. The first stack loaded is the homepage with 2 options, a map page and a info page, if I click the map page the map always loads with height and width set to 400px. I have every parent of the mapDiv and the map set to 100% width and heigh. If I load the map page by default and not the homepage, it loads at full screen, but I need to load the homepage first and doing so results in the map always getting set to 400px. I have tested lots of different things and have not come up with a clean solution. Does anyone have any suggestions ? note: I set the class map like this .map {
height: 100% !important;
width: 100% !important
} and I end up with the map loading at 400 x 400 but then a second later expanding to 100%, kind of works but looks bad and the center point I define in map constructor is center when it is 400 x 400 not 100%
... View more
06-18-2013
06:43 AM
|
0
|
7
|
2457
|
|
POST
|
I am seeing some odd behavior in editing a feature layer and was wondering if anyone could offer any suggestions on how to fix it. What's happening is I have a list of features, when the user clicks one the feature layer sets a definition expression with that feature and allows the user to start editing. This is a multi page application so after the user does this they may navigate to another screen and when they do and then come back to the map, the feature they previously edited is now uneditable. If they click on the same one as before the application sets the definition expression and then waits for the editable layer 'onUpdateEnd' to show instructions and editing tools, but this is where it fails. the editable layer has no features after setting the definition expression, I check the editableLayer.graphics property and the array is of size 0. So essentially, once they edit a feature, save it, navigate to a different screen in the app, and come back, if they try to edit the same feature when I set the definition expression again it shows there are no features. Does anyone have any ideas or suggestions of what this could possibly be? If you need to see any code let me know and I will upload whatever is needed.
... View more
04-17-2013
07:36 AM
|
0
|
0
|
650
|
|
POST
|
sounds like some css needs to be tweaked to make sure that the position of the other buttons is not effected by the position of the new button. I have not seen the code for the basic template viewer before but I imagine if you look into the css files you might see some relative position or something for the original buttons.
... View more
03-29-2013
06:28 AM
|
0
|
0
|
457
|
|
POST
|
Hi I was looking over the sample of using a renderer with a function and was wondering if it could be used to work on a dynamic layer. It looks like in the sample it uses a feature layer and the function it passes in takes a graphic object as a parameter. I'm guessing this will go over all graphics in a feature layer but in my app I am using a dynamic layer and was curious if there is a way to get this same functionality.
... View more
03-29-2013
06:21 AM
|
0
|
0
|
659
|
|
POST
|
you can definitely dig into the layers in the web map in an application written with our API. this sample loops through the webmap layers to add them to a legend. Thanks I have done this a few times, the API makes it pretty simple. it sounds however like you are currently sharing a link to open the original web map (perhaps in the standard arcgis.com viewer?). in order to build out the functionality you describe you would need to be linking to a configurable web application (that loads a web map based on its id) and similarly pulls additional information out of the Url to write a definition query on the fly. But this is exactly what I was going for. The webmap is currently living on the standard viewer. I think my project manager would prefer I do this through the standard AGOL viewer but it sounds like at this time that is not possible. I will suggest this as an alternative to her as this would be fairly simple to build and see if it's something we can do. Thanks a lot, I appreciate the response.
... View more
02-01-2013
12:16 PM
|
0
|
0
|
1183
|
|
POST
|
Thanks for the response, How would I get access to the layer though to apply the layer definition? If it were for the map in my app I think this would be very easy but because it is a webmap on an AGOL account I don't have access to the layer(atleast not that I know of). I am just giving my user an <a> tag with the link to the webmap to open it in a new page. I was hoping to be able to have it open with a particular definition set on it.
... View more
02-01-2013
11:50 AM
|
0
|
0
|
1183
|
|
POST
|
My question is that is it possible to set a layer definition on a Webmap through the URL? What I am essentially trying to do is I am building an app that has a profile page with a link to an AGOL webmap. When the user clicks the link I would not only like to be able to take them to a webmap but also set a layer definition on the layer in the webmap. Each profile page is for a specific district and there are tons of districts over the whole country, can I link them to the webmap and pass in a definition expression, say something like 'DistrictId = 240042' and have that set on the map on load.
... View more
02-01-2013
11:05 AM
|
0
|
5
|
1424
|
|
POST
|
Ok. Thanks for the help, I really appreciate it. Yes I was able to reproduce the problem and it is a bug in the JSAPI that we'll get fixed for the next release. Kelly
... View more
01-16-2013
10:44 AM
|
0
|
0
|
575
|
|
POST
|
Hey Kelly, I was curious if you were able to recreate that bug I had mentioned or if it seems like I may be doing something wrong on my end? I had a meeting with my project manager the other day and it seems they really like the editor widget and would prefer I use that than building my own reshape and cut tool and connecting them to the geometry service. I was able to build a workaround for now by hiding the select box that was causing the error and placing a few buttons(one for each option that was in my select) in the toolbar that when clicked, will force the drawToolbar to activate a different drawing tool. This works for now but seems like kind of a hack.
... View more
01-16-2013
06:47 AM
|
0
|
0
|
2846
|
|
POST
|
Thanks for pointing that out Kelly, I will give it a shot.
... View more
01-15-2013
07:04 AM
|
0
|
0
|
2846
|
|
POST
|
Update on this. Thanks for pointing out that sample Kelly, it looks like I can get most of the behavior I will be needing from doing that with the exception of the reshape and cut tool. If there is a way I can add those to the toolbar that would be great. On a separate note, I have noticed from doing some more testing that I am getting an error with the editor widget and was noticing the same error in one of the samples located here: http://help.arcgis.com/en/webapi/javascript/arcgis/samples/ed_simpletoolbar/index.html The error is - TypeError: 'undefined' is not an object (evaluating 'this._activeTool._enabled') and points to Editor-all.js line 19 This happens when I select a template from the template picker, then select the drawing tool I wish to use via this select widget (see attached photo). Then if I move the mouse to the map I lose the tooltip and cannot draw. Upon selecting the template picker again I see this error and cannot draw any items on the map. Everything works fine until I try to change the drawing tool. [ATTACH=CONFIG]20731[/ATTACH]
... View more
01-15-2013
05:13 AM
|
0
|
0
|
2846
|
|
POST
|
Thanks again Kelly. I will try that tomorrow morning to see if I can get it working. However I did not see any options on the sample page or the api reference page about adding in the Reshape Tool or the Cut tool, do you know of any way I could maybe add those to the toolbar in the same way as the other options in that sample?
... View more
01-14-2013
04:53 PM
|
0
|
0
|
2846
|
|
POST
|
Thanks for the response Kelly. I was looking for a little more functionality than what is in that sample. I am looking to add in the editing toolbar as well which I took a screenshot of. I would like to use this toolbar but not the attribute inspector. The code I am using for this is as follows:
var settings = {
map: map,
templatePicker: templatePicker,
layerInfos: [{featureLayer: editableLayer}],
toolbarVisible: true,
showAttributesOnClick: false,
createOptions: {
polygonDrawTools:[esri.dijit.editing.Editor.CREATE_TOOL_FREEHAND_POLYGON,esri.dijit.editing.Editor.CREATE_TOOL_AUTOCOMPLETE]
},
toolbarOptions: {
reshapeVisible: true,
cutVisible: true,
selectVisible: false
}
};
var params = {settings: settings};
var myEditor = new esri.dijit.editing.Editor(params,"editingTools");
myEditor.startup();
This seems to bring both the edit toolbar and the attribute inspector in, Is there a way to just get the edit toolbar? Here is the screenshot of the edit toolbar I currently have and need to keep. [ATTACH=CONFIG]20716[/ATTACH] If you need me to post more code just let me know I can, There is a lot of code in the app and I did not want to post more than was necessary
... View more
01-14-2013
12:57 PM
|
0
|
0
|
2846
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-08-2015 01:10 PM | |
| 1 | 08-28-2015 08:59 AM | |
| 2 | 08-31-2015 12:26 PM | |
| 1 | 08-11-2015 08:52 AM | |
| 1 | 04-13-2016 09:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|