|
POST
|
Have you tried using the top and/or left constructor options? https://developers.arcgis.com/en/javascript/jsapi/layerswipe-amd.html#layerswipe1
... View more
10-02-2013
01:48 PM
|
0
|
0
|
840
|
|
POST
|
When you're not using the popup on the map, things are a little different. When putting content from a feature in an element outside the map, you have to do more with your code. In the sample you linked to, the displayPopupContent function gets feature info and puts it in a div. This is where you could also do any custom formatting.
... View more
10-02-2013
05:04 AM
|
0
|
0
|
1649
|
|
POST
|
Still Broken Can others confirm? Both the API and SDK download links are working for me.
... View more
10-02-2013
04:53 AM
|
0
|
0
|
1193
|
|
POST
|
Download links are fixed: http://www.esri.com/apps/products/download/index.cfm?fuseaction=download.all#ArcGIS_API_for_JavaScript
... View more
10-01-2013
01:23 PM
|
0
|
0
|
1733
|
|
POST
|
If you're still using setContent and setTitle, continue to use an instance of InfoTemplate. You can use it with Popup. Unless you want PopupTemplate's specific features, no need to use PopupTemplate.
... View more
10-01-2013
10:50 AM
|
0
|
0
|
1649
|
|
POST
|
You can change the home button's alt text the same way you change text or a label for any other widget in the API: use dojo/i18n ot load and get a reference to the API's collection of text strings and change widgets.homeButton.home property to be whatever you like. Here's code to do this: require([ "esri/map", "esri/dijit/HomeButton", "dojo/i18n!esri/nls/jsapi", "dojo/domReady!" ], function( Map, HomeButton, esriBundle ) { esriBundle.widgets.homeButton.home.title = "Custom home button text."; var map = new Map("map", { center: [-56.049, 38.485], zoom: 3, basemap: "streets" }); var home = new HomeButton({ map: map }, "HomeButton"); home.startup(); }); I don't think we currently have this in our docs and we'll get it added.
... View more
09-30-2013
04:16 AM
|
0
|
0
|
734
|
|
POST
|
Okay, it turns out that those plugins were compatible with the dojo loader. I just needed to create a dojoconfig that pointed to the plugins in the paths property. It seems to be working for me now. Thanks for your help. That's awesome! Glad you're up and running.
... View more
09-26-2013
04:59 PM
|
0
|
0
|
997
|
|
POST
|
Have you looked at using Dojo's loader to load your require plug-ins? I'm not sure if they're compatible but it's worth trying: http://livedocs.dojotoolkit.org/loader/amd#plugins What do your current requirejs plug-ins do?
... View more
09-26-2013
11:00 AM
|
0
|
0
|
1693
|
|
POST
|
What does requirejs do that you can't do with the Dojo module loader?
... View more
09-26-2013
10:21 AM
|
0
|
0
|
1693
|
|
POST
|
The short answer is no, you can't use requirejs next to Dojo. If you're using Dojo, use Dojo's module loader.
... View more
09-26-2013
08:13 AM
|
0
|
0
|
1693
|
|
POST
|
In the sample you linked to, the formatting function is in the global scope. To get your formatting function to run, make it a global (or a property on some global object).
... View more
09-24-2013
09:50 AM
|
0
|
0
|
1649
|
|
POST
|
I can tentatively say it's ready for production�?? feel free to test it. It's being used on arcgis.com right now.
... View more
09-18-2013
06:57 AM
|
0
|
0
|
688
|
|
POST
|
We haven't officially released 3.7 yet but you're right, it's up on js.arcgis.com. We're putting the finishing touches on the docs and will release soon. The official announcement should be out in the next week or so.
... View more
09-18-2013
06:43 AM
|
0
|
0
|
688
|
|
POST
|
Here's a simple example using MapImageLayer:
<!doctype html>
<html>
<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://js.arcgis.com/3.6/js/esri/css/esri.css">
<style>
html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; }
</style>
<script src="http://js.arcgis.com/3.6/"></script>
<script>
var map, mil;
require([
"esri/map", "esri/geometry/Extent",
"esri/layers/MapImage", "esri/layers/MapImageLayer"
], function(
Map, Extent,
MapImage, MapImageLayer
) {
map = new Map("map", {
basemap: "topo",
center: [-79.17, 33.76],
zoom: 9
});
// create and add the layer
mil = new MapImageLayer({ "id": "usgs_screen_overlay" });
map.addLayer(mil);
// create and add the image
var extent = new Extent({ "xmin": -8864908, "ymin": 3885443, "xmax": -8762763, "ymax": 3976997, "spatialReference": { "wkid": 102100 }});
var mi = new MapImage({
"extent": extent,
"href": "http://hdds.usgs.gov/hdds2/view/overlay_file/AM01N33_269827W079_1773002011082800000000MS00"
});
mil.addImage(mi);
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>
http://jsbin.com/uNeXera/1/
... View more
09-16-2013
08:51 AM
|
0
|
0
|
3928
|
| 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
|