|
POST
|
Out of the box there isn't a way of manipulating symbols in the message group layer in the way you have suggested, but you could try this which would work for point based graphics: - Create yourself a new graphics layer on the map - You can create a PictureMarkerSymbol which uses an image based on a buffered image from the symbol dictionary. The buffered image can be altered as desired. - Add the picture marker symbol to the map. So you might have some code like this:
BufferedImage img = symDictionary.getSymbolImage(selectedSymbol.toString(), 150, 150);
//some code to make the image a little different in some way
PictureMarkerSymbol pms = new PictureMarkerSymbol(img);
Point pt = map.toMapPoint(eventInfo.getX(), eventInfo.getY());
Graphic gr = new Graphic(pt, pms);
GraphicsLayer gl = new GraphicsLayer();
map.getLayers().add(gl);
gl.addGraphic(gr);
It's not as versatile as using the message processor (unique designation labels will not display for example), but it might be worth trying. Out if interest, are these display styles (current / stale / old) part of the 2525C standard? (excuse the question, but I'm not a 2525C expert) Mark
... View more
02-08-2013
07:37 AM
|
0
|
0
|
3861
|
|
POST
|
The buffered image from the getSymbolImage method is created from vector data into the size of image you request. If you were to create an image 500 x 500 then it will not appear blocky because we have sized up a smaller image. The 150 x 150 I chose above was not related to any internal sizing of the data - it just looked good in my example 🙂
... View more
02-08-2013
01:28 AM
|
0
|
0
|
3861
|
|
POST
|
I can see this too. I'll talk to the symbol dictionary team and report back... Mark
... View more
02-07-2013
03:06 AM
|
0
|
0
|
1990
|
|
POST
|
Hi Carlos, I've checked this out in Ubuntu and I'm afraid you've got me - this is a bug! I've raised this as an issue and it will be fixed for the next release. In the mean time you might find the following code snippet useful: //get the image BufferedImage symbolImage = symDictionary.getSymbolImage(selectedSymbol.toString(), 150, 150); //bit shifting to swap around the Red and Blue to correct in Linux (not needed for Windows) for (int x = 0; x != symbolImage.getWidth(); x++) { for (int y = 0; y != symbolImage.getWidth(); y++) { int argb = symbolImage.getRGB(x, y); int abgr = (argb & 0xFF000000) | (argb & 0x000000FF) << 16 | (argb & 0x0000FF00) | (argb & 0x00FF0000) >> 16; symbolImage.setRGB(x, y, abgr); } } You will of course need to remove this code when the next release comes out otherwise your colors will be wrong again. Mark
... View more
02-07-2013
01:17 AM
|
0
|
0
|
3861
|
|
POST
|
Hi I'm assuming you are using 2525c symbology here. We recently identified an issue with the UniqueDesignation section of the message which is typically used for adding labels to 2525C symbols. The problem is a case issue, so if you use "uniquedesignation" in your message instead it should work. Does this help? Mark
... View more
02-06-2013
07:51 AM
|
0
|
0
|
1990
|
|
POST
|
Okay, I've tested your code in Windows and Linux (I'm using Ubuntu) and there doesn't appear to be an issue. Starting up the application is very quick and there is no peak CPU usage. Is there any chance you can upgrade to 10.1.1? There has been a lot of work on the core rendering code in this release and it's possible your issue has been fixed. Let me know how you get on.
... View more
01-30-2013
05:45 AM
|
0
|
0
|
1432
|
|
POST
|
I've tried to replicate this and didn't see the issue you reported. I was using version 10.1.1. of the API. Is there any chance you could pop the reproducing code on the forum? Thanks Mark
... View more
01-30-2013
01:56 AM
|
0
|
0
|
1432
|
|
POST
|
Hi Pavan, This looks similar to a question in the ArcObjects forum: http://forums.arcgis.com/threads/76392-Service-Area-Solver-Sample-Snippet-Code-for-Java If you are using the ArcGIS Runtime API (this is not ArcObjects), then take a look at the sample application which comes with the API. Go to the Network Analyst -> Service Area (online) sample. The class you are interested in is called ServiceAreaTask. If this question is an ArcObjects question, then this isn't a good place to put your question. This forum is for the ArcGIS Runtime SDK for Java. This product is not ArcObjects based. Let me know if this helps Thanks Mark
... View more
01-30-2013
01:40 AM
|
0
|
0
|
370
|
|
POST
|
We've had a look at what is happening here and can confirm there is a bug. The code you used at 1.0 for your Unique Designations will not display the label. There is however a workaround. If you change your line of code as follows it will work: [INDENT]message.setProperty("uniquedesignation", "Mad dog");[/INDENT] It a case sensitivity issue. This something we will consider carefully in terms of the fix we apply. I hope this helps in the short term. Mark
... View more
01-25-2013
12:27 PM
|
0
|
0
|
1077
|
|
POST
|
Hi Kevin, You are correct, at the moment there isn't a way of symbolizing lines with arrows... sounds like a potential product enhancement request to me! Your idea of placing a simple marker symbol (triangle maybe) at the end of the line would work. The other alternative would be to draw your own arrow heads on the graphics layer using lines. This way you would have more control over the size of the arrow head. Good luck Mark
... View more
01-24-2013
12:25 AM
|
0
|
0
|
636
|
|
POST
|
For the MRGS grid type, there are a set number of grid levels, starting with UTM at the top and as you zoom in it displays differerent MGRS levels. The different levels are switched on and off internally via scale thesholds. These scale thresholds are not exposed in the API as tweaking them can cause terrible performance problems if you are not careful. There isn't a way of setting all of the colors in the grid. As in the sample application you need to query the grid levels and set each one. We beleived this gave the most flexibility. Hope this helps Mark
... View more
01-24-2013
12:18 AM
|
0
|
0
|
956
|
|
POST
|
I take the point about the error message, and I'll see where this comes from. However I not having much luck in reproducing the issue. I have a test which creates a graphics layer to which I add 5000 polygons each with 10,000 verticies. It takes a while to render and isn't the most responsive map I've ever seen but it's not thowing the error you are experiencing. It's maybe that you have a lower spec machine, but either way I would encourage you to look at your data and see if it is suitable for the scales you are using it at. Consider the resolution at which your data was digitised. If you have a coast line which was digitised every 1metre, when you zoom out to a country scale, you will be putting a big load on your database. Consider generalizing your data for certain view scales. This is a very common cause for any GIS or mapping application performing badly or maybe running out of memory in your case.
... View more
01-23-2013
01:53 AM
|
0
|
0
|
579
|
|
POST
|
The statement "supports Java Development Kits 6 update 37 through 7 update 9" should probably be reworded slightly. To explain why we state these JRE/ JDK versions, when we test a new release we take the latest available versions of Java 6 and 7 and certify against those versions. 10.1.1 was certified against 6u37 and 7u9. These were the most up to date versions at the time we were testing late last year. New releases of Java come out all the time to fix bugs and plug security holes and theoreticaly this should not cause a problem with the Runtime. I can't however guarantee that a new Java bug or security issue has been introduced in their latest release which may affect Runtime functionality. I'm also using 7u11 and so far I've not seen any issues. I hope this helps. Mark
... View more
01-23-2013
01:27 AM
|
0
|
0
|
829
|
|
POST
|
Hi J.T. I can't see exactly what you are trying to do but let me try to give you some information. Firstly lets look at the difference between ArcGISDynamicMapServiceLayer and ArcGISLocalDynamicMapServiceLayer: - The ArcGISDynamicMapServiceLayer is a layer which is for consuming online data where the datasource might be coming from your ArcGIS Server or ArcGIS Online. The constructor takes the URL for the service (a rest end point). This is data you use in a network connected environment. - An ArcGISLocalDynamicMapServiceLayer layer is for consuming local data where you might not have network connectivity. The constuctor for this class takes a path to your .mpk file. The .mpk file is a map package which you will have published from ArcGIS Desktop. Beyond the above differences they are much the same once added to the map. The above explanation applied for both Java SE and WPF. Now in your code samples you are working with Dynamic Workspaces. These can be used for altering the content of a local map package on the fly. For example, you might have an .mpk to which you want to add a shapefile. If this is what you are trying to do I would take a look at the Sample Application which comes with the API. We have a code sample which shows you how to add a shapefile. This was added to the sample application at the 10.1.1 release. Does this help? Regards Mark
... View more
01-22-2013
12:56 AM
|
0
|
0
|
679
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-13-2024 05:17 AM | |
| 1 | 07-10-2024 01:50 AM | |
| 1 | 04-22-2024 01:21 AM | |
| 1 | 04-18-2024 01:41 AM | |
| 1 | 12-05-2023 08:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-12-2025
07:13 PM
|