|
POST
|
The first question is, is the advice you have provided so far the correct way to implement the end product? The print functionality included in the API should be used to generate the map portion of your output. Once you have that, it'll be up to you to embed the image output alongside directions in a page that will print correctly using the browser's print function.
... View more
08-17-2012
06:20 AM
|
0
|
0
|
2709
|
|
POST
|
Tiled services are a flattened version of your data where all layers are baked into a set of images. Once your tiles are generated, you lose the ability to control individual layer visibility when adding your service to a map as a tiled layer (the tradeoff is less control for better performance). If your data behind the tiles is still on your server, you can add your service as a dynamic map service, which gives you the ability to control each layer's visibility. Dynamic services work with hideLayers while tiled services do not.
... View more
08-17-2012
05:31 AM
|
0
|
0
|
1701
|
|
POST
|
Well the code I inserted does not seem to run. I placed it at the end just before }
dojo.addOnLoad(Init); It feels like we're not making much progress. Can you post a complete, simplified page that illustrates what you're trying to do?
... View more
08-17-2012
05:25 AM
|
0
|
0
|
2709
|
|
POST
|
i don't see extras/ClusterLayer.js in the downloaded code too.And i can't find it in the dojo library.where it is? thanks We made an update and missed adding the extras directory and ClusterLayer.js file to the download. I fixed this yesterday. Please re-download: http://www.arcgis.com/sharing/content/items/1a6528fd3c774cfbbdf46df66c42958f/data
... View more
08-17-2012
05:22 AM
|
0
|
0
|
2526
|
|
POST
|
That's a fair criticism but is also something that you as a developer can address. How are you handling this in your application? What specfic changes would you make to address the problems you've described?
... View more
08-16-2012
01:23 PM
|
0
|
0
|
903
|
|
POST
|
Is the print widget being created in your app? Have you confirmed that the code to create the print widget is running? The easiest way to do this is to put a console.log() or alert() after you call startup() on the print widget.
... View more
08-16-2012
12:54 PM
|
0
|
0
|
2709
|
|
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 Yep, you use the same geometry for each graphic, as shown in the sample.
... View more
08-16-2012
12:07 PM
|
0
|
0
|
957
|
|
POST
|
What is the value for your printURL variable? The way the code works is that once print template info is retrieved from your print service, print templates are built and then passed to the print widget. The print widget is inserted in the page in the DOM node returned by dojo.byId. In this case, it's the div with an ID of "print_button".
... View more
08-16-2012
12:05 PM
|
0
|
0
|
2221
|
|
POST
|
I'm having trouble following you. Where was the missing semi-colon? And did adding it fix anything? In your code, you're referencing window.print. That is the browser's native print function and will not print everything on a map (if it did, we wouldn't need the print task/print widget and print service from ArcGIS Server). How about trying to get your app working with the print widget first?
... View more
08-16-2012
11:32 AM
|
0
|
0
|
2221
|
|
POST
|
dojo.ready and dojo.addOnLoad are the same thing so it should be working. If you can provide a simplified version of your code that shows the error we should be able to sort it out.
... View more
08-16-2012
11:26 AM
|
0
|
0
|
2464
|
|
POST
|
Somewhere, you're referencing a variable named "sym" without previously defining it. Double-check your code for instances of "sym" and go from there.
... View more
08-16-2012
10:21 AM
|
0
|
0
|
970
|
|
POST
|
I tried esri.bundle.widgets.legend.NLS_noLegend = 'No Legend Available'; as the first line in my init function but I get that same error. When is your init function called? It needs to be called by dojo.ready() to guarantee that all esri modules have loaded.
... View more
08-16-2012
10:01 AM
|
0
|
0
|
2464
|
|
POST
|
Glad you're in business. I don't use visual studio :).
... View more
08-15-2012
02:22 PM
|
0
|
0
|
972
|
|
POST
|
Could it have anything to do with my module path:
<script type="text/javascript">djConfig = { parseOnLoad: true,usePlainJson: true, baseUrl: "", modulePaths: { "tg": "JGF/js/jg"}}</script>
<script type="text/javascript" src="https://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.1"></script>
Yes, that's likely it and the fix is outlined in our migrating to 3.0 doc. The key point is that baseUrl and modulePaths have been replaced by packages. The switch is pretty straightfoward. Details in the migration doc.
... View more
08-15-2012
01:19 PM
|
0
|
0
|
972
|
| 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
|