|
POST
|
I'm not 100% clear on what you'd like to do. Are you saying you'd like to take features from a KML file, add them to a mapp and then show an info window or label when you hover over a feature? Something like this but with the data source from KML: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/query_hover.html
... View more
11-14-2011
06:29 AM
|
0
|
0
|
3422
|
|
POST
|
We are looking at it but the next release will continue to use 1.6.1.
... View more
11-10-2011
08:00 AM
|
0
|
0
|
590
|
|
POST
|
So much for that...let us know when we can see this in action somewhere?
... View more
11-09-2011
12:27 PM
|
0
|
0
|
360
|
|
POST
|
I put together a simple test case using the coords you posted:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title></title>
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/dojo/dijit/themes/tundra/tundra.css">
<link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.5/js/esri/dijit/css/Popup.css">
<style>
html, body { height: 100%; width: 100%; margin: 0; padding: 0; }
#map{ margin: 0; padding: 0; }
</style>
<script>var dojoConfig = { parseOnLoad: true };</script>
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"></script>
<script>
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("esri.dijit.Scalebar");
var map;
function init() {
// var initExtent = new esri.geometry.Extent({"xmin":-17878954,"ymin":-2368856,"xmax":11003235,"ymax":12170078,"spatialReference":{"wkid":102100}});
var initExtent = new esri.geometry.Extent({"xmin":-4414756,"ymin":-4416634,"xmax":16092382,"ymax":9032981,"spatialReference":{"wkid":102100}});
map = new esri.Map("map",{
extent:initExtent,
wrapAround180: true
});
var basemap = new esri.layers.ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer");
map.addLayer(basemap);
dojo.connect(map, 'onLoad', function() {
dojo.connect(dijit.byId('map'), 'resize', map, map.resize);
var scalebar = new esri.dijit.Scalebar({
map: map,
scalebarUnit:'metric'
});
});
}
dojo.ready(init);
</script>
</head>
<body class="tundra">
<div data-dojo-type="dijit.layout.BorderContainer"
data-dojo-props="design:'headline',gutters:false"
style="width: 100%; height: 100%; margin: 0;">
<div id="map"
data-dojo-type="dijit.layout.ContentPane"
data-dojo-props="region:'center'">
</div>
</div>
</body>
</html>
And can't repro it...can you try to come up with a simple test case? On JSFiddle: http://jsfiddle.net/swingley/PC7GB/
... View more
11-09-2011
12:14 PM
|
0
|
0
|
1108
|
|
POST
|
Just brain storming here but are you adding your onClick handler to each graphic or is it on the actual graphicsLayer?
... View more
11-09-2011
11:45 AM
|
0
|
0
|
1689
|
|
POST
|
I do have a control panel which allows me to create 'Virtual Folders", I have used this to create seperate ASP.NET web applications within sub folders of the website. Could I simply put the proxy page in a new "virtual folder" of the website? I think that should work. I would set it up and give it a shot. Don't be afraid dive in and start trying. Those directions are meant to be as simple as possible to get you up and running when you're working on a local dev machine. When you're in production, it's up to you as to where you put things.
... View more
11-09-2011
11:42 AM
|
0
|
0
|
6669
|
|
POST
|
...this is saying that the proxy page must reside on the same machine as the one hosting the webpage with the javascript code. Is this correct? Yes, your proxy must be on the same machine as your html/css/js files. For the proxyURL can I not just specify a IP Address to another web server? You cannot do this. One of the main reasons to use a proxy is so that you can access cross domain resources. If you could use a proxy hosted on another server (AKA a cross domain resource), you wouldn't need a proxy. Directly asking them if you can set up a proxy page is probably not the best way to phrase the question. Most hosting providers probably don't want to hear that you'd like to use their server as an intermediary to grab content from other sites. One thing to clarify is that the proxy is server side code to fetch content from a URL. As long as your hosting provider allows you to run server-side code, you can use a proxy page. There are example proxy pages available in PHP, .NET and Java. To use those, you need to specify which domains your proxy can access. This is explained in the comments in each proxy page.
... View more
11-09-2011
09:44 AM
|
0
|
0
|
6669
|
|
POST
|
I'm seeing a similar issue with IE browsers where the scalebar, zoom slider and popup window opacity is also changing with setOpacity() on any map layer. Is this related to the same issue? I am using version 2.5. If I go back to a map using 2.2, I do not see this problem. That seems strange...can you post the code you're using? A simple, complete HTML file would be ideal.
... View more
11-09-2011
07:23 AM
|
0
|
0
|
2099
|
|
POST
|
You can use a geometry service's labelPoints method. Or you could use a custom GP service. We don't have a way to do this client side.
... View more
11-09-2011
05:53 AM
|
0
|
0
|
821
|
|
POST
|
No, please see the answer I posted to your question over on GIS.SE: http://gis.stackexchange.com/questions/16660/how-can-i-edit-lines-containing-m-values-with-the-arcgis-js-api/16663#16663
... View more
11-08-2011
05:01 AM
|
0
|
0
|
540
|
|
POST
|
Please take a look at the conceptual help topic for using a proxy: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/ags_proxy.htm Using a proxy is a common technique in web development (not just GIS-based web dev) used to get around limitations imposed by the browser. Specifically, a proxy is used to get around the URL length limit that is present in IE and the same origin policy present in all browsers. Side note: please use esri.config as esriConfig was deprecated several releases ago.
... View more
11-08-2011
04:50 AM
|
0
|
0
|
6669
|
|
POST
|
All of that looks like pretty standard, straight forward stuff. I'm not sure where the delay is being introduced. Any chance your app in on a public server?
... View more
11-04-2011
01:17 PM
|
0
|
0
|
1689
|
|
POST
|
For the markers, I am just using a GraphicsLayer, connecting it to a map service, and doing layer.add(graphic) calls based on filtered sets of them. How are you connecting a graphics layer to a map service? It does seem that there is a problem with the simple onclick handling for this graphic layer. If I click in an area where there are maybe 10-15 markers under the cursor tip (and more nearby), it can take 2-3 seconds before the onclick handler gets called. In less crowded areas it's instantaneous. This surprised me because I presumed the (instantaneous) tooltips had to do the same work. Something does seem off about that...can you post your event handling code for your graphics layer?
... View more
11-04-2011
09:16 AM
|
0
|
0
|
1689
|
|
POST
|
Hi Rex, Glad to help. When you mention "toolkit" ...what specifically are you talking about? Is this something you or someone else assembled? How does it differ from the core API? The link I posted uses a GraphicsLayer which does not require a server round trip as all feature information is stored on the client. Graphics layers (and Feature layers) are a great when you need interactivity but can lead to performance issues if you try and use them with more than a couple thousand features. I'm guessing your using a dynamic map service layer. If that's the case, then yes, it does require a server round trip to get actual feature geometry and feature attributes. The mechanism to do this is an identify or query task.
... View more
11-04-2011
07:55 AM
|
0
|
0
|
1689
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 01-23-2012 07:54 AM | |
| 1 | 05-28-2010 08:31 AM | |
| 1 | 11-12-2012 08:12 AM | |
| 3 | 02-23-2012 10:57 AM | |
| 1 | 06-27-2011 08:51 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|