ADF and Google Maps - map does not


Hello

I use JDeveloper 11.1.2.4.0.

I can't get a card to render in my ADF application.

I can get it to render in a Java web application in Eclipse, without using the ADF.

For the ADF, I have a JSF page to a dispatcher:

In the 'first' facet, I have a button that, when a click must be returned to the card:

I have pre-programmed lat/long values for now, just to make it work.

I'll go through all the code in the showMap function, but nothing does.

I read that an API key is not necessary with version 3 of the API of google.

I can get a similar code to work without using the ADF.

Any thoughts?

Thanks in advance.

< f: facet = 'first' name >

"{[< af:commandButton id ="cb2"icon =" #{resource ['images: earth_16x16.png]} "]}".

shortDesc = "#{leadsviewcontrollerBundle.PICTURE_OF_EARTH}" >

< af:clientListener method = "showMap" type = "click on" / >

< / af:commandButton >

< / f: facet >

< f: facet 'second' = name >

< af:group id = "g1" >

< div id = "map_canvas" style = "width: 800px;" height: 800px; "/ >

< / af:group >

< / f: facet >

< f: facet name = "metaContainer" >
< af:resource type = "javascript" source="/js/main.js"/ >
"< af:resource type = 'javascript' source = 'https://maps.googleapis.com/maps/api/js?v=3.exp & amp; sensor = false" /> "
< af:resource type = "javascript" >
function showMap (evt)
{
var latitude = - 34.397;
var 150.644 = longitude;

var mapOptions =
{
Zoom: 8,
Center: new google.maps.LatLng (latitude, longitude),
mapTypeId: google.maps.MapTypeId.ROADMAP
};

var map = new google.maps.Map (document.getElementById ('map_canvas'), mapOptions);
}
< / af:resource >
< / f: facet >

Thanks for your reply.

I managed to solve my problems:

f: Facet name = "first" >
            
      
         
           
         
       
     
  https://maps.googleapis.com/maps/API/js?v=3.exp&sensor=false"/ >
 
    var map;
    initialize() function
    {
      var mapOptions =
      {
        Zoom: 8, Center: new google.maps.LatLng (-34.397, 150.644)
      };
      card = new google.maps.Map (document.getElementById('map-canvas'), mapOptions);
    }
    google.maps.event.addDomListener (window, "load", initialize);
 

Tags: Java

