|
POST
|
@Stephen The behavior you are seeing is most likely due to the application life cycle. I'm guessing that the Callout is being drawn before the pan animation has completed. As a test, if you set the centerAt() boolean animated property to false the behavior should go away: map.centerAt(esri102100, false); The best practice for setting this up is to implement an OnPanListener() and then show the Callout once the pan event is complete. The GeoRSSFeeds SDK sample shows a basic implementation of a map listener. I'm also opening a ticket to take a closer look at it...just in case. -Andy
... View more
03-02-2012
02:34 PM
|
0
|
0
|
1586
|
|
POST
|
@simra Did you check out the SelectFeatures sample that comes with the SDK install? I think that covers the basics of what you are trying to do. You have to specify a new ArcGISFeatureLayer(), add that to the map, and then finally set up a MapOnTouchListener(). The pattern for doing this is demonstrated in that sample. -Andy
... View more
03-02-2012
01:09 PM
|
0
|
0
|
1218
|
|
POST
|
@skaviksk the general coding pattern goes something like this: 1) Listen for map extent change via onZoomListener() 2) after the zoom event completes, get the current scale via MapView.getScale() 3) compare current scale against your pre-defined minimum scale value 4) If zoom level is below your minimum then bounce the map back up to the minimum using zoomToScale() -Andy
... View more
03-01-2012
10:02 AM
|
0
|
0
|
346
|
|
POST
|
@gurquizo I'm not exactly sure what you are asking, but to draw a blue point on the map you'd use a pattern similar to this: Graphic graphic = new Graphic(mapView.toMapPoint(new Point(e.getX(), e.getY())),new SimpleMarkerSymbol(Color.BLUE,25,STYLE.CIRCLE)); graphicsLayer.addGraphic(graphic); -Andy
... View more
02-29-2012
09:27 AM
|
0
|
0
|
605
|
|
POST
|
@vikrant retry your request, then check the web server log files for the full error message. If you have the ability, also try opening a web browser on the web server and running the same application using the localhost domain name; e.g. http://localhost/myapp.html. For security reasons, many production web servers are configured to not return the full error message to a remote client. However, if you run it locally you may be able to see the error. -Andy Esri Developer Network
... View more
02-21-2012
08:10 AM
|
0
|
0
|
526
|
|
POST
|
@ ganeshssac I've sent you the link, let me know if you don't receive it. I can verify that Aptana v2.0.3 works with the code assist plugin for ArcGIS API for JavaScript v2.6. However, I haven't had a chance to test it with v2.7 yet. Perhaps someone in the community can help with that? Or, if I get a chance to test it this week I'll post an update.
... View more
02-21-2012
08:00 AM
|
0
|
0
|
1366
|
|
POST
|
I agree. I'd say try them out and see what works best for you. Aptana and Notepad++ are free. You can download a trial of Dreamweaver from Adobe. If you are a .NET shop you can also use Visual Studio. -Andy Esri Developer Network
... View more
02-16-2012
10:54 AM
|
0
|
0
|
1109
|
|
POST
|
@ganeshssac I have the .exe for Aptana 2.0.3 if that will work? I'll also ping you at your yahoo email and create a temporary dropbox location for it. It's 101 MBs which is too big to send via email.
... View more
02-16-2012
10:46 AM
|
0
|
0
|
1366
|
|
POST
|
@BenJamin to get information on what item is clicked in the bookmark dijit try adding an onClick event listener to the bookmarks <div>. If try to use dojo.connect(bookmark, 'onClick', someFunction); you won't get the correct scope. For example, here is some psuedo-code, however note that this will pick up "any" click that occurs including the "Add Bookmark" button. So when you build this into your app you'll need to filter what comes back by using something like a switch/case statement: <script>
function bookmarkClickHandler(evt){
console.log("bookmark " + evt.target.innerText);
}
</script>
<div id="bookmarks-pane"
data-dojo-type="dijit.TitlePane"
data-dojo-props='title:"Bookmarks",
tooltip:"I\"m the tooltip for Title Pane #1\"s title bar" '>
<div id="bookmarks" onClick="bookmarkClickHandler(evt)"></div>
<button id="clear-storage">Remove Map Bookmarks</button>
</div>
... View more
02-14-2012
10:00 AM
|
0
|
0
|
406
|
|
POST
|
@geoyogesh I'm not that familiar with Blackberry but have you tried to debug the app with something like this: http://devblog.blackberry.com/2011/06/debugging-blackberry-web-apps/ -Andy Esri Developer Network
... View more
01-26-2012
04:05 PM
|
0
|
0
|
448
|
|
POST
|
@Natalie, you are on the right track. The Address Matching sample that you referenced is what needs to be coded into your existing application. If you wish to give it a try I have several suggestions. You're really close and it's not too many steps: 1) Copy the following HTML tags into your template's index.html file and place this beneath the <div id="description"></div>: <div><textarea type="text" id="address"/>380 New York St, Redlands</textArea> <br /> <button dojotype="dijit.form.Button" onclick="locate()"> Locate</button></div> 2) In layout.js do the following: - copy and paste this at the top of the page: dojo.require("esri.tasks.locator"); dojo.require("dijit.form.Button"); - copy and paste these two lines of code right inside the function initMap(): locator = new esri.tasks.Locator("http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer"); dojo.connect(locator, "onAddressToLocationsComplete", showResults); - copy and paste all the sample code from function locate(){...} and function showResults(candidates){...} and place it right below function addScalebar() in layout.js. So locate() and showResults() will become new functions in the layout.js file. If all goes well, that should do it. Test the app in a web browser. Note that you have to host these files that you downloaded from ArcGIS.com on your own web server. I hope that helps, -Andy Esri Developer Network Team
... View more
01-26-2012
03:48 PM
|
0
|
0
|
592
|
|
POST
|
@Greg, just a clarification: this is the JavaScript forum and I think you are referring to the Flex API (re: FlashBuilder). If you still have a question you may want to repost over in the Flex API Forum: http://forums.arcgis.com/forums/18-ArcGIS-API-for-Flex -Andy Esri Developer Network
... View more
01-12-2012
02:06 PM
|
0
|
0
|
5596
|
|
POST
|
Try explicitly setting the layer index using the optional 'index' property in the addLayer(layer, index?) method. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/map.htm#addLayer -Andy Esri Developer Network
... View more
01-12-2012
01:49 PM
|
0
|
0
|
3203
|
|
POST
|
Have you taken a look at the REST request/response from the editing session in Firebug or Fiddler? Did you see any errors? -Andy Esri Developer Network
... View more
01-12-2012
01:25 PM
|
0
|
0
|
2385
|
|
POST
|
Ah, I think I understand now. You should always use IIS Manager to create new web directories. That way the directory will have the correct permissions assigned to it. Here are my suggestions: 1) First, delete the proxy directory that you already created. It probably doesn't have the right permissions and attributes. 2) In IIS Manager, right click "Default Web Site" > Add Application. Give it a alias/name (e.g. proxy) and in the "Physical Path" field create your new directory folder. 3) Download and copy the contents from here and paste them into the new directory. 4) In your mapping app, set the proxy directory as follows: esri.config.defaults.io.proxyUrl = "/proxy/proxy.ashx"; 5) Test your app using Firefox Firebug, or Fiddler. 6) (Edited) Forgot to mention that you may need adjust the settings in proxy.config so that you can access your own ArcGIS Server. I hope that helps, -Andy Esri Developer Network
... View more
01-11-2012
04:00 PM
|
0
|
0
|
2385
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 08-01-2025 06:20 AM | |
| 1 | 05-27-2025 12:39 PM | |
| 1 | 04-23-2025 06:56 AM | |
| 1 | 04-23-2025 07:09 AM | |
| 1 | 04-08-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|