|
POST
|
I think you need to add the popup.css file in your page. <link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.8/js/esri/dijit/css/Popup.css">
Yeah, I added it in your sample it shows up correctly now.
... View more
08-23-2012
11:02 AM
|
0
|
0
|
3144
|
|
POST
|
Dereks solution below is way better than my css hack.
... View more
08-20-2012
09:43 AM
|
0
|
0
|
1601
|
|
POST
|
It looks like the sample was written to keep application specific objects in their own namespace. For example, when you write var map = new esri.Map("map"); 'map' is bound to the Window object of the browser, which is basically the global namespace. By declaring var app = {}; // This is an empty object, equivalient to window.app app.map = new esri.Map("map"); // map is now bound to window.app.map In the print widjet example, all the application specific values are now in window.app (map, printer, symbols, toolbar). It's a method of organizing the code in the application. It's interesting that it's done in the Print Widget, I don't think I've seen it in other esri js samples before. It's not a strict rule, more of a best practices kind of thing to keep the global namespace clean. It's not mentioned their coding guidelines. In this case maybe there are othe common libraries that may already have a window.printer object defined and they wanted to avoid overrriding it.
... View more
08-20-2012
06:45 AM
|
0
|
0
|
907
|
|
POST
|
try something like this
var m = moment(1300406400000);
console.log(m.toDate());
// result is Thu Mar 17 2011 17:00:00 GMT-0700 (Pacific Daylight Time)
console.log(m.format('M/DD/YYYY'));
// result is "3/17/2011"
... View more
08-17-2012
03:19 PM
|
0
|
0
|
1198
|
|
POST
|
Dates are my kryptonite, but to I've had really good luck with moment.js http://momentjs.com/ I was having issues between IE and Chrome parsing dates, this little lib helped simplify the process. The draw for me was it could easily handle asp.net json dates. Maybe it could help you out.
... View more
08-17-2012
02:15 PM
|
0
|
0
|
1198
|
|
POST
|
I'm not horribly famiiar with with the dojo date library, but if you add 'a' to your format it will give am/pm or change 'h' to 'H' to get 24 hours time, because it looks like maybe it could be 5 hours behind or 7 hours ahead. Looking at the dojo docs for the dojo.date.locale.format, you may need to adjust for timezone and timezone offset to get the correct result. http://dojotoolkit.org/reference-guide/1.7/dojo/date/locale/format.html
... View more
08-17-2012
07:23 AM
|
0
|
0
|
1003
|
|
POST
|
You could try styling the anchor to look like a button. I just copied the various dijit styles of the button to the anchor.
a.esriPrintout
{
text-decoration: none;
font-weight: bold;
display: inline-block;
color: #421B14;
width: 160px; /** this was set in the demo page **/
cursor: pointer;
margin: 0;
line-height: normal;
vertical-align: middle;
white-space: nowrap;
text-align: center;
/** This is where the button look starts to take shape **/
border: 1px solid #DEDEDE;
border-bottom: 1px solid #DEDEDE;
padding: 0.1em 0.2em 0.2em 0.2em;
background: white url(images/buttonEnabled.png) repeat-x top left;
}
a.esriPrintout:hover
{
color: #5EC5E6; /** I just picked something that would stand out **/
}
Luckily they gave the anchor a class that could be reached pretty easily without funky css selectors.
... View more
08-16-2012
02:36 PM
|
0
|
0
|
867
|
|
POST
|
You wouldn't. You'd add two graphics to the map, one with the target symbol and one with the text symbol. Check out the "Find Address" example to see how it's done there. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jssamples/locator_address.html
... View more
08-16-2012
11:58 AM
|
0
|
0
|
904
|
|
POST
|
I always thought that code had already been minified. meaning the var names are obfuscated and comments have been removed. I haven't pulled those before, but now I will, thanks. No wonder, last dl I have is 2.8 where those files were not included, at least not when I downloaded them. They're in 3.0 though. That's fun.
... View more
08-13-2012
06:00 AM
|
0
|
0
|
2086
|
|
POST
|
The ArcGIS JavaScript unbuilt source is not available, and as far as I know has never been available. There is a posting up at the ideas site for this suggestion though, so go upvote it and let's see what goes from there. http://ideas.arcgis.com/ideaView?id=087E00000004JOzIAM
... View more
08-13-2012
05:40 AM
|
0
|
0
|
2086
|
|
POST
|
Not sure I quite understand, but I usually set the offset to half the height, so that the bottom of the marker, usually a pointer or flag will be at the actual x/y of the graphic.
var pm_sym = new esri.symbol.PictureMarkerSymbol({
url: "images/stop-sign_alt.png",
height: 26,
width: 24,
yoffset: 26 / 2,
type: "esriPMS"
});
... View more
08-10-2012
03:41 PM
|
0
|
0
|
1739
|
|
POST
|
Try listening to the GraphicsLayer "onClick" event http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/graphicslayer.htm#onClick The returned event object should have the graphic that got clicked.
... View more
08-10-2012
03:29 PM
|
1
|
0
|
4984
|
|
POST
|
I'm not even sure what events the editor emits, if any, but the FeatureLayer has an "onEditsComplete" that will let you know what was deleted. http://help.arcgis.com/EN/webapi/javascript/arcgis/help/jsapi/featurelayer.htm#onEditsComplete
... View more
08-09-2012
05:45 AM
|
0
|
0
|
2721
|
|
POST
|
This is v3.0 right? I heard someone comment that if your dojo.Config has { async: true }, that the geometry service may not work properly. I was never able to confirm it, but I just remembered right now.
... View more
08-02-2012
09:45 AM
|
0
|
0
|
3083
|
|
POST
|
I just store them as strings in a SQL table. No spatial or gdb. In this case, it wasn't needed.
... View more
08-02-2012
09:36 AM
|
0
|
0
|
2842
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|