Integrating MapViewer & eLocation

I'm building a map display page using the MapViewer JSP tag library. I'd like to utilize an eLocation basemap with my custom maps. Is there any sample code out there which demonstrates this?
Thanks.

elocation can be treated as a MapViewer instance. Its URL is http://elocation.oracle.com/elocation/lbs. The data source is "elocation" and base map is "us_base_map".

Similar Messages

  • Integrating Mapviewer and OBIEE 11G

    Hi all,
    I am unable to get a map to be displayed in an answers report.
    I have imported Layers, Background Maps and images into Answers under the Administration - Manage Map Data
    In there I am able to display a map from the menu options Edit Background map.
    However when adding a map view to answers report I get the following error:
    View Display Error
    A basemap is required to render a map. Please ensure that atleast one basemap is defined in the spatial meta-data
    Error Details
    Error Codes: EMGUNIA3
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    If anybody have a working integration, please let me know what I am missing.
    Regards,
    Hakan

    on Presentation OBIEE 11g , you need to integrate MapViewer with OBIEE11g :
    * when you Build Themes (Layers) using Map Builder, don't forget to add Info Columns .
    Example : in Region Table , Region_ID, Name , Description
    once you do that, keep in note when you add this theme (layer) in Presentation (OBIEE11g) on Administration-->Map Management --> Manage Map Data ---> Layers .. Then Add your Theme (Layer).
    * Double Click your Layer (Theme) and click ( +) icon to add New BI Key , these BI Keys are same columns you added in Map Builder Info Columns (Region_ID, Name, Description) you should add them serialized exactly like how you did it in Map Builder info columns which mean don't add (Name,Region_ID,Description) ... that will may unable to view map properly.
    this step above you keep adding it each Subject Areas one by one if need for map, once you finish doing this, this mean you integrate Mapviewer with OBIEE11g...
    don't forget to add at lease one measure in your answer to view map properly , so that you can add PIE, BAR charts or Color Schemes...
    good luck

  • Unable to highlight desired portions on a map.

    Hi
    I integrated mapviewer with OBIEE 11G was able to render maps at the front end. But, unable to highlight desired portions on a map. For example, I have a column named "State" in sync to the spatial data(state information) available in the spatial schema(MVDEMO).Now, when I create a report by selecting say 1)State and 2) Revenue columns and apply filter on any three states, the three states should get highlighted on the map but they are not getting highlighted.
    Please, let me know is there any workaround to achieve highlighting the desired portions on a map.
    Thanks

    One thing you can try is the polygon markup tool (Comment > Drawing Markups) to define the area. You can set the fill color to the highlight color you want and then decrease the transparency value to something like 50%.

  • Application with Maps

    Does Oracle have a product for producing maps.
    I have an application in Apex that the user types upto 10 different coordinates. I would like to produce a map based on these coordinates. I cannot use google maps as we are not allowed to call out to external applications ?
    Any ideas appreciated
    Gus

    Hi Gus,
    You can use Oracle Mapviewer -
    http://www.oracle.com/technology/products/mapviewer/index.html
    there's a nice whitepaper on integrating Mapviewer with Apex too -
    http://www.oracle.com/technology/products/mapviewer/pdf/mapviewer_apex.pdf
    John.
    http://jes.blogs.shellprompt.net
    http://www.apex-evangelists.com

  • OBIEE 10g integration with mapviewer

    hello all,
    i am trying integrate mapviewer map in obiee dashboard. and i am able to show maps which do not use bi answers data for any kind of interaction (i.e,no "nsdp" section in the map file). this works fine. if i am using any dashboard prompt to filter the map ( for example if want to see a particular county from a statewide map using dashboard prompt as filter) it is giving error as below:
    *[MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (MAPVIEWER-06009: Error processing an FOI request.*
    Root cause:FOIServlet:Missing IN or OUT parameter at index:: 1)
    there are two databases with same set of data. one is poc which was created by some one else. so we had to setup new schema to properly define all the data.
    so problem occurs when using new schema as datasource. all the html datasource configurations are properly defined on mapviewer for new data.
    followed these steps in setting up new schema:
    ->initially did not run any scripts nor created mvdemo , started clean and loaded the required tables using map builder from GIS shape files with geometry projected to world_mercator(54004). on the contrary POC schema two geometry columns in each table where one is actual coordinate system from GIS file and then it is projected to world_mercator system and loaded into second column using sql. all the geometry indexes looked similar.
    ->created all the mapping metadata exactly same as the POC. where all the themes uses world_mercator geometry.
    both schemas are on same database. i have no idea of what causing the error when i use dashboard prompts. i am not sure if there are additional steps to be followed in creating database or if something else is missing some where. i have no prior experience with mapviewer and oracle spatial. this is kind of learning curve for me.
    please let me know any suggestions or solutions .
    regards,
    mallik
    Edited by: 863261 on Jun 2, 2011 12:33 PM
    Edited by: 863261 on Jun 8, 2011 5:49 AM

    Hello,
    Is your environment similar to this in http://obiee-bip.blogspot.com/2010/10/obiee-integration-with-oracle-access.html or something different like diid you have create groups in OAM .?
    Also assuming your repository groups and presentation catalog groups are already setup. In the different authorization init block you have created enable the ‘Required for Authentication’ check box.
    NOTE: According to Oracle Access Manager (OAM) and Oracle Business Intelligence (OBI) Integration [ID 1217103.1]
    Creation of group should be done by loging as Administrator user to rpd and webcat. This should be done on different machine that does not have OAM integration. With OAM integration only OAM user can log into presentation services and they don’t have Administrator user privileges.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • Oracle ADF mobile using elocation mapviewer can not get the tiles

    Hi,guys
    Recently,I'm using oracle adf mobile to develop a application.
    I set a amx page as a Local html page in order to display a elocation map,in this html page, 
    I use the jslib:http://elocation.oracle.com/mapviewer/jslib/v2/oraclemapsv2.js
    the mapviewer:http://elocation.oracle.com/mapviewer
    It can display the elocation map in pc browser,and also in Android default browser
    But WHen deploy it to MOTOROLA touch device,the elocation map can not display,but it can get the jslib.
    Can anybody help me?
    Thank you!

    Hi,
    To display maps, have a look at the HR sample application that comes with the ADF Mobile extension. You will see how you can use the map viewer without using JS for it. There is a map viewer component for AMX pages. The demo is in PublicSamples.zip located in <JDeveloper11124 Home>/jdeveloper/jdev/extensions/oracle.adf.mobile/Samples . Because the sample application is a bit larger than dept/emp, have a look at the tablet AMX pages.
    Frank

  • OBIEE/MapViewer Integration

    Hello,
    I'm working through some example documentation to integrate OBIEE and MapViewer and I'm running into an issue.
    When trying to get an Answers report to open based on clicking a map, I'm not able to get Answers report to open in the iframe I've defined in an Answers Narrative request. Instead, its a popup (otherwise it works fine).
    The iframe in the Answers Narrative request is below
    <IFRAME src = "" name="biee" height="400" width="100%"></IFRAME>
    the code for mapclick interaction is below
    themebasedfoi.addEventListener("mouse_click", foiClick);
    function foiClick(point,foi,evt)
    var drillURL =
    "http://localhost:9704/analytics/saw.dll?GO&NQUser=obscure&NQPassword=obscure&Path=/MapViewer/MapViewer2&Options=md&Action=Navigate&P0=1&P1=eq&P2=\"COUNTIES_DIM\".COUNTY&P3="+foi.attrs[0];
    objWin = window.open(drillURL, "biee", "height=480,width=400,scrollbar=yes,resizeable=1");
    Any help is appreciated.
    Thanks

    Hi,
    Follow this links for mapviewer
    http://oraclebizint.wordpress.com/2007/09/25/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase1/
    http://oraclebizint.wordpress.com/2007/09/26/oracle-bi-ee-10133-and-mapviewer-step-by-step-integration-phase2-phase3/
    Regards
    naresh

  • OBIEE integrated to Mapviewer , need advice from expert people in my codes

    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]--><!--[if !mso]>
    <object
         classid="clsid:38481807-CA0E-42D2-BF39-B33AF135CC4D" id=ieooui>
    </object>
    <style>
    st1\:*{behavior:url(#ieooui) }
    </style>
    <![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    Based on Example : [http://www.oracle.com/technology/products/mapviewer/pdf/mapviewer_obiee.pdf|blocked::http://www.oracle.com/technology/products/mapviewer/pdf/mapviewer_obiee.pdf]
    *1- Using OBIEE , I create report with two fields and it's filter on
    field Region:*
    Region , Population
    <!--[if !mso]>
    <style>
    v\:* {behavior:url(#default#VML);}
    o\:* {behavior:url(#default#VML);}
    w\:* {behavior:url(#default#VML);}
    .shape {behavior:url(#default#VML);}
    </style>
    <![endif]--><!--[if gte mso 9]><xml>
    Normal
    0
    false
    false
    false
    MicrosoftInternetExplorer4
    </xml><![endif]--><!--[if gte mso 9]><xml>
    </xml><![endif]-->
    <!--[if gte mso 10]>
    <style>
    /* Style Definitions */
    table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}
    </style>
    <![endif]-->
    On OBIEE Answers: Statistic Text , I wrote this codes :
    &lt;!-div id must match arg in js call at bottom of code listing --&gt;
    &lt;div id="EPAmapNode1"&gt;&lt;/div&gt;
    &lt;script&gt;
    function readCookie(name) {
    //this pulls authentication out of header
    //which replaces needing to pass user/pwd
    to authenticate (i.e. like SSO or trusted sign on)
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i &lt; ca.length;i++) {
    var c = ca;
    while (c.charAt(0)==' ') c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    return null;
    function obiee_mapint_doTheDeed(nodeId) {
    var container = document.getElementById(nodeId);
    var sid = null;
    var x = container;
    do {
    if (x.nodeName == 'TD' || x.nodeName == 'DIV') {
    sid = x.getAttribute('sid');
    if (sid != null && sid != '')
    break;
    x = x.parentNode;
    while (x != null);
    if (sid != null && sid != '') {
    // create the iframe for content
    var nid = readCookie('nQuireID')
    if (nid) {
    var iframe = document.createElement('iframe');
    iframe.src =
    'http://192.168.100.143:8991/yusufMap-ViewController-context-root/BIMapPage.html?sid='
    + encodeURIComponent(sid) + '&nqid=' + nid;
    // following nsdp is subsequently called
    from Mapviewer page
    // passing sid and nqid to get results to
    serve as nsdp data as xml
    // ps["xml_url"] = "http://"+document.location.host+"/mapviewer/_epa/obiee_nsdp_xml_direct.jsp?nqid="
    +
    // urlParamNQID + "&sid=" +
    urlParamSID;
    iframe.height = 260;
    iframe.width = 600;
    iframe.frameBorder = 0;
    iframe.marginHeight = 1;
    iframe.marginWidth = 1;
    container.appendChild(iframe);
    obiee_mapint_doTheDeed('EPAmapNode1');
    // js fn, EPAmapNode1 is id for this map in
    dashbd
    &lt;/script&gt;
    *2-Source code of
    custom JSP to convert Answers Filtered XML into NSDP XML: obiee_nsdp_xml_direct.jsp*
    &lt;%@ page
    language="java" session="true"
    isThreadSafe="true" contentType="text/html; charset=UTF-8"
    %&gt;
    &lt;%@ page
    import="javax.xml.parsers.*"%&gt;
    &lt;%@ page
    import="java.net.*"%&gt;
    &lt;%@ page
    import="java.io.*"%&gt;
    &lt;%@ page
    import="org.w3c.dom.*"%&gt;
    &lt;%
    Sample jsp code file to demonstrate one way to convert Answers xml to
    MapViewer's NSDP xml
    set the character encoding to UTF-8 prior to accessing
    data in the request
    request.setCharacterEncoding("UTF-8");
    %&gt;
    &lt;%
    // RETRIEVE THE QUERY
    STRING PARAMETERS
    String userName =
    request.getParameter("uid");
    String userPassword =
    request.getParameter("password");
    String thesid =
    request.getParameter("sid");
    String nq_id =
    request.getParameter("nqid");
    if (userName == null) {
    userName =
    "mvdemo";
    if (userPassword == null)
    userPassword =
    "mvdemo";
    Document domDoc = null;
    String fieldName = null;
    String urlString =
    "http://192.168.100.143:9704/analytics/saw.dll?Go&searchid=" +
    thesid + "&format=xml&NQId=" + nq_id;
    if (thesid != null) {
    DocumentBuilderFactory
    dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db =
    dbf.newDocumentBuilder();
    URL url = new URL(urlString);
    URLConnection
    URLconnection = url.openConnection();
    HttpURLConnection
    httpConnection = (HttpURLConnection)URLconnection;
    int responseCode =
    httpConnection.getResponseCode();
    if ( responseCode ==
    HttpURLConnection.HTTP_OK) {
    InputStream in =
    httpConnection.getInputStream();
    System.out.println("thesid=
    " + thesid);
    System.out.println("nq_id="
    + nq_id);
    System.out.println("server
    host=" + request.getRemoteHost());
    System.out.println("server
    addr=" + request.getRemoteAddr());
    domDoc = db.parse(in);
    } else {
    System.out.println(
    "HTTP connection response != HTTP_OK" );
    out.println("&lt;nsdp_xml&gt;");
    out.println("&lt;table&gt;");
    //Iterate
    through metadata object and create the ndsp_xml header
    NodeList rowDef =
    domDoc.getElementsByTagName("element");
    out.println("&lt;tr&gt;");
    out.println("&lt;th&gt;Column
    1&lt;/th&gt;&lt;th&gt;Column 2&lt;/th&gt;");
    out.println("&lt;/tr&gt;");
    //Iterate
    through rows & items and create the ndsp_xml body
    NodeList rows =
    domDoc.getElementsByTagName("R");
    if (rows != null) {
    for (int i = 0; i &lt;
    rows.getLength(); i++) {
    out.println("&lt;tr&gt;");
    Node row = rows.item(i);
    if (row == null ||
    row.getNodeType() == Node.TEXT_NODE) {
    continue;
    NodeList items =
    row.getChildNodes();
    if (items == null) {
    continue;
    for (int y = 0; y &lt; 2;
    y++) {
    Node item =
    items.item(y);
    if (item == null ||
    item.getChildNodes() == null)
    continue;
    if (item.getChildNodes()
    == null
    ||
    item.getChildNodes().item(0) == null
    || item.getNodeType()
    == Node.TEXT_NODE)
    continue;
    out.println("&lt;td&gt;"
    +
    item.getChildNodes().item(0).getNodeValue()
    + "&lt;/td&gt;");
    out.println("&lt;/tr&gt;");
    } else {
    out.println("No
    rows.");
    out.println("&lt;/table&gt;");
    out.println("&lt;/nsdp_xml&gt;");
    %&gt;
    *3- Where the source Code of map I created on HTML : BIMapPage.html*
    &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
    &lt;html&gt;
    &lt;head&gt;
    &lt;meta
    http-equiv="Content-Type" content="text/html;
    charset=windows-1252"&gt;&lt;/meta&gt;
    &lt;title&gt;BI Map
    Page&lt;/title&gt;
    &lt;script
    language="Javascript" src="oraclemaps.js"&gt;&lt;/script&gt;
    &lt;script
    language="Javascript"&gt;
    var dynStatesFOI;
    function show_map(){
    var map;
    var homeCenter,
    homeZoomLevel;
    var baseURL =
    "http://192.168.100.143:9704/mapviewer";
    map = new
    MVMapView(document.getElementById("map"), baseURL);
    var mapSRID = 82364;
    var mapCenterLon = 538940.5;
    var mapCenterLat = 2690457.4;
    homeZoomLevel = 1;
    homeCenter =
    MVSdoGeometry.createPoint(mapCenterLon, mapCenterLat, mapSRID);
    map.addMapTileLayer(new MVMapTileLayer("tcg_gis.ksa_map"));
    map.setCenter(homeCenter, false);
    map.setZoomLevel(homeZoomLevel);
    map.setHomeMap(homeCenter, homeZoomLevel);
    map.addNavigationPanel("East");
    map.addScaleBar();
    dynStatesFOI = new
    MVThemeBasedFOI('dynStatesFOI','tcg_gis.KSA_POP2');
    dynStatesFOI.setRenderingStyle("C.COUNTIES");
    setupNsdp(dynStatesFOI);
    setupDynamicStyles(dynStatesFOI,250000,
    500000, 750000);
    map.addThemeBasedFOI(dynStatesFOI);
    map.display();
    function setupNsdp(dynStatesFOI)
    var nsdpInfo = new
    MVNSDP("defaultNSDP");
    nsdpInfo.setTheme("KSA_POP2"); //the base theme
    nsdpInfo.setKeyColumn("REGION_NAME");
    //'match' column in the base table of the theme
    nsdpInfo.setRenderStyle("C.COUNTIES"); //default style;
    var ps = new Object();
    {color:#ff0000}
    ps["xml_url"] ="http://192.168.100.143/mapviewer/obiee_nsdp_xml_direct.jsp?nqid=" + urlParamNQID
    + "&sid=" + urlParamSID;{color} *{color:#800000}// &lt;== Error line {color}*
    nsdpInfo.setParameters(ps);
    dynStatesFOI.setNSDP(nsdpInfo);
    //setups the dynamically created advanced
    style to
    //be used by the theme-based FOI.
    function setupDynamicStyles(dynStt,val1, val2, val3)
    var buckets = new
    Array(4);
    buckets[0] = new
    MVNumericRangedBucket(100000, val1, "C.COLOR_BLUE",
    "range1");
    buckets[1] = new
    MVNumericRangedBucket(val1, val2, "C.COLOR_GREEN", "range2");
    buckets[2] = new
    MVNumericRangedBucket(val2, val3, "C.COLOR_RED", "range3");
    buckets[3] = new
    MVNumericRangedBucket(val3, null, "C.COLOR_BROWN",
    "range4");
    var bseries = new
    MVBucketSeries("SCHEME_CUSTOM");
    bseries.setBuckets(buckets);
    var bucketSty = new
    MVBucketStyle("region_colors", bseries);
    dynStt.addStyle(bucketSty);
    dynStt.setRenderingStyle("region_colors");
    &lt;/script&gt;
    &lt;/head&gt;
    &lt;body
    onload="javascript:show_map();"&gt;
    Welcome to our Site
    Kingdom of Saudi Arabia
    Map
    &lt;div
    id="map"
    style="width:550.0px; height:500.0px; overflow:auto;
    border-color:rgb(0,0,0);"/&gt;
    &lt;/body&gt;
    &lt;/html&gt;
    {color:#ff0000}
    The
    highlighted line above from function setupNSDP is code line for: NSDP xml
    source to call jsp that invokes java class to convert Answers filtered XML (OBIEE)
    into NSDP XML.
    Where
    its invoke two parameters : 1- urlParamNQID , 2- urlParamSID
    ps["xml_url"] =
    "http://192.168.100.143/mapviewer/obiee_nsdp_xml_direct.jsp?nqid="
    + urlParamNQID + "&sid=" + urlParamSID;
    The
    error when we run this code is: URLParamNQID is not defined ???
    does any of you can read what i wrote in my source codes and let me know what i missed in my html map code : BIMapPage.html and where or how i can get two parameters values URLParamNQID
    and {color}*{color:#ff0000}urlParamSID{color}*{color:#ff0000}?{color}

    yes i checked this site, but i still couldn't reach the answer of my challenge, in how to specify urlParamNQID and urlParamSID , how or where i can get value of these parameters or what should i pass there !?

  • MapViewer integrated in Apex - Securing MapViewer Cookie Issue

    Hello,
    I'm trying to secure my Mapviewer accesses. My MapViewer is contained in an apex page. As said in documentation (1.8.2) I have to used cookie to pass username(or what I want to authenticate the user) to the database. For doing this I have to put a package in my map schema and to configure datasource to use it.
    Package code(nothing special) :
    create or replace
    PACKAGE BODY web_user_info AS
    w_name VARCHAR2 (32767);
    PROCEDURE set_user(p_name IN VARCHAR2)
    AS
    BEGIN
    INSERT INTO TABLE1 VALUES('set machin');
    COMMIT;
    INSERT INTO TABLE1 VALUES('set_user:'||p_name);
    COMMIT;
    w_name := LOWER (p_name);
    END;
    PROCEDURE clear_user
    AS
    BEGIN
    INSERT INTO TABLE1 VALUES('clear machin');
    COMMIT;
    INSERT INTO TABLE1 VALUES('clear_user:'||w_name);
    COMMIT;
    w_name := null;
    END;
    FUNCTION get_user RETURN VARCHAR2
    AS
    BEGIN
    RETURN w_name;
    END;
    END web_user_info;
    Datasource definition :
    <map_data_source name="cuc"
    jdbc_host="localhost"
    jdbc_sid="xxxxx"
    jdbc_port="1521"
    jdbc_user="xxx"
    jdbc_password="xxxxxxxxxxxxx"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    plsql_package="web_user_info"
    />
    It works like that except that it return J2EE authentication(oc4jadmin). set_user and clear_user are well executed.
    Cookie Issue :
    To make this work with cookie information I have to add a attribute to the datasource definition :
    web_user_type="LOGIN_USERNAME_COOKIE"
    This cookie is present in my apex page, details :
    Name     LOGIN_USERNAME_COOKIE
    Value     the_name
    Domaine (host)     localhost
    Chemin d'accès (path)     /apex/
    Sécurisé     non
    Expire le     À la fin de la session
    It doesn't work with my cookie, the clear_user is well executed but set_user is no more executed.
    Did someone already get through the cookie authentication feature ?

    yes i checked this site, but i still couldn't reach the answer of my challenge, in how to specify urlParamNQID and urlParamSID , how or where i can get value of these parameters or what should i pass there !?

  • Integrating OBIEE with Mapviewer

    Was trying to integrate mapviewer with OBIEE.Followed step given by venkat in blog.
    Having some problem in passing URL from Mapviewer to BI.
    have used following code
    function foiClick(point,foi)
    var drillURL
    ="http://localhost/analytics/saw.dll?Go&NQUser=Administrator&Path=/users/administrator/test&Options=md&Action=Navigate&P0=1&P1=eq&P2=CUSTOMER_D.CITY&P3="+foi.attrs[1];
    alert("URL "+drillURL)
    objWin = window.open(drillURL, "biee","height=480,width=240,scrollbars=yes,resizeable=yes");
    problem is with " foi.attrs[1] ".It is not able to get the CITY name.
    Error: 'attrs' is null or not an object

    what we want is when user clicks on map it should be able to get the city name where user has clicked.
    As per few blogs and documents it states that 'foi.attrs[1]' will store city name.
    we are passing that city name as filter in our URL.
    "http://localhost/analytics/saw.dll?Go&NQUser=Administrator&Path=/users/administrator/test&Options=md&Action=Navigate&P0=1&P1=eq&P2=CUSTOMER_D.CITY&P3="+foi.attrs[1];
    full code used for this purpose is
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <TITLE>Map Cache Server/Map Client</TITLE>
    <link rel="stylesheet" type="text/css" href="../t.css" />
    <script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -122.45;
    var mapCenterLat = 37.6706;
    var mapZoom = 4;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    var themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','mvdemo.CUSTOMER_BY_CITIES') ;
    mapview.display();
    setMapListener();
    function foiClick(point,foi)
    var drillURL
    ="http://localhost/analytics/saw.dll?Go&NQUser=Administrator&Path=/users/administrator/test&Options=md&Action=Navigate&P0=1&P1=eq&P2=CUSTOMER_D.CITY&P3="+foi.attrs[1];
    alert("URL "+drillURL)
    objWin = window.open(drillURL, "biee","height=480,width=240,scrollbars=yes,resizeable=yes");
    function setMapListener()
    mapview.addEventListener("mouse_click", foiClick);
    </script>
    </head>
    <body onload= javascript:showMap()>
    <h3>Oracle Maps example</h3>
    <div id="map" style="position:absolute;left:10px; top:50px; width:65%; height:70%"></div>
    </body>
    </html>

  • MapViewer Integration with OBIEE

    Hello,
    We are trying to integrate Mapviewer with OBIEE (10.1.4.3.1), I have gone through the documentation but I couldn't find any documentation on how to deploy mapviewer using IIS.
    Please correct me if I am wrong, I heard that Map viewer doesn't work with IIS ??? Then how I deploy the Mapviewer. Any inputs are highly appreciated.
    Thanks in Advance,
    - Abhi

    is there any suggestion ?

  • Integrating Oracle Mapviewer 12c in Endeca Map Component

    Hi,
    I m trying to use my own mapviewer for the map component of Endeca Studio 3.1.
    For this, I have made the necessary changes in the following fields in Framework settings:
         df.mapViewer: The URL of the MapViewer instance. By default, this is the URL of the Oracle public instance. For using own instance, the URL has to be of own instance.
    so here I have given the url to my own standalone mapviewer (http://hostname:port/mapviewer)
    My database holds the geospatial data and I m using the Getting Started project to see how is the data coming out to be.But I m not able to see the map as it's forever loading.I suspect this may be because of the login credentials needed for the mapviewer.Can anyone suggest any file where I need to provide the necessary credentials to log onto my mapviewer?
    Thanks.

    Would you be able to use a tool such as Firebug, to see what might be blocking the map from loading?

  • Google Map Integration with Map Viewer is not working

    Hi Team,
    My MapViewer Version: Ver11_1_1_7_B130111
    I have created a Google Map (with Type of Map Source as "Google Maps") in Oracle Map Viewer and i could see google map in Oracle Map Viewer(using "show Map").
    I wanted to show a village map theme over the above google map in a web page and i am using Jdeveloper to integrate map viewer with Village data. I could see the google maps inside Jdeveloper however when i run the Jdeveloper code google map is not shown inside the web page.
    I tried with Oracle Maps, Bing Maps as the "map source" in map viewer and tried integrating inside Jdeveloper and got same result (blank screen). However when i tried a different mapviewer ( Base Map ELOCATION.WORLD_MAP from OracleFMW MapViewer Home ) i could see the map in the web page.
    I could get all other base maps (created with "internal" as the map source") in the web page, so there is some thing that i am missing with Google Maps, Bing Maps, Oracle Maps. Could you please help me what is that i am missing or point to a help resource?
    Thanks
    Nag

    Hi Jayanth,
    Issue is solved after creating the web page using latest JDeveloper (11.1.2.4). Thanks a lot for your help
    With Regards
    Nag

  • Terrmap.jsp is not working (mapviewer 10.1.3)

    Hi I cannot seem to get the terrmap demo to work. All I get is this error:
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Which tells me absolutely nothing.
    I created a datasource like this:
    <data-source class="com.evermind.sql.DriverManagerDataSource" name="MVDemoDS"
    location="jdbc/OracleCoreDS"
    xa-location="jdbc/xa/OracleXADS"
    ejb-location="jdbc/MVDemoDS"
    connection-driver="oracle.jdbc.driver.OracleDriver" username="mvdemo" password="mvdemo"
    url="jdbc:oracle:thin:@localhost:1521:orcl"
    inactivity-timeout="30"
    />
    and restarted the oc4j
    What am I doing wrong?

    Hi Wendy,
    It seems you are creating data source in Oracle Application Server configuration file. But, data source for Oracle MapViewer should be declared in Oracle MapViewer configuration file.
    Oracle MapViewer configuration file, mapViewerConfig.xml is located in the $ORACLE_HOME/lbs/mapviewer/web/WEB-INF/conf. You should modify permanent map data source, defined in the <map_data_source>. Sample map data source declaration:
    <map_data_source name="mvdemo"
                jdbc_host="elocation.us.oracle.com"
                jdbc_sid="orcl"
                dbc_port="1521"
                dbc_user="scott"
                jdbc_password="!tiger"
                jdbc_mode="thin"
                number_of_mappers="3"
    />Also, map data sources can be managed through web based Oracle MapViewer manager.
    Regards,
    Andrejus

  • How to render direction (route) on Elocation Map?

    Hi,
    I have to build a OAF page where I have the latitude and longitude for source and destination points and when I submit a request from OAF page the Elocation Map should render the driving directions and route on the Map. I have found the following request to Spatial
    <?xml version="1.0" standalone="yes"?>
    <route_request id="8"
    route_preference="shortest"
    road_preference="highway"
    return_driving_directions="true"
    distance_unit="mile"
    time_unit="minute"
    return_route_geometry="true">
    <start_location>
    <input_location id="1">
    <input_address>
    <us_form1 street="1 Oracle Drive" lastline="Nashua, NH" />
    </input_address>
    </input_location>
    </start_location>
    <end_location>
    <input_location id="2">
    <input_address>
    <us_form1 street="77 Massachusetts Ave" lastline="cambridge, ma" />
    </input_address>
    </input_location>
    </end_location>
    </route_request>
    How do I send the same request through my OAF page? Are there APis exposed and what the process?
    Thank you,
    Prashanth

    Probably best to post this on the [FMW MapViewer forum|http://forums.oracle.com/forums/forum.jspa?forumID=727].

Maybe you are looking for