|
POST
|
How would I submit an enhancement request? http://ideas.arcgis.com/
... View more
07-12-2013
08:07 AM
|
0
|
0
|
848
|
|
POST
|
This issue only occurs in IE 10. If you change the Browser Mode through the debugging tools to IE9 or earlier, drawing the zoom box while holding shift works correctly. You can force IE10 into an earlier rendering engine using the X-UA-Compatible meta tag. (Firefox, Chrome, etc. will ignore this tag.) [HTML]<html> <head> <!-- Use Internet Explorer 9 Standards mode --> <meta http-equiv="x-ua-compatible" content="IE=9"> <title>My webpage</title> </head> <body> <p>Content goes here.</p> </body> </html> [/HTML] As for why the shift+zoom doesn't work in IE 10, I don't know. Maybe one of Esri's developers can address this.
... View more
07-12-2013
08:00 AM
|
1
|
0
|
942
|
|
POST
|
Have you tried putting your content in BorderContainers? You could use the dojox/layout/ExpandoPane to toggle the pane on and off.
... View more
07-11-2013
01:03 PM
|
0
|
0
|
347
|
|
POST
|
You really need to wrap HTML code samples in [HTML] tags so they are readable. [HTML]<html> <head> <link rel="stylesheet" href="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/js/esri/css/esri.css"> <style> html, body, #map { height:500px; width:100%; margin:0; padding:0; } </style> <script src="http://serverapi.arcgisonline.com/jsapi/arcgis/3.5/"></script> <script> var MAP_OBJ; dojo.require("esri.map"); function init() { MAP_OBJ = new esri.Map("map", { basemap: "topo", center: [-122.45, 37.75], zoom: 10, sliderStyle: "small" }); dojo.connect(MAP_OBJ, "onLoad", function() { dojo.connect(MAP_OBJ, "onClick", addMapMarker); dojo.connect(MAP_OBJ, "onResize", onMapResize); dojo.connect(MAP_OBJ, "onReposition", onMapReposition); }); } // function addMapMarker(evt) { var mp = evt.mapPoint; var symbol = new esri.symbol.SimpleMarkerSymbol( esri.symbol.SimpleMarkerSymbol.STYLE_CIRCLE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color("red"), 1), new dojo.Color("blue")); var graphic = new esri.Graphic(mp, symbol); MAP_OBJ.graphics.add(graphic); } dojo.ready(init); // function collapseDiv() { var div = document.getElementById("divTop"); div.style.display = "none"; } // function displayDiv() { var div = document.getElementById("divTop"); div.style.display = "block"; } function onMapResize(evt) { alert("RESIZE"); } function onMapReposition(evt) { alert("REPOSITION"); } </script> </head> <body> <form> <div id="divTop" style="padding:10px;border:2px solid black; height:100px"> <input type="button" value="Collapse" onClick="javascript:collapseDiv()"> <br/>Step 1: Click on the map and see marker placed where click occurred. <br/>Step 2: Click the Collapse button and click on the map again. Marker is not displayed at click location.</div> <div id="map"></div> <div id="divBottom" style="padding:10px;border:2px solid black; height:100px"> <input type="button" value="Display" onClick="javascript:displayDiv()"> <br/>Step 3: Click the Display button and click on the map again.</div> </form> </body> </html> [/HTML]
... View more
07-08-2013
12:22 PM
|
0
|
0
|
347
|
|
POST
|
Is the marker an ArcGIS JS API graphic? I thought a graphic would move along with the map. Can you make a jsfiddle demonstrating the behavior you described?
... View more
07-03-2013
08:05 AM
|
0
|
0
|
2116
|
|
POST
|
Depending on what browsers you need to support, you may be able to use an HTML datalist element with an input element to provide an auto-completing input text box. If you need a drop down list, you can try using a regular HTML select tag and use JavaScript to add option elements.
... View more
07-02-2013
04:23 PM
|
0
|
0
|
702
|
|
POST
|
Is there a way to bypass the infowindow and go directly to a hyperlink (via an attribute containing a web address) by clicking on a feature? Or, to put it another way... Right now my script is setup for an info window, but instead of pulling up the infowindow upon clicking a feature, I want to go straight to a webpage. How could I accomplish this? You would need to register an event handler for the layer's click event. By providing this event handler, you override the default click behavior of opening the info window.
... View more
07-02-2013
08:11 AM
|
0
|
0
|
1185
|
|
POST
|
I can confirm that I also experienced this issue when I tried the sample link in IE 10. I am also unable to zoom by holding down the shift key and drawing a box. You could probably use the X-UA-Compatible meta tag to force IE 10 to use IE 9 mode.
... View more
07-02-2013
08:05 AM
|
0
|
0
|
692
|
|
POST
|
Have you tried what is suggested on the Working with Secure Resources page?
... View more
07-01-2013
04:23 PM
|
0
|
0
|
5051
|
|
POST
|
esri/geometry/Extent::contains take a point or extent. Per the docs: https://developers.arcgis.com/en/javascript/jsapi/extent.html#contains You could use the extent of your line but not the line itself. Does this work? Loop through each point in the polyline and check to see if it is contained in the extent. If one of the points is outside of the extent, you can break out of the loop. You know the answer is false. If all of the points are contained in the extent, then the answer is true.
... View more
06-26-2013
09:03 AM
|
0
|
0
|
1160
|
|
POST
|
The IDs 102100 and 3857 both represent the same spatial reference: WGS84 Web Mercator (Auxiliary Sphere), so it would seem unlikely that the cause of the issue is due to a spatial reference system mismatch.
... View more
06-25-2013
12:16 PM
|
0
|
0
|
1160
|
|
POST
|
I encountered a similar problem yesterday mixing ArcGIS JS with Twitter Bootstrap. What I did was manually resize the map when the browser window changed.
/*global require*/
/*jslint browser:true*/
require(["dojo/on", "esri/map"], function (on, Map) {
"use strict";
var map;
// Create the map.
/** Set the height of the map div.
*/
function setMapDivHeight() {
var topNavBar, mapDiv, desiredHeight;
topNavBar = document.getElementById("topNavBar");
mapDiv = document.getElementById("map");
desiredHeight = window.innerHeight - topNavBar.clientHeight - 40;
mapDiv.style.height = [desiredHeight, "px"].join("");
if (map) {
map.resize();
}
}
setMapDivHeight();
map = new Map("map", {
basemap: "streets",
autoResize: false
});
on.once(map, "load", function () {
on(window, "resize", setMapDivHeight);
});
});
... View more
06-18-2013
08:01 AM
|
0
|
0
|
1097
|
|
POST
|
I have a simple Javascript API that uses the editor widget. It works fine in Google Chome but in IE 9 I cannot create new features, update attributes, or add attachments. Why would this be? My guess would be that you are using some JavaScript function that has not yet been implemented in IE 9.
... View more
06-17-2013
09:26 AM
|
0
|
0
|
1326
|
|
POST
|
This project might be helpful to what you are trying to do. https://github.com/WSDOT-GIS/LayerFactory
... View more
06-17-2013
09:24 AM
|
0
|
0
|
1830
|
|
POST
|
I don't understand why you're using an info window if you don't want to display it on top of the map. For what reason can you not "implement this sample"?
... View more
06-14-2013
07:51 AM
|
0
|
0
|
1009
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-08-2025 08:56 AM | |
| 2 | 03-05-2024 05:10 PM | |
| 1 | 04-30-2013 08:23 AM | |
| 1 | 05-03-2022 09:45 AM | |
| 1 | 06-30-2015 10:55 AM |