Similar Questions

  • Google Maps does not work in FF5

    Google maps does not - it displays but keeps in a State of "loading". This applies to a card of Google.com search that freezes or a maps.google.com which cannot interact with. You might want to confirm that the latest version of flash is not cause problems

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • Google Map does not not on Centro (Sprint)

    Hi, the application Google Map on my Centro (Sprint) does not work.  When I run the application, I get the following message:

    Upgrade required by October 15, 2007

    Since version 1.2.0.9

    For version 2.0.2.0

    It allows me to go to the website of m.google.com/maps to download the new version.  Unfortunately, I get the following message:

    Sorry, the Google Maps app does not work on your OS5.

    This application is used to work, but it has stopped working recently.  If you are aware of all the patches, I'd greatly appreciate your help!  Thank you!!!

    Try going to this link on the phone

    http://www.Google.com/GMM/googlemaps.PRC

  • Google Maps does not open since we have updated Firefox, the browser crashes. (Windows 7) Load in Solution Explorer.

    When we try to open Google Maps with Firefox, it blocks our browser. Please close and try again. Problem started after we updated our Firefox. Working with Windows 7.

    Please upgrade to the latest version of Firefox:

    And please:

  • Import and export of the OPA and Siebel Mapping does not properly.

    Hello
    We created OPA attribute and Siebel mapping fields under administration - policy automation > mappings in our development environment. However, I am able to EXPORT mappings to XML format. But when I try to IMPORT the mapping on the test environment, I get an error "'Attribute name' field is." whose value is more than 50 characters

    When I dug deep in the present, I found this level column length is 75 CHAR type and however on the component business integration component (e.g. Poliy Automation) length was 50. I changed the length of BC and IO level synchronized. IO/IC now shows length 75.
    Still, if I try to import XML on the test environment, I get error "'Attribute name' field is that the value is more than 50 characters."

    Any pointers/direction would help a lot, because we have about 2K attributes to migrate.

    Published by: 923416 on March 26, 2012 09:52

    A few things to say:

    * This has been raised as a bug and will be fixed in the next version of the Siebel connector.
    * I have reproduced this problem and fixed by the following method:

    1 open the object of integration "Policy Automation" in Siebel Tools
    2. Select the integration component 'Policy of automation attribute Mapping' and select the fields component integration
    3. change the length and the outside length of the 'Attribute name' field of 50 to 75
    4. change the length and the outside length of the 'Field name' field of 50 to 75
    5. compile all projects that begin with 'policy Automation"(just to be safe).
    6 stop the siebel Server
    7. copy the new .srf file compiled in step 5 above
    8 restart the siebel server.

    Once the siebel server is rebooted, you should be able to export and import mappings from attribute names and domain names longer than 50 characters.

  • Yeti USB and output mapping does not...

    I'm trying to implement this new microphone yeti and managed to record some audio first simple and it gives me a massive headache.

    I hope that someone might know what I'm doing wrong... so here goes.

    So I plug it in and set my system preferences Apple to have the yeti blue be the audio input by default. I do not necessarily want to use the headphone output on the mic, so I leave my audio output internal or my cinema display value monitor speakers.

    When I opened the first Pro... I can set the preferences > hardware Audio stereo microphone Yeti no problem...

    I saw somewhere that I had to set the mapping from output to the same thing, but my options are only Adobe Desktop Audio and a grayed Adobe DV...

    If I created the track my option only save mixer is left/right...so I record something on the audio track in the video track, but if I try to read, I don't hear it... even if I see the wav audio on the track.

    IF we define the mapping of output for the same device that we use for audio input... Why do I have the option?

    Any info out there? Thanks in advance.

    Hello, JPM,.

    This can be a bit confusing. I found this PDF help most of the people. Can check you? http://bit.LY/1dLQLPd

    Thank you
    Kevin

  • "show my location" in Google Maps does not not, Firefox 27

    the location of the access to the Info Page is always 'ask '.

    Here is the solution:

    1. Run Firefox as administrator
    2. Visit a site that asks for your location
    3. Select the option "always allow".
    4. Restart Firefox as a normal user
  • Adobe flash is updated, but firefox says its not installed and install. Flash does not work in sites using Firefox, but the same read in IE or Google chrome sites work with flash

    Adobe flash is updated, but firefox says its not installed and install. Flash does not work in sites using Firefox, but the same read in IE or Google chrome sites work with flash. I use a dell high spec, less than a year using windows 7 Home premium processor Intel (r) Pentium (r) CPU P6100 @ 2.00 GHz, 1999 Mhz, 2 Lossnay, 2 logic and McAfee Firewall and AV processors

    Thank you so much for pointing me in the right direction... Unfortunately, the link does not work but I bypassed using a part of the link, I did a search on google and found the plugin here. Adobe.com/Get/flashplayer/Current/install_flash_player.exe

    Thank you so much,.

    Johnny 777777

  • Z30 blackBerry not able to sign in Blackberry Protect. Backup and restoration of function does not. "Your device is not associated with a Blackberry ID."

    Unable to sign in Blackberry Protect.  Backup and restoration of function does not. Message is: "your device is not associated a Blackberry ID."  My Blackberry Messenger and Blackberry World works well so I'm sure this isn't a problem of ID on the phone.  I can sign in link, Blackberry.com and Protect.  I see my device to protect, but can't send messages, or view it on a map.  Times out with cannot reach peripheral message.  BB Protect on device has a circle whirling next to the on/off switch.  Cannot turn off.

    I deleted the link and re-installed.

    I reset the phone to the default (factory) and signed in.

    OS level is 10.2.1.3062

    BB link is 1.2.3.56

    I managed to understand this. I had to remove the device from the Blackberry Protect site.  Protect.BlackBerry.com. I deleted my new and connected device with my Blackberry ID.  I don't know if the step of wiping was necessary because I have not tried my backup with the current configuration of the device after the deletion.  The restoration is underway for me!

  • Since the new update Illustrator does not recognize the graphics card to my SURFACE PRO 2 and the digitizer stylus does not work properly.

    Since the new update Illustrator does not recognize the graphics card to my SURFACE PRO 2 and the digitizer stylus does not work properly.

    Any ideas out there?
    I know the pro 2 surface is not the real model, but at least it should work fine.

    arwinq,

    You can see the system requirements, including the maps here.

    https://helpx.Adobe.com/Illustrator/system-requirements.html

    but I fear that you may be taken in this GPU issue described by butz in post #13 here:

    https://forums.Adobe.com/message/7773402#7773402

    You can try to switch between GPU and CPU by pressing Ctrl / Cmd + E, or you try disabling GPU performance by clicking on the icon of the rocket in the bar of the App, or on the top of the menu bar, deselect the box Performance GPU. You may also uncheck performance GPU in your preferences.

  • I ran several analyzers antivirus from AVG to ODILE and none of them does not seem to get rid of this virus (Exploit: win32 / pdfjsc.dr)

    I ran several analyzers antivirus from AVG to ODILE and none of them does not seem to get rid of this virus (Exploit: win32 / pdfjsc.dr)

    Any suggestions apart from simply all formatting?

    Hello

    Exploit: Win32 / Pdfjsc.Dr
    http://www.Microsoft.com/security/portal/threat/encyclopedia/entry.aspx?name=exploit%3aWin32%2fPdfjsc.Dr

    If you need search malware here's my recommendations - they will allow you to
    scrutiny and the withdrawal without ending up with a load of spyware programs running
    resident who can cause as many questions as the malware and may be harder to detect as
    the cause.

    No one program cannot be used to detect and remove any malware. Added that often easy
    to detect malicious software often comes with a much harder to detect and remove the payload. Then
    its best to be thorough than paying the high price later now too. Check with them to one
    extreme overkill point and then run the cleaning only when you are sure that the system is clean.

    It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
    the regular windows when you can.

    TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
    It will display all the infections in the report after you run - if it will not run changed the name of
    TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
    check with the other methods below.
    http://support.Kaspersky.com/viruses/solutions?QID=208280684

    Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
    (If Rootkits run UnHackMe)

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Malwarebytes - free
    http://www.Malwarebytes.org/products/malwarebytes_free

    SuperAntiSpyware Portable Scanner - free
    http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGE

    Run the malware removal tool from Microsoft

    Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.

    You should get this tool and its updates via Windows updates - if necessary, you can
    Download it here.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
    (Then run MRT as shown above.)

    Microsoft Malicious - 32-bit removal tool
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=en

    Microsoft Malicious removal tool - 64 bit
    http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=en

    also install Prevx to be sure that it is all gone.

    Download - SAVE - go to where you put it-right on - click RUN AS ADMIN

    Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
    security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
    here or use Google to see how to remove.
    http://www.prevx.com/   <-->
    http://info.prevx.com/downloadcsi.asp?prevx=Y  <-->

    Choice of PCmag editor - Prevx-
    http://www.PCMag.com/Article2/0, 2817,2346862,00.asp

    Try the demo version of Hitman Pro:

    Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
    (viruses, Trojans, rootkits, etc.). who infected your computer despite safe
    what you have done (such as antivirus, firewall, etc.).
    http://www.SurfRight.nl/en/hitmanpro

    --------------------------------------------------------

    If necessary here are some free online scanners to help the

    http://www.eset.com/onlinescan/

    -----------------------------------

    Original version is now replaced by the Microsoft Safety Scanner
    http://OneCare.live.com/site/en-us/default.htm

    Microsoft safety scanner
    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    ----------------------------------

    http://www.Kaspersky.com/virusscanner

    Other tests free online
    http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1

    --------------------------------------------------------

    After the removal of malicious programs:

    Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
    system files.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    RUN - type in the box-

    sfc/scannow

    Then run checkdisk (chkdsk).

    RUN - type in the box-

    Chkdsk /f /r

    -----------------------------------------------------------------------

    If we find Rootkits use this thread and other suggestions. (Run UnHackMe)

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/a8f665f0-C793-441A-a5b9-54b7e1e7a5a4/

    ================================

    For extreme cases:

    Norton Power Eraser - eliminates deeply embedded and difficult to remove crimeware
    This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
    uses aggressive methods to detect these threats, there is a risk that it can select some
    legitimate programs for removal. You should use this tool very carefully and only after
    you have exhausted other options.
    http://us.Norton.com/support/DIY/index.jsp

    ================================

    If you are in North America, you can call 866-727-2338 for virus and spyware help
    infections. See http://www.microsoft.com/protect/support/default.mspx for more details. For
    international information, see your subsidiary local Support site.

    Microsoft support - Virus and Security Solution Center
    http://support.Microsoft.com/contactus/cu_sc_virsec_master?ws=support#TAB0

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • My screen goes black and the start menu does not load after start up logo and the only thing on the screen I see is my mouse pointer

    My screen goes black and the start menu does not load after start up logo and the only thing on the screen I see is my mouse pointer

    Hello

    You can access Mode safe? Repeatedly press F8 as you start? If yes you can try Control Panel - device
    Manager - graphics card - Double click on - driver tab - click on UPDATE driver - then right click
    on devices and UNINSTALL - REBOOT.

    Another method to try to get to the desktop (try in normal Windows Mode without failure)
    CTRL + ALT + DELETE and on the tab process EXPLORER.exe and COMPLETE the PROCESS on this subject - then
    on the Applications tab - lower right - new task - type in EXPLORER.exe. Safe mode is reached
    by tapping F8 as you start several times.

    First check this thread in case it is simple and if not to come back to this thread.

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/50247d5e-0ae0-446c-A1bd-11287fd1478a

    Black screen problems are extremely difficult to repair and all patch is usually on a base hit or miss.
    That there is no information on a black screen as it is on a blue screen just adds to the
    Difficulty. Often using a restore point or Startup Repair will have no effect. You can try a
    Google to see the proposed repairs, whom some have worked however these cover a wide
    field efforts.

    Here's a video of one of them.

    http://www.Google.com/search?hl=en&q=black+screen+of+death+Vista&btnG=search&AQ=f&OQ=&AQI=G1

    Here's another fix
    http://blogs.PCMag.com/SecurityWatch/2008/12/the_mysterious_black_screen_of.php

    You have a Vista disk? You can try restoring the system to it. If you do not have your system disks
    manufacturer will sell them at low prices. Or try in safe mode if you can get there.

    How to make a Vista system restore
    http://www.Vistax64.com/tutorials/76905-System-Restore-how.html

    You can create a recovery disc or use someone even version (to do the system restore there only to)
    being bootable).

    How to create a Vista recovery disk
    http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html

    ------------------------------------------------

    These require the correct Vista discs since you can not start safe mode.

    Try the Startup Repair tool-

    This tells you how to access the System Recovery Options and/or with a Vista disk
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    Try recovery options Startup Repair

    How to do a startup repair
    http://www.Vistax64.com/tutorials/91467-startup-repair.html

    -----------------------------------------------

    Here are a few Google searches where many have found different solutions:

    Vista black screen - check that a 1st
    http://www.Google.com/search?hl=en&source=HP&q=Vista+black+screen&AQ=f&OQ=&AQI=G10

    Vista black screen Solution
    http://www.Google.com/search?hl=en&q=Vista+black+screen+solution&AQ=f&OQ=&AQI

    Vista black screen Fix
    http://www.Google.com/search?hl=en&q=Vista+black+screen+fix&AQ=f&OQ=&AQI

    -----------------------------------------------

    If necessary and you can access all ordinary Windows.

    You can try an In-Place Upgrade (hopefully save programs and data) or a repair installation (if all goes well
    saves the data, and you need to reinstall the programs). Be sure to do a good backup or three.

    You can use another DVD that are not protected but you will need to copy you have the product key.

    On-site upgrade
    http://vistasupport.MVPs.org/repair_a_vista_installation_using_the_upgrade_option_of_the_vista_dvd.htm

    If nothing works, you can make a repair facility that must save the data but you will need to
    Reinstall the programs. This also requires correct Vista disks especially for OEM versions. You will be
    need to know your product Code.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    How to perform a repair for Vista Installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    ---------------------------------------------------------------------------

    Another method that works sometimes: at the command prompt, type of Vista startup disk:
    (type in a single line or copy / paste a line at a time and then press enter - type no parenthesis)
    or "BOLD"
    )

    c:

    cd\

    CD c:\Windows\System32\winevt (there is a space between cd and C :)

    Ren LogsOLD Logs (there are spaces between ren and newspapers and Logsold)

    RESTART Windows

    I hope this helps.

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • Listener (and the database instance) does not start automatically: ORA-12514: TNS:listener does not currently of service requested in connect descriptor

    Hi all... I am a newbie with oracle database.,.

    I have the problem of monitoring:

    I installed Oracle Database 11 g R2 XE on my CentOS 6.5 guest operating system.

    I changed the host name in my CentOS so (where installed oracle 11g R2 XE) after the installation was completed successfully.

    Installation-) before and during the hostname is localhost.

    (-) After the installation, I changed the host name in VMCentOS

    From the moment where I changed the host name, nothing starts automatically. In particular, the listener and the database instance does not start automatically.

    When I start the listener manually and I try to connect to the instance of database with SQLPLUS I get this error:

    ORA-12514: TNS:listener is not currently of service requested in connect descriptor

    I think that the problem is due host name changed because I have to test and debug the object, re-installed a machine virtual operating system CentOS, re-installed oracle database 11 g and I do not have this problem. The database instance and the listener starts automatically!

    Can someone tell me if, maybe, the problem is with the host has changed? ... and why?

    P.S.: After changing the hostname I also modified the listener.ora and the tnsnames.ora by changing the HOST with the correct host name.

    Hello

    It seems that you don't install Oracle Database Express Edition (XE). If you post this question in the wrong forum.

    When you install EA or there is no script that starts the database at startup.

    If you wish, you can create by yourself. For example search for instructions to Google how to create script.

    Kind regards

    Jari

  • I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    I have iphone5s and my contact id does not work, all the time he show faild Setup touch id please help?

    Hi yjain51,

    I understand you had some problems recently with getting Touch ID to work reliably on your iPhone 5s. I know that it is a feature of great security for your iPhone, so I'm happy to help you.

    When you use Touch ID, make sure that your hands are free of any dirt or moisture so that fingerprints can be read clearly. This article explains further:

    Use the ID Touch on iPhone and iPad - Apple Support

    Thank you for using communities Support from Apple. See you soon!

  • I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    I'm locked out of my iphone5 not connected to my wifi at home and my home button does not work, any ideas on how to fix?

    < re-titled by host >

    Take it to an Apple Store for repair or replacement.

Maybe you are looking for

  • HP Compaq 6000 Pro SFF: Help change the chassis.

    Nice day. I have a HP Compaq 6000 Pro SFF PC, I want to upgrade in a mini tower, is it possible with this PC? The reason is because I want to install a new GFX card and a cooling system for best performance, however, @ 240 PSU will be not reduced, es

  • Continuous Mac access vacuum superdrive

    My MacBookPro guard [loudly] access his empty superdrive drive. When I opened my MBP and randomly, sometimes... Can someone suggest a method to reset that stop at this?

  • Pavillondv6-6c50us: Re-install windows7 on the question of the laptop

    My laptop OS when buying: Windows 7 (64-bit) I have installation disks. Recently installed VMWare ESXi hypervisor on this laptop to test something. This erases everything, including Windows-7 on this laptop. Now got my tests. You want to reinstall Wi

  • Cannot run installed FS2004 A Centuary of Flight

    After installing a real Flight Simulator 2004, failed to get his execution. There is an error message "the detected version of FS2004 is not compatible with this version of FSUIPC.   It is build 9.01.40901...   You need the correct version of FS2004.

  • Problem with Media Player CD cover display

    I have several friends who have given me their own CD, which I ripped to my Windows Media Player.  The problem is that the wrong image is displayed as the CD cover. As an example, I ripped a CD of my friend Dwayne gospel, but he is shown with the cov