POST
|
Hello, I'm currently building an application which hosts an esri webpage and provides communication with it. All the communication is done using javascript and using the ArcGIS for Javascript API. If the page contains a call to load the map (using dojo's require with "esri/map" as a module name) and the instance of the map is kept, i can work with it and do all i want. However, some of the pages i would like to interface with don't have such an initializer or are not keeping the actual instance that is created there. Is there a way for me to get the instance that is already initialized ? Kind of a dojo.resolve type of thing, if you will ? Or can i create a new instance of this object and have it communicate with the (already loaded) map? I'm already adding script to the page's DOM to achieve a few of my goals, so i wouldn't mind adding code for it to work, i just can't change the way the map is initialized as it is not my code (but rather my client's). Before anybody asks, yes i do have agreement from my client to push javascript in their page. Thanks in advance
... View more
10-14-2015
01:33 PM
|
0
|
0
|
1573
|
POST
|
Hello, I am developping 3 toolbars with multiple buttons and decided to have my buttons in different namespaces. I looked up the <AddIn>'s namespace parameter and the <Button>'s class documentation , before changing anything. The <Button>'s class documentation states : "If this class is not in the default library namespace specified on the root AddIn element, the class name must be the full name (namespace.className)" However, if i enter any values with ".", the ArcGISAddInHostGenerator generates invalid Config.Designer.cs entries... For exemple : internal class IDs { /// <summary> /// Returns 'TestNamespace_cmdTest', the id declared for Add-in Button class 'TestNamespace.cmdTest' /// </summary> internal static string TestNamespace.cmdTest { get { return "TestNamespace_cmdTest"; } } } This yields the two following errors : Error 1 The modifier 'static' is not valid for this item Error 2 The modifier 'internal' is not valid for this item Of course, i could go back to "everything in the same namespace" but id rather not, especially if this is documented as a supported feature... Anything im doing wrong or is this a bug/wasn't tested ? Thanks in advance Edit, for reference, this would be the button entry in the Config.esriaddinx <Button id="TestNamespace_cmdTest" class="TestNamespace.cmdTest" message="Test" caption="Test" tip="Test" category="Test" image="Images\Test-64x64.png" onDemand="false"/>
... View more
12-21-2011
06:02 AM
|
0
|
2
|
2114
|
POST
|
Can I change the caption in code? Or does the new declarative framework not allow me to do this? I am also interested in knowing the answer to this question and i am also interested in changing the tooltip and message properties. My toolbar has a button that establish a connection to another system and i would like this button to read "Connect" when disconnected and "Disconnect" when connected and obviously, i would like to change their tooltips and message as well. Changing those two other properties result in exceptions. (COMException : "This method cannot be called on built in commands.") Looking forward to an answer to this. Thanks
... View more
11-15-2011
03:48 AM
|
0
|
0
|
359
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|