How to get the whole map image after zoom in?

Hi,
I use mapviewer API to generate map images and put them in JSP as well as in Java Applet. I called the method getGeneratedImage(). After I using the methods zoomIn() or zoomOut(), I got a new map image. But the size is fixed, so after zoom in I can only see a part of the whole map. I would like to use scrollbar to see other part of the map after zoom in.
How can I solve this problem? I have the images as predefinied themes saved in database with MBR information.
Thanks in advance.

Hi,
For the map request in MapViewer you may define the data area that you want to display, as well as the device size (width and height). The result is a java Image with width and height sizes. You can draw this image on a canvas with scroll bars, and if the size of the canvas is smaller than the image size, then you should see the scroll bars. But you have to code that. MapViewer will just return an Image with the specified size.
The zoom in/out options just change the data area, but keeps the device size. Therefore you should use the API methods to set the data area (setBox or setCenterAndSize) and to set the device size (setDeviceSize), in order to control the size of your resulted image, and then draw it on your canvas with scroll bars.
Regards.

Similar Messages

  • How to get the WHOLE xml document inside a string using XSLT mapping

    Hi folks,
    I have a deep xml structure that I want to embed as body, tags included, in a mail message (not as an attachment).
    I'm trying to use Michal's method in this blog
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    However, I can't get it to deliver the entire structure instead of just specific elements.
    Any help is greatly appreciated,
    Thanks,
    Guy

    Ashok,
    I was able to work it out for my case.
    This XSL......
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <inside>
    <namestring>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
    <xsl:copy-of select="outside/name/*"/>
    <xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    </namestring>
    </inside>
    </xsl:template>
    </xsl:stylesheet>
    ...will transform this input....
    <?xml version="1.0" encoding="UTF-8"?>
    <outside>
    <name>
    <nameone>name1</nameone>
    <nametwo>name2</nametwo>
    <namethree>name3</namethree>
    </name>
    </outside>
    ...and put the whole lot into the CDATA element.
    Hope this helps you,
    Guy

  • IPhone: How to get the original photo image with  Picker

    Hi!
    I'm trying to pick and send (via HTTP) the original image taken by the camera, the 1,600 x 1,2000 image that's available in iPhoto after syncing.
    As far as I gathered, the UIImage doesn't help me here, since it's scaled down to 640x480, probably to safe memory. But one should supposedly be able to access the underlying CIImage.
    Here's what I'm doing right now:
    I'm setting up an ImagePickerController in my
    - (void)viewDidLoad
    imagePickerController = [[UIImagePickerController alloc] init];
    imagePickerController.delegate = self;
    imagePickerController.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
    [self refreshView:self];
    and process the picked image with
    - (void)imagePickerController:(UIImagePickerController )picker didFinishPickingImage:(UIImage )image editingInfo:(NSDictionary )editingInfo
    CGImageRef imgRef = image.CGImage;
    CGFloat owidth = CGImageGetWidth(imgRef);
    CGFloat oheight = CGImageGetHeight(imgRef);
    NSLog(@"Original size = %f %f",owidth,oheight);
    NSData imageData = [NSData dataWithData: UIImagePNGRepresentation(image)];//(image, 1.0)
    However, I still get the following output:
    2008-07-25 11:44:58.543 myApplication[1564:20b] Original size = 640.000000 480.000000
    Obviously still scaled down - but there must be a way to access the original.
    What am I doing wrong?

    Yes, I'm trying on the iPhone, as the camera is unavailable on the simulator.
    Here is the code I'm using:
    // In my main code, to initialise the picker
    UIImagePickerController *picker;
    // Check if camera is available
    if ( ![UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera] )
    UIAlertView *alertView = [[UIAlertView alloc]
    initWithTitle:@"Can't access camera" message:@"The camera is unavailable!" delegate:nil cancelButtonTitle:nil otherButtonTitles:@"OK", nil ];
    [alertView show];
    [alertView release];
    return;
    picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypeCamera;
    picker.delegate = self;
    [_myView addSubview:picker.view];
    [_myView performSelectorOnMainThread:@selector(setNeedsDisplay) withObject:nil waitUntilDone:NO];
    // The delegate methods
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
    NSLog( @"Image dimensions: %fx%f", image.size.width, image.size.height );
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    - (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
    // Remove the picker interface and release the picker object.
    [picker.view removeFromSuperview];
    [picker release];
    }

  • How to get the whole list of Iview Templates

    Hi,
    when I navigate:
    Portal Content -> Content Provided by SAP -> Templates -> Iview Templates
    I get a long list of templates including Url Iviews etc
    But, when I try to create my own Iview, the list of potential templates is much smaller, mainly including only the SAP related templates, BSP, Query, ITS etc.
    Does anyone know how to make the full list of Iview Templates available for the Iview creation wizard ?
    Thanks,
    Tomas.

    Hi Tomas,
    which iView templates are offerd within the iView creation wizard is determined by SystemAdmin -- Permissions -- Portal Permissions -- Applications.
    Normally, you will have to have SuperAdminRole to see/change these settings.
    Hope it helps
    Detlev
    PS: Please consider to reward points for helpful answers. Thanks in advance!

  • How to get the whole payload

    Hey guys,
    I have a requirement where I need to call a stored procedure through a JDBC adapter. The particularity in this call is that I need to send the complete source XML payload as a string in just one element and not mapping each element with input variables of the store procedure.
    I need to know if there is a way to get the incoming XML payload as one big String within XI.
    Any inputs will be helpful !!!
    Cheers,
    Mauricio

    Hi,
    When you write a JAVA Mapping , you need to implement the StreamTransfromationClass which implements execute and setParameter methods.
    In the execute method , you get the Source XML as an InputStream and the need to push the Output XML as the output stream.
    You can use a DOM or SAX parser to prase the XML source and create the target XML.
    To get the entire Source into s String, use this code,
    BufferedReader in = new BufferedReader(new InputStreamReader(inp));
    StringBuffer buffer = new StringBuffer();
    String line="";
    while ((line = in.readLine()) != null) {
    buffer.append(line);
    String sourcexml=buffer.toString();
    Take a look at thise blog for Java Mapping,
    /people/prasad.ulagappan2/blog/2005/06/29/java-mapping-part-i
    Regards,
    Bhavesh

  • How to get the whole timestamp from a postgresql database

    Hello,
    Has anyone an idea on how I can get the timestamp from a PostgreSQL database with the fractional seconds information ? I'm using the database connectivity toolkit
    Thanks
    Salim

    and there was even an easier solution
    Why doing simple things when you can struggle for hours

  • How to get the screen to dim after a certain time?

    cant remember how to get screen to dim after no screen activity? anyone remember?

    Settings, general, autolock.  Set it for however long you want it.

  • How to get the new Primary Key after the Automatic Row Processing (DML)

    Hi,
    I have a nice master detail form.
    I want, immediately after submitting the page when creating a new record in the master table, that the user may input the associated table (the detail table). For that I have created a branch that goes back to the very same page after creating the record (ie submitting the page with the button Create). In the Action of the branch, i have put P30_FICHE_ID (the item containing the primary key of the master table) with its value : &P30_FICHE_ID.
    Unfortunately I see that the item is not populated with the very new primary key. it seems normal becaus after submitting the page the tiem is not populated. This is my question : how to retrieve the newly created primary into the item P30_FICHE_ID in order to begin immediately to add rows to the detail table ?
    Hope I'm clear. My english not perfect.
    Thank you for your kind help !
    Christian
    Edited by: Christian from France on Oct 16, 2009 6:36 AM

    Christian,
    After creating Master-detail form, goto your Detail page. In this page you can see one conditonal brach which will point to 'Master' page.
    Edit this branch and here you can see this branch fires when request is in 'SAVE,DELETE,CREATE' (in Expression1). Now change the value in Expression1 to 'SAVE,DELETE'. This will do the needful :-)
    Cheers
    Hari
    Edited by: Hari_639 on Oct 16, 2009 8:02 PM

  • How to get the final internal table after the ALV is modified?

    Dear experts,
    My WebDynpro application allows users to delete row, sort the column. After all this modification, I need to get the final internal table of ALV to generate a csv.file. Are there any methods to get the final interal table content of ALV?
    Many thanks!
    meer

    Hi Friend  ,
    Please see this  link for wiki of  WDA Alv Hierarchy : [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c060fcb4-2c62-2b10-d2b2-f32407a5cc6f&overridelayout=true]
    Regards,

  • How to get the whole attachment as a MimeMessage?

    I'm finding a way to deal with base64 encoded .eml attachment. I need to parse it to MimeMessage for further process
       for (i=0; i<part.getCount(); i++) {
            currentPart = (MimePart) part.getBodyPart(i);
            if ( file extension is .eml ) {
                InputStream input = currentPart.getInputStream();
                currentPart = new MimeMessage(null, input);
            }with the above code, I would only get the decoded body of the email content, all header information are missing.
    From JavaMail API, getInputStream() and writeTo() would only get/write the content part, so I've tried to use:
       for(Enumeration enum = currentPart.getAllHeaderLines(); enum.hasMoreElements();)     {
            currentPart.addHeaderLine((String)enum.nextElement());
       }          I suppose currentPart is a MimeMessage now, but when I try this:
       request.setAttribute("part", (MimeMessage) currentPart.getContent());I would get a ClassCastException
    Would anyone give me some suggestion?

    I am a little unsure as to what exactly you are trying to achieve, but I will assume you are trying to extract the attachment from one message and parse this attachment as a MimeMessage.
    First, the parts in a MimeMessage are grouped in a tree structure so you can't just iterate over the list of parts and expect to get them all, you have to do it recursively.
    eg., (pseudo code only)
    public void getParts(Part p, List parts) {
      if(p.getContent() != null) {
        if(p.getContent() instanceof Multipart) {
          Multipart mp = (Multipart) content;
          for(int i = 0; i < mp.getCount(); i++) {
            getParts(mp.getBodyPart(i), parts);
        else
           parts.add(p);
    // Then call it like:
    List parts = new LinkedList();
    getParts(part, parts);
    // Where "part" is your original messageOnce you have the list of parts, you need to find the attachment. This is done by looking at the "disposition" of the part.
    An attachment will usually (although not always) be of type MimeMessage.INLINE or MimeMessage.ATTACHMENT
    So... iterate though your parts list looking for attachments
    Iterator i = parts.iterator();
    Part p = null;
    MimeMessage attachment = null;
    while(i.hasNext()) {
      p = (Part)i.next();
      // NOTE: p.getDisposition() may be null here
      if(p.getDisposition().equals(MimeMessage.INLINE) || p.getDisposition().equals(MimeMessage.ATTACHMENT)) {
        // You have an attachment
        // Use the data handler to get the stream
        InputStream input= p.getDataHandler().getInputStream();
        // Construct you new MimeMessage
        attachment = new MimeMessage(null, input);
        // Exit the loop
        break;
    }The simplest way to test is you have your attachment is to print it's filename with p.getFileName();
    You can also bypass creating the part list by adding the disposition check to the first getParts method.

  • How to get the port mapping to work on SR520

    I have been using CCA 2.0 and configured the device based on documents (a recurring story) and well it wont work...... again.
    This is the results of the 'show tcp brief'
    SR520#show tcp brief all
    TCB       Local Address               Foreign Address             (state)
    84C8EFD4  192.168.75.1.23             172.16.33.10.3227           ESTAB
    86479CB0  192.168.75.1.443            172.16.33.10.3078           ESTAB
    8647850C  192.168.75.1.443            172.16.33.10.3122           ESTAB
    84B08378  192.168.75.1.23             172.16.33.10.3062           ESTAB
    83B7FAB8  192.168.75.1.23             172.16.33.10.3041           ESTAB
    851D6704  *.443                       *.*                         LISTEN
    851D5CF4  *.443                       *.*                         LISTEN
    851D56B8  *.80                        *.*                         LISTEN
    85419B70  *.80                        *.*                         LISTEN
    85DAD264  XXX.XXX.XXX.194.ptr.us.443   *.*                         LISTEN
    SR520#
    It appears that CCA is not correctly adding the info into the configuration or is it.
    It made these acl entries:
    access-list 102 remark SDM_ACL Category=0
    access-list 102 permit ip any host 192.168.75.2
    access-list 103 remark SDM_ACL Category=0
    access-list 103 permit ip any host 192.168.75.2
    access-list 104 remark SDM_ACL Category=0
    access-list 104 permit ip any host 192.168.75.2
    access-list 105 remark SDM_ACL Category=0
    access-list 105 permit ip any host 192.168.10.12
    access-list 106 remark SDM_ACL Category=128
    access-list 106 permit ip any host XX.XX.XX.194
    It added this for one port but not for the others:
    ip port-map user-protocol--1 port tcp 3389
    and it added this:
    ip nat inside source list 1 interface FastEthernet4 overload
    ip nat inside source static tcp 192.168.10.12 3389 interface FastEthernet4 3389
    ip nat inside source static tcp 192.168.75.2 5060 interface FastEthernet4 5060
    ip nat inside source static udp 192.168.75.2 5060 interface FastEthernet4 5060
    ip nat inside source static tcp 192.168.75.2 1720 interface FastEthernet4 1720
    Yet none of these ports are allowed through the firewall.
    Please help me figure this out.
    Thanks

    I think the CCA team knows of some issue with this.  In May, I had heard that while configuration of NAT static entry is supported by CCA there is an issue in that CCA currently does not modify the firewall configuration to allow the statically mapped IP and TCP port to pass through.
    I heard  we were looking to resolve in a subsequent CCA release. I will find out when or ask that team to reply....
    Steve DiStefano
    SE Small Business Sales
    U.S. Field Channel

  • After paying for a song, the whole song did NOT download.  How to get the whole song?

    I bought the songs, downloaded them, synced them to my iPod, then clicked play. Two of the new songs stopped playing at around the 50 second mark. So, I played them again to check to make sure I didn't just fast forward... Same thing happened again. I decided to go back onto my computer to redownload it, if the songs just didn't get to download fully, and iTunes didn't let me download it again.
    I have no idea what to do to finally get to listen to the full songs! Can someone help me out?!?

    I decided to go back onto my computer to redownload it, if the songs just didn't get to download fully, and iTunes didn't let me download it again.
    Doublechecking. Did you delete the two songs (and their associated files) from your iTunes library prior to attempting the redownload?

  • How to get a single particle image after particle analysis in vision development toolkit

    Hi all,
    After a long time I am here again to find out some solutions regarding image processing. I have an RGB image with a number of particles in it. For processing I have made it binary image and then particle analysis function is used. It is showing all the required measurements of each particles. But as well as I also need the image of each particle individually, that may be in an array so that I can get those one by one using for loop. Is it possible to do? I have no idea how to do it. Please help.

    Hello,
    Normal recovery which you are doing, examines the content
    of the environment's log files and uses this information
    to ensure that your database files are consistent relative
    to the information contained in the log files. Normal recovery
    starts with any logs used by any transactions active at the
    time of the last checkpoint, and examines all logs from then
    to the current logs. Normal recovery also recreates your
    environment's region files. This has the desired effect of
    clearing any unreleased locks that your application may have
    held at the time of an unclean application shutdown.
    You can turn on verbose error messaging as that should
    provide additional information on what is causing the
    Invalid argument error.
    For that take a look at:
    DB_ENV->set_errfile
    http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_set_errfile.html
    Please post any additional messaging from that.
    It that sheds no light on the problem, please post a
    small, stand-alone test case which reproduces the problem
    and I can take a further look.
    Thanks,
    Sandra

  • How to get the action-mapping in jsp page in struts

    Hi,
    I want get, in my login.jsp, the name of action mapping that call my
    login.jsp.
    Is possible?
    suppose abc.do called my login.jsp
    now i need to know the name of action-mapping here abc
    Thanks,

    Depending on what you need, I believe Struts 1.3 creates a request attribute called "org.apache.struts.globals.ORIGINAL_URI_KEY". In your case, it looks like this would be set to the string "/abc.do". There should also be a request attribute called "org.apache.struts.action.mapping.instance" that contains an instance of ActionConfig. I think both of those keys are defined by the Globals class.

  • How to get the space to clear after trash/delete

    I've trashed/deleted files to clear space on both my Powerbook hard drive and an external hard drive, but the "space" isn't opened up. How do I finish the job of deleting, so gigs are freed up??? Thanks.

    Hi, nj.
    ...not sure how to do it for an external drive...
    When you choose the "Empty Trash" command in the Finder, the Trash is emptied for all currently accessible volumes. So if your external drive was connected and mounted when you emptied the Trash, whatever was in the Trash from that drive was also deleted, along with whatever you had trashed from your internal drive.
    If you double-click on the Trash icon to open its window, are the items you thought you had emptied still in there? If so, empty it again, then check again.

Maybe you are looking for

  • Does bridge come with photoshop with the new cloud version?

    I had to buy a new computer today and looks like I have to start using the adobe cloud versions of the programs. I don't see bridge? Does it come with it?

  • Inbound side status updating,purchase order view

    hi abapers, in inbound side when material is received mail triggering should happend and mail should be sent to enduser,for this i used enhancement point in inbound function module 'idoc_input_matmas01' in this fm after matrial is created with fm 'ma

  • Checksum data mismatch

    Hi people! I'm following the procedure mention the HOW-TO document called "Build Tabular Forms for Multi-Row Operations" and I'm having problem with the checksum part. After I recreate the code mention in the paper, I can run the page but I get the c

  • Weblogic 10.3 and ServiceControl

    Hello, we have a serious problem using ServiceControl with Weblogic 10.3 From a servlet we programmaticaly instantiate a control like this : ImportTemplateControlBean mImportTemplateControl = (ImportTemplateControlBean)                Controls.instan

  • Fails to load modules while lauching Xfce4 (SOLVED)

    When I type "startxfce4" I get something like this: Failed to load module: sis (module does not exist, 0) Failed to load module: vga (module does not exist, 0) Failed to load module: vesa (module does not exist, 0) Failed to load module: mouse (modul