|
POST
|
Yes, but this is no different than a flash application. Well am sure there is a way around everything these days, I was referring to how easy it is to trace JS code just by viewing the source of the html doc. We protected the swf from decoding using a commercial software and I couldn't decode the final swf using a variety of ways, am sure there is a way, it just seems to be that much difficult from JS code.
... View more
02-25-2014
03:26 PM
|
0
|
0
|
1021
|
|
POST
|
Dave, That's the thing... The dust is settling. Microsoft Internet Explorer has been the major hold back and now they are starting to grasp HTML5. As I mentioned I am not real excited about this but the Army taught me to be flexible. I have been dabbling in the JavaScript API for a while now as I know this day would come. Robert, what is your impression so far? For a typical app for JS and FB, is JS faster given all other parameters stay constant? Thanks
... View more
02-25-2014
12:54 PM
|
0
|
0
|
1021
|
|
POST
|
FB? you mean flash builder? while it might have its flaws while developing it has little to do w/the resources an app uses when deployed. and if you don't like FB, there are a few other dev platforms, intelliJ for instance, that are quite nice. Yeah I meant Flash Builder. I should have said "ActionScript" is the only coding language I know. But this upcoming transition is inevitable. About Javasctipt, I have a basic question, as I understand, all the code is executed on the client side, so that enables anyone to grab all the code?
... View more
02-24-2014
10:59 PM
|
0
|
0
|
1965
|
|
POST
|
I say this and FB is about the only source that I know to create apps, this is inevitable. Apps created with FB run quite slow and memory intensive if you load any decent amount of dynamic data. Am not sure that JS will be better at this, am hopping it will be.
... View more
02-24-2014
03:40 PM
|
0
|
0
|
1965
|
|
POST
|
Hello; Are the graphics bitmaps that are embedded in the app? My app queries landmarks with a certain type, the query happens by user input. The graphics bitmaps are embedded in the app, and the graphic symbol is added to the map in the result function of the landmark relationship type query. It seems to work fine. Let me know if you need the code for this. Regards;
... View more
02-13-2014
07:09 PM
|
0
|
0
|
864
|
|
POST
|
Hello; So am loading a bunch of points into an ADG and point on the map too. There are these little functions that do a relationship query based on a landmark type. All was working great, the issue was sorting the results alphabetically in the ADG. When you click on the top column of the ADG, it sorted them, but when you select an item from the ADG, the map would zoom to an incorrect point, far away from the intended location. This didn't happen if you didn't sort the results. I added code to sort the results programatically with the same issue. The map zooms to the wrong point. private function doQueryLandmarkAppliances(event:Event) : void{ landmarkTypeQueryTask = null;
landmarkTypeQueryTask = new QueryTask;
var landmarksRelationshipQuery:RelationshipQuery = new RelationshipQuery();
landmarksRelationshipQuery.objectIds = [120];
landmarksRelationshipQuery.relationshipId = 3;
landmarksRelationshipQuery.outFields = ["*"];
landmarksRelationshipQuery.returnGeometry = true;
landmarksRelationshipQuery.outSpatialReference = myMap.spatialReference;
landmarkTypeQueryTask.method = URLRequestMethod.POST;
landmarkTypeQueryTask.url = "http://arcgis4.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NewCairo/MapServer/25";
landmarkTypeQueryTask.executeRelationshipQuery(landmarksRelationshipQuery, new AsyncResponder(onLandmarksAppliancesResult, onRelationshiptQueryFault, null));
}
private function onLandmarksAppliancesResult( result:Object, token:Object = null ) : void
{
landmarkResultsCount = result[120].features.length;
launchLandmarksADG();
landmarksADGVar.landmarksADG.dataProvider = sortAttributes(result[120].attributes);
for each (myLandmarksGraphic in result[120].features)
{
selectedLandmarkObjectID = myLandmarksGraphic.attributes.OBJECTID;
myLandmarksGraphic.symbol = appliancesMMarker;
landmarksGraphicsLayer.add(myLandmarksGraphic);
}
}
private function sortAttributes(attrs:Array):Array
{
return attrs.sortOn("LandmarkEName");
}
... View more
02-13-2014
03:23 AM
|
0
|
0
|
520
|
|
POST
|
Hello all; The Geocoder is a great component, we just have a few issues with it. We have published a service using our own data, it is a composite all in one service. Here are the issues: 1. The geocoder doesnt find a result until the complete street name is entered. For example, this building is located on a four name street name. So in the geocoder if you type "339 Raed Tayar Hassan" it doesn't find the result, until you type the last name of the street like this "339 Raed Tayar Hassan Ahmed" and then it finds it. Any ideas? You can test this here: http://www.digitaleg.com/Digital_Egypt/EGIPA/Map_En.html 2. In the directions component, I cant seem to assign a maximum result count for the gecoder. It throws a runtime error. landmarkDirectionComponent = new Directions; landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
landmarkDirectionComponent.locatorURL = "http://arcgis4.roktech.net/arcgis/rest/services/DigitalEgypt/AllInOne/GeocodeServer";
landmarkDirectionComponent.geocoderOptions.maxLocations = 20; TypeError: Error #1009: Cannot access a property or method of a null object reference. 3. How can I assign custom actions to the geocoder based on a few things. I want users to be able to use the geocoder for short cut actions, for example if you type "p" and hit enter, then the map zooms to the previous view. So how can one cache specific input determined in the application, and if the input is none of them, then the standard geocoder functionality takes over. 4. The geocoder here :http://arcgis4.roktech.net/arcgis/rest/services/DigitalEgypt/AllInOne/GeocodeServer/findAddressCandidates returns a field "Loc_name: " which I can use in Flex to make the application display a popup with info when a landmark is selected from the geocoder results, or something else for example if it is another layer. How can one go about doing that? Sort of like a result event, and if ("Loc_name == "something", then do this) Thanks
... View more
02-13-2014
03:04 AM
|
0
|
4
|
2547
|
|
POST
|
Hello; What I suggest is creating a point feature class. Then you will add the points in all locations graphically in Arc Map. Each point will store the panorama URL source (HTML or Flash or Quicktime). In your application, you will query this point layer, and load the url source into an FLV component inside flash builder. You can find an app that uses panoramas on top of a map here: http://www.digitaleg.com/Digital_Egypt/El-Rehab/GIS/RehabEnglish.html
... View more
02-13-2014
02:41 AM
|
0
|
0
|
939
|
|
POST
|
This is great, listening to the creation complete event of the directions component did the trick. Thank you 🙂 Last brush up I need to do is that the graphic of the first stop doesn't get added until the directions are generated, I think I have to create a graphic var, but for now this is awesome.
private function launchLandmarkDirections():void
{
landmarkDirectionComponent = new Directions;
landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
landmarkDirectionComponent.map = myMap;
landmarkDirectionComponent.addEventListener(FlexEvent.CREATION_COMPLETE, setUpDirections)
}
private function setUpDirections(event:FlexEvent):void
{
var stop:DirectionsStop = landmarkDirectionComponent.stopProvider[0];
var driveString:String = new String;
driveString = landmarkMapPoint.x + "," + landmarkMapPoint.y;
trace(driveString);
stop.searchTerm = driveString;
}
... View more
01-24-2014
02:06 PM
|
0
|
0
|
1043
|
|
POST
|
Raffi, Is there a reason you are creating the Direction component programatically and not in the MXML markup? It is likely that the Directions component is not finished creating before you attempt to access it's stopprovider (timing issue). That very well could be it Rober. Just most of the app uses little mxml. Maybe I can call a function that listens to the creation complete event from the dir component and in that function assign the stop, if that doesnt work, I will try an mxml component. Thank you 🙂
... View more
01-24-2014
12:49 PM
|
0
|
0
|
1043
|
|
POST
|
Raffi, Don't create a new directionsStop just set the search term on the first one in the directions component. var stop:DirectionsStop = dir.stopProvider[0];
stop.editable = false;
stop.searchTerm = '31.41189186200006,30.01863021300005'; Hello Robert, thank you very much for the help... I tried it and still got the out of bounds runtime error "RangeError: Index '0' specified is out of bounds. at mx.collections::ListCollectionView/getItemAt() at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty() at Map_English/launchLandmarkDirections() at Map_English/setLandmarkDirectionsTo() here is the code private function launchLandmarkDirections():void
{
landmarkDirectionComponent = new Directions;
landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
landmarkDirectionComponent.map = myMap;
var stop:DirectionsStop = landmarkDirectionComponent.stopProvider[0];
stop.editable = false;
stop.searchTerm = '31.41189186200006,30.01863021300005';
} "
... View more
01-24-2014
12:31 PM
|
0
|
0
|
1043
|
|
POST
|
Wow, Great App Raffi. Its good to know that you can just send the XY to the stop provider. One of my requirement in the future will be to capture the mobile device location and use that as a stop -- stop[0]. This is going to come handy for me also in the near future. Hi Koman, thank you for your kind words...and good luck with the task on hand 🙂
... View more
01-24-2014
12:18 PM
|
0
|
0
|
1043
|
|
POST
|
Hello Koman and Robert, many many thanks for the posts and help. Am still working on this on my end. We have a tiny bit different setup. We right now are using the default geocoder, but we are using our own street network for Egypt. ESRI does have a bit of coverage, but ours is a bit expanded. We will have our own geo coder service soon...anyways so I cant pass addresses to the component, just map points for now. The other thing is I want to pass one stop only and the user selects the other (for the drive To or From here functionality). I tried a few things, and each one acts up differently...this one throws "RangeError: Index '0' specified is out of bounds." at runtime private function launchLandmarkDirections():void{
var landmarkStopProvider = new DirectionsStop();
landmarkStopProvider.location = landmarkMapPoint;
var stop2:DirectionsStop = new DirectionsStop();
trace(landmarkStopProvider.location);
landmarkDirectionComponent = new Directions;
landmarkDirectionComponent.url = "http://tela.roktech.net/arcgis/rest/services/DigitalEgypt/EGIPA_NetworkStreet/NAServer/Route";
landmarkDirectionComponent.addEventListener(DirectionsEvent.DIRECTIONS_COMPLETE, landmarkDirectionsCompleteHandler);
landmarkDirectionComponent.map = myMap;
landmarkDirectionComponent.stopProvider[0] = landmarkStopProvider;
} the trace statement above gives "MapPoint[x=31.41189186200006,y=30.01863021300005,SpatialReference[wkid=4326]]" Then when I remove the 0 index, making the stopprovider line like this landmarkDirectionComponent.stopProvider = landmarkStopProvider; it actually works a little, it adds a point on the map, but like it doesnt commit the value, so the geocoder is blank even though the point is placed. You have to click and drag the point and then the value commits and the geocoder gets filled. You can see this in action on the Beta app, http://www.digitaleg.com/Digital_Egypt/EGIPA/Map_English.html . besides food, click on any type, then from the list on the left select a landmark then select drive to or from, they both are identical now.
... View more
01-24-2014
01:34 AM
|
0
|
0
|
1043
|
|
POST
|
Hello Koman; Thanks for the post. Am planning to dive into this myself in two or three days, and will update here for sure as well. Regards; Raffi
... View more
01-17-2014
02:20 AM
|
0
|
0
|
935
|
|
POST
|
Thank you Robert for the reply. I will give that a shot and update this post.
... View more
01-14-2014
11:29 AM
|
0
|
0
|
935
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-15-2012 07:49 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|