POST
|
That fixed it, thanks Tom. I'm back to getting the null object reference error but I can investigate it now that I've got your source code working. Hopefully it will be another simple oversight on my part. Have an excellent week. Blaise
... View more
11-05-2012
03:42 AM
|
0
|
0
|
790
|
POST
|
Nathan, The general steps on my site are this, the selected parcel has a unique parcel id number in the graphics attributes and that PPIN is sent to a .Net web service that returns XML data from my CAMA system and that returned XML is parsed in Flex and a 100% pure Flex report is generated using flex components (such as border containers, labels, images, spark primitive lines, etc) and custom flex components I created. I have utility functions in Flex for adding the report items line by line. The mp on the report is just added using a simple line of code to get bitmapdata for a images source: var bmpMap:BitmapData = ImageSnapshot.captureBitmapData(map); Everything about my reporting system is way to data specific for me to share code on though. I did share this in the past but as everyone likely knows I am not a novice flex programmer so the inner works of that code is pretty advanced and I don't have the time to walk people through it.
... View more
10-11-2012
05:41 PM
|
0
|
0
|
139
|
POST
|
Nathan, Sure just change this function: private function init():void
{
if (configXML)
{
linkURL = configXML.linkurl;
navigateToURL(new URLRequest(linkURL),'_parent');
setState(WidgetStates.WIDGET_CLOSED);
}
AppEvent.addListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
//ViewerContainer.addEventListener(AppEvent.WIDGET_RUN, checkIfLinkWidget);
} Don't forget to click the top arrow (promote) as shown below:
... View more
03-06-2012
06:16 AM
|
0
|
0
|
176
|
POST
|
Martyn, Support for disabling certain identify buttons and turning off popups is now part of Version 2.5.
... View more
12-04-2011
11:09 AM
|
0
|
0
|
357
|
POST
|
I would like to display coords in OSGB36 - do you have a widget for that possibly, please?
... View more
01-14-2019
07:12 AM
|
0
|
0
|
372
|
POST
|
I'm having the same issue, more than 2 years later. I wish there was an answer. If anyone sees this any has some advice, please let me know!!
... View more
10-22-2012
11:44 AM
|
0
|
0
|
137
|
POST
|
Arief, Your issue is you are using layer type dynamic and tiled and then specifying a particular layer id in your url this is not allowed. <operationallayers>
<!--<layer label="Kawasan Hutan" type="dynamic" visible="true" alpha="1.0"
url="http://webgis.dephut.go.id/ArcGIS/rest/services/KH/MapServer/0"/>-->
<layer label="Kawasan Hutan" type="dynamic" visible="true" alpha="1.0"
url="http://webgis.dephut.go.id/ArcGIS/rest/services/KH/MapServer"/>
<layer label="Pelepasan Kawasan Hutan" type="tiled" visible="true" alpha="1.0"
url="http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer"/>
<layer label="Pinjam Pakai Kawasan Hutan" type="tiled" visible="true" alpha="1.0"
url="http://webgis.dephut.go.id/ArcGIS/rest/services/PPKH/MapServer"/>
<layer label="Pemanfaatan Kawasan Hutan" type="tiled" visible="true" alpha="1.0"
url="http://webgis.dephut.go.id/ArcGIS/rest/services/PKH/MapServer"/>
<layer label="Penutupan Lahan" type="tiled" visible="true" alpha="1.0"
url="http://webgis.dephut.go.id/ArcGIS/rest/services/PL/MapServer"/>
</operationallayers>
... View more
07-20-2011
04:58 AM
|
0
|
0
|
199
|
POST
|
Nathan, Every layer is enabled with a maxScale and minScale property all you would have to do is check those in code.
... View more
04-04-2011
10:57 AM
|
0
|
0
|
112
|
POST
|
Hi Nathan, Yes you could do this with scripting. You could read, dbf, xml, csv etc. Using the Recordset object you can add a file and then scroll through the records and map eaxh one. Whether it be to a graphic or into a feature layer is up to you. There is a sample called MultiNav that shows how to interact with XML data. Hope this helps. Cheers, Gareth
... View more
03-31-2011
02:21 PM
|
0
|
0
|
132
|
POST
|
I have tried this legend 2 widget on my api 2.5 project and I am getting this error when I run it: TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.esri.viewer.managers::WidgetManager/createWidget() at com.esri.viewer.managers::WidgetManager/runWidget() at com.esri.viewer.managers::WidgetManager/widgetReadyHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfoProxy/moduleEventHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at ModuleInfo/readyHandler() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.core::FlexModuleFactory/update() at mx.core::FlexModuleFactory/docFrameHandler() at mx.core::FlexModuleFactory/docFrameListener() The legend widget that comes with the api works fine. Any ideas?
... View more
02-10-2012
05:16 AM
|
0
|
0
|
269
|
POST
|
THANKS!!!! It is somewhat less intuitive as REST endpoints are.
... View more
03-04-2011
01:30 PM
|
0
|
0
|
259
|
POST
|
Nathan, Several changes are required: Thanks for this Robert. And if I wanted to integrate it with the BaseMapSwitcher so that the slider is always directly beneath the button bar, intead of at the fixed location where it is right now?
... View more
02-16-2011
12:31 PM
|
0
|
0
|
178
|
POST
|
Thanks for noting the considerations required. The WMS is public, and is available to be consumed. The REST Endpoint of the same map service as ArcGIS REST is public as well, although the meta is not provided. Not to nitpick, but a service being public and available is not the same as it being legal to use. Google imagery is a great example, it is possible to use their services without the Google API but it violates the terms of service. It's important to check the copyright info on the REST page (if it exists), and if using WMS make sure the <AccessConstraints> tag doesn't list any restrictions. In the case of the service listed below, no constraints or copyright or metadata is listed so it's safe to assume it's free to use (the burden is on the service provider to list any restrictions they wish to place on it). But in other cases (Google being the most common example) you can be asked to take down a web map, or even be threatened with a lawsuit for using a public service that has a license that doesn't permit your reuse.
... View more
02-15-2011
07:57 AM
|
0
|
0
|
383
|
POST
|
There are a few things I have found about using the Maptips for a "dynamic" layer when "feature" is not working. First off I can probably bet you are working with dynamic data from a SQL Server. I have been frustrated with the fact that I could not change the data to "feature" without the data not showing, but found that if you change your type="dynamic" to type="feature" just add mode="snapshot" to the layer config file. I am still having problems with speed with the maximum number of features returned from the server but I am getting closer. Let me know if this helped. <layer label="Species" type="feature" visible="true" alpha="1" mode="snapshot" url="http://www.mapservices.ca/ArcGIS/rest/services/Prima/Prima_Operational/MapServer/5"/>
... View more
04-06-2011
08:16 PM
|
0
|
0
|
79
|
POST
|
Should work the same with 3.2 and above. Documentation is: Viewer URL parameters I found this thread helpful for me as well. Thread: Zoom to x and y from value in URL http://forums.arcgis.com/threads/15082-Zoom-to-x-and-y-from-value-in-URL?highlight=geographicToWebMercator
... View more
10-31-2013
09:56 AM
|
0
|
0
|
209
|
Title | Kudos | Posted |
---|---|---|
1 | 09-26-2022 09:11 AM | |
1 | 11-08-2022 08:45 AM | |
3 | 10-13-2022 01:50 PM | |
2 | 10-13-2022 01:39 PM | |
2 | 10-02-2022 11:48 PM |
Online Status |
Offline
|
Date Last Visited |
01-18-2024
12:32 AM
|