Creating markers on the MapField.

Hello world.

I am developing an application that uses a blackberry MapFiled. Here I'm looking forward to keep multiples of the marker for the given latitude and longitude multiples. Here are the options that I give to the MapFiled.

(1) the user can move the map along all directions.

(2) double tap helps the user to zoom and zoom out of the map. (very similar to google maps)

I couldn't find an option to keep the markers by using MapFiled. Please advice me the rite solution.

Hi all

I found a solution using MapFiled. Please check the following code.

protected void paint (Graphics graphics) {}
Super.Paint (Graphics);
If (myLocation! = null) {}

Coordinates co = mapField.getCoordinates ();
co.setLatitude (Double.parseDouble (myLocation.getLat ()));
co.setLongitude (Double.parseDouble (myLocation.getLng ()));
                
XYPoint point = new XYPoint();
mapField.convertWorldToField (co, point);
                
Image bitmap bitmap = Bitmap.getBitmapResource (myLocation.getImageName ());
graphics.drawBitmap (point.x, point.y, bitmap.getWidth (), bitmap.getHeight (), bitmap, 0, 0);

}

}

Tags: BlackBerry Developers

Similar Questions

  • Several markers in the mapfield

    Hi, using the following code shows to draw marks in the mapfield.

    Coordinates cordinate = new Coordinates (latitude [i], longitude [i], (float) 0.0);
    imgW int = 0;
    imgH int = 0;
    If (null == xyRect) {}
    _mapField.convertWorldToField (cordinate, fieldOut);
    imgW = imgRed.getWidth ();
    imgH = imgRed.getHeight ();
    xyRect = new XYRect (fieldOut.x - imgW/2, fieldOut.y
    -imgH, imgW, imgH);
    }
      
    setExtent (width, height);
    If (getFieldCount() > 0) {}

    setPositionChild (getField(i+1), xyRect.x, xyRect.y);
    }
    }

    but I'm not able to see all the brands in the mapfield.

    any idea?

    Thanks in advance

    Solved...

    http://supportforums.BlackBerry.com/T5/Java-development/MapField-convertWorldToField/m-p/464928#M929...

  • Creating markers in metadata tags

    Hello

    I was wondering if there are (preferably MXF) metadata that will be represented as markers when tags the file containing these is imported to first - or a sidecar XMP is the only way to go here? The idea behind it is (outwardly) consolidate the individual clips from a disk (flash) in a single file and have markers where to start the previously single clips.

    All the markers, for all types of files, are stored in XMP.

    Note: Body stores the various XMP places for different file formats. However, if you use our calls get / setXMPMetadata (), your panel of should not care where we store the metadata; It'll just work.

    How do you concatenate these multiple clips? Prelude can do for you, as well.

    If your group has N bit files into one big file concatenation, you can 'do the math' to create markers on the aggregate file, corresponding to these markers which would have been for individual files.

  • Audio problem when markers on the fly

    Hello

    I have a problem when I create markers on the fly on audio. With previous versions I ve never had any probs but now when I m creating markers stop audio preview... It is almost impossible to work in rhythm... Do you know something about this? This is a bug or I missed something?

    The update of the corrections after effects CC 2015 (13.5.1) is available, which corrects this problem: http://adobe.ly/1Il5JYe

  • Markers in the effect controls panel

    I'm up to page 165 of the Manual 6 first, trying to figure out the markers, and he says:

    Create markers in the effect controls panel

    In the effect controls panel, you can view all the markers that you created in the timeline panel. You can also add markers to your sequence to designate where you want to place effects and see the markers when you work in the effect controls panel. In addition, you can create and manipulate markers directly in the effect controls panel.

    1. drag the playback cursor to where you want to create a marker.

    2. right-click (Windows) or Ctrl-click (Mac OS) in the rule of the timeline:

    In first Pro CS5.5 and even before, choose define a brand of sequence and then choose the type of marker you want to set.

    In Premiere Pro CS6, choose Add a marker, or press the M button.

    I followed these instructions to the best of my ability, and nothing appears in the effect controls panel. The three preceding paragraphs are labeled as CS5.5 and earlier versions. I wonder if this paragraph should also labeled as CS5.5 and earlier versions.

    CS6, markers appear in the effect controls panel? If they do, how they appear get you?

    CS6, markers appear in the effect controls panel?

    Yes.  First of all, make sure that you have a selected clip and that the playhead is on the clip selected when you add a marker.  The ECP will only show markers outside the bounds of the selected element.  Second, make sure that you can see time of sovereign of the ECP.  It is easy to hide the view of the chronology of the ECP.

    Jeff

  • Creating markers structured in FM9

    I am trying to create markers for an Index and a glossary in my EDD.  I think I followed the examples in properly structured Application guide.

    EDD.jpg

    However, when I import the EDD in my template, select the text and try to put the marker, the single tag of the item available in the menu dropdown is < informal >.  I think that if I wrote the markers for ESD, shouldn't it be a < structured > option in the menu drop-down?

    example.jpg

    I am missing a step or making a wrong assumption?

    Thank you!

    You are right in half.

    Simply create elements for markers is not enough. You must also specify where they can be used. So, for each item in your EDD in which you want to be able to insert a marker element, you must change the general rule to include an optional part of marker. For example, the general rule for your item in paragraph would be something like:

    Elemtn (container): Para

    General rule: ( |) Index | GlossaryTerm) *.

    This indicates that the items in the Index and GlossaryTerm can be interspersed in the text of a paragraph element.

    When you have imported your ESD into your document or model, FrameMaker should have complained that you had defined an element that was not used.

  • Index of the markers of the Viewer?

    In the index of the timeline, you can see the list of markers in the timeline. Is it similar to put in markers Viewer?

    mnstudio wrote:

    In the index of the timeline, you can see the list of markers in the timeline. Is it similar to put in markers Viewer?

    Well, sort of... you can set your browser to display the list and twirl the little open triangles.

    You will see all kinds of things, such as Favorites, keywords, etc..

    There is no way I know of to make sure that you only see the markers.

  • Folder pane issue related to the folders that I created, compared with the default Inbox, sent, junk, and trash

    I have a bunch of folders and subfolders, I created for various projects, but I don't always want to see them. (that is, I want to "collapse", while most of the time - I just see the Inbox, sent, spam and trash folders.)

    The only option I see is the equivalent of a power switch - that is to say, file view/page/component layout, or no record.

    If you uncheck the folders pane, you lose the Inbox, sent, spam and trash folders.

    If you check the option part of file, regain you your visibility of the Inbox, sent, junk mail and folders trash... but you also see the bunch of files again.

    Is there an option in-between - where I can see (again) the Inbox, sent, junk, and trash folders - but only see a collapse (as in 1 folder that says something like "folders") - without having to create such a file and paste the slew of my other folders in the folder manually created?

    The only suggestion that I would have to choose the name of the account, not the Inbox but the name of the main account.
    Right-click on the account name, and then select new folder.
    Name the project or something that makes sense to you.
    Now right-click in project and select new subfolder.
    The name of the subfolder.
    Repeat if necessary.
    There will be a pointer next to the projects folder where you can expand or collapse the tree of project files.
    This will only add an extra folder, projects, when the project tree is reduced.

  • Software for creating music for the suggestions of the ipad?

    My partner gave my sound mini iPad to a trial for a month or two to see if it's any good for creating music on the go.

    At home, I use Logic X on my 2008 Mac Pro. Apart from Garageband, is there a good music creation apps (drum machine, synth, daw, guitar shape) that anyone can recommend? I hope that something like Garageband or "better". Not really interested in "fun" apps - expected something more 'pro'-oriented...

    Thank you

    Have you tried searching for the app store?

  • Off ads create hyperlinks in the stories I read

    Hello, I've noticed lately that seems to be corporate external ad create hyperlink in the stories I read. This is not the case when I use Internet Explorer.

    I checked with the Publisher of a site I visit (psmag.com) and he said that they don't on their end, and they do not see the problem I'm talking about. But, their front page, in four stories there was a word that was a larger font than the rest of the words, and it is a hyperlink to the outside ads. This happened again and again for the past 2 or 3 weeks on different sites. What is going on?

    These links they pointed out twice? If so, it could be textsrv it. You can block textsrv.com with Adblock Plus by adding this announcement Custom filters blocking rules. textsrv.com / *

    If not, maybe you have some malware installed. Try the software listed here:

    If they can't find it or cannot delete it, post in one of these forums using specialized malware removal:

  • dynamically create and destroy the custom menu item

    I have a standard TestStand platform that I use on multiple systems.  On some systems, I have a few sequences of calibration and I would like to have the Update menu to have the RunSequence of these sequences of calibration.  I know how to manually create these menu items, but they are no longer valid for some sequence files.  I would use the sequence SequenceFileLoad to dynamically create menu items and the SequenceFileUnload to destroy these menu items.

    I've played around with the API, but cannot determine the correct path to get to the create and destroy the custom menu items.  Does anyone know how this can be done?

    Thank you

    Matthew

    Yes, see the online help for the members of the following APIs:

    Engine.GetEditTimeToolMenuItems

    EditTimeMenuItems

    EditTimeMenuItem

    Basically, you get a collection of tool using Engine.GetEditTimeToolMenuItems () menu items and then call EditTimeMenuItems.Insert () or EditTimeMenuItems.Remove (). If you insert a you get returns an EditTimeMenuItem object on which you can change the settings.

    In addition, since it has an expression to hide items in menu tool, you need not necessarily to destroy, you can hide them instead.

    Hope this helps,

    -Doug

  • failed to create value for the message Analyzer "at line 54.

    I get the following error, can someone please?

    failed to create value for the message Analyzer "at line 54.

    Hi ejpeppjep,

    Check if this article helps you fix the problem: http://support.microsoft.com/kb/823768

    If the problem persists, we recommend that you try the following steps and check the result.
    Step 1: a. Click Start, click Run, type cmd and click ok.
    b. at the command prompt, type sfc/scannow and press ENTER.
    c. once the analysis is complete, restart the computer and check if the problem persists.

    Note: You will be asked to insert the Windows XP disk, if a file is missing.

    For more information, see Description of Windows XP System File Checker (Sfc.exe)

    Step 2: If the problem persists, restore the computer to an earlier time
    see How to restore Windows XP to a previous state .

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • (Pavilion dv2000 vista) How to create discs of the comand recovery console

    What is the name of the executable file and directory for the command to create the recovery partition recovery DVD?  I am unable to get to the desktop to create, and the recovery console has been unable to reformat the hard drive.  The way I see it I have only 3 choices:

    1 make the recovery partition disks, replace the disk and run recovery on the new hard drive.

    2. use linux software to copy the recovery on a "mega" flash drive partition, replace the hard drive, use linux software to copy the recovery on the new hard drive partition and run the system recovery then.

    3. pay $ 15 to have HP send me the recovery disks.

    Thanks in advance.

    I tried and there is no directory ' / Windows/creator "in my recovery partition.  I thought maybe the file and directory got renamed or moved to templates later (this paricular is dv2911us).  I have also sought among the various directories and have not found any executable "CD Creator.exe; This is not to say there isn't, I just have not seen in my seaching... There are a lot of directories.

    Edit:

    Just received this response from HP email help (the most useful of all the methods of "contact us" HP):

    Jim, thank you for writing back to us.

    Jim, to keep you informed, the recovery disk have a period of 90 days from the date of purchase of laptop computer for his creation. However, if you try to create after the period of such, you may experience problems. The same rule applies in the case of new hard drive.

    I'm afraid that there is no console command to launch the creation of recovery disks. Even if the recovery partition seems to be fully functional, it is in the hard drive only. Executable files named 'CD creator.exe' is just an image.

    There are third party available for the recovery disc software, however, ultimately they would create problems as the hard drive failed.

    Given the current situation, we recommend that you replace the hard drive and buy the new recovery drive.

    I'm sorry for the inconvenience.

    Also I find it a bit funny that last night when I called technical support, the lady that I spoke to said the new HDD would cost 400some dollars!  I think this is the cost that it's based on the price for the operating system and other software included on the disc.  Anyway, then I asked him what it would cost to just send it and make them repair the laptop, and she said it would be $ 300some! LOL it took everything I had not to start not to laugh.  Then, when I told her thanks for the help, and that she would have answered all my questions, she tried to sell me a new laptop! I didn't say thank you and she tried once again! I want to say Holy shit! It's just a hard drive of freeking! in any case I'm glad I took the time to email them and get a response from someone who knew what they were doing.

    Guess that just means it's tempting step 2 (see the original post).

    Message edited by JimboSan on 09/10/2009 23:43
  • Vista, a pppoe connection is created by using the 'Get Connected wizard' or rasphone.exe, she appears as a "Dial-up connection" in the network connections folder.

    Vista, a pppoe connection is created by using the 'Get Connected wizard' or rasphone.exe, she appears as a "Dial-up connection" in the network connections folder. When you right click on the connection of customer created, click Properties, it says "connect using the Modem.

    Is it a registry problem or what? How can I fix?

    original title: PPPOE connection problem

    Hello

    1. you connect using a cable or DSL modem?

    2. did you ever get this working before that?

    3. are you connected to a domain?

    4 are you running Vista in a virtual environment?

    You doing appeared in this link to create the PPPOE connection:

    http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-PPPoE-connection-to-the-Internet

    Thank you

  • Cannot display the trust policy custom created for attestation the attestation procedure level

    Cannot display the trust policy custom created for attestation the attestation procedure level

    Find the file updated for more information.

    Hi Pradeep and Fatih,

    This is no bug. I can only imagine without detailed information about the procedure of custom clearance and approval workflow custom.

    But each attestation procedure has an assigned table that defines what data will be documented, for example UNSAccountInUNSGroup. An Identity Manager can only assign strategies of the attestation procedure where each step of the approval workflow contains an approval procedure where the picture of the Attestation procedure is in the list of assigned to this approval process approval. (See screenshot) Verify that approval in your approval workflow steps are aligned to this requirement.

Maybe you are looking for