DVT:MAP

Hi All,
I try to get MVMapView but return error!
function addStr(){
alert('1');
mapview = AdfPage.PAGE.findComponent('map');
MapView = mapview.getMVMapView();
alert(MapView);
streetbaseFOI = new MVThemeBasedFOI('streetbase','CIT.STREETS');
streetbaseFOI.enableAutoWholeImage(true);
alert(streetbaseFOI);
try
MapView.addThemeBasedFOI(streetbaseFOI);
catch(err)
txt="There was an error on this page.\n\n";
txt+="Error description: " + err.description + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
But I receive an error MapView = mapview.getMVMapView(); MapView = undefined!!! (mapview= AdfDhtmlGeoMap [oracle.dss.adf.geoMap.GeoMap] id=map { _componentType="oracle.dss.adf.geoMap.GeoMap",  more...})
But when i chek script steap by steap in FF firedebug all run!!
Can be other way how to add FOI ?
PLS can anybody help me!
th
Andy

Hi,
Are you using dvt:map in a jspx page? Did you look at this video for examples of creating a point theme, color theme, and pie graph theme declaratively in an adf jspx page:
http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_DVT_Geomap_Gauge_PivotTable_Designtime/ADFDVTMapGaugePivotTableDemoDesigntime.htm
What functionality are you trying to achieve with the map please, and which verison of JDev/ADF?
Thanks
Katia

Similar Messages

  • Dvt:map issue

    Following the official tutorial
    http://www.oracle.com/technology/obe/obe11jdev/ps1/dvt_graph/gant_chart_pivot_table.htm#tv
    I create a simple ADF map DEMO application and run it OK directly in Jdeveloper 11g IDE.
    However, when I deploy it to war file in external weblogic server and run, an exception "DVT-26000: unable to find connection in 'mapConfig1' " thrown out from page.
    I found “<Project Root>/.adf/Meta-INF/connections.xml“(this file is created only for design time use) is missing in war file, therefore the ADF component dvt:map can’t find available connection.
    How can I get the URL connection when deploying app in WLS?

    Instead of creating a WAR, try creating an EAR from the Application->Deploy menu. The EAR file will contain the connecting mapping file to the map server.

  • How to use Google Maps with dvt:map ?

    http://www.oracle.com/technology/software/products/mapviewer/text_files/mapviewer1112_readme.txt
    http://www.oracle.com/technology/software/products/mapviewer/index.html
    Native support of Google Maps and Bing Maps API. You can now display
    Google and Bing maps natively in your Oracle Maps (JavaScript)
    applications. Please check out the online Oracle Maps JSDoc API on
    how to use the new classes.Unfortunatly it looks like it's not possible with dvt:map
    http://download.oracle.com/docs/cd/E15523_01/apirefs.1111/e12418/tagdoc/dvt_map.html
    It's an important requirement for our project and probably for many ADF customers.
    I would like to know if :
    Is there any way to use Google Maps with dvt:map ?
    Otherwise, is there any plan to support it ? Should we expect it within a year ?
    Else, I think we will use directly the Javascript Oracle Maps API but we will miss the built-in functionnalities of dvt:map
    Thanks in advance,
    JP

    Any news about this theme?

  • JDev TP4 DVT:Map Component: How to send a command to Mapviewer Server?

    How to send a command to Mapviewer Server programmatically using a DVT:Map component? ( for example : To capture a Theme info when i clicking in the a map theme position?
    Juan C LLanes

    Hi Juan,
    Are you trying to click on a point in the map and update another control on the page?
    This is available today, if you create a master-detail binding and bind the master to your map theme, and detail to another view e.g. a table, and check the checkbox "Enable row selection" when you create the map theme binding, then you will get this behavior automatically.
    If this is not what you are looking for, please clarify.
    Thanks
    Katia

  • Use dvt map component into adf mobile

    Hello,
    I'm just wondering if it's possible to use the dvt map component into an adf mobile application or if there's another way to display a map coming from mapviewer.
    Does anybody know it there are any limitations?
    Thanks and regards

    Currently DVT Map component is not supported for ADF Mobile. Alternatively you could look at embedding Google Maps or just invoke Google Maps from your app. On iOS and Android, if you create a link with something like ("http://maps.google.com/maps?q=<Text or EL Expression containing the value of the address you want to search>"), then native Google Maps application would be launched to display that address. You can also embed a Google Map in your page as an image as well - check Google Map's site for details of how to issue an URL that could return an image containing Google Maps and search results.
    Thanks,
    Joe Huang

  • ADF  dvt:Map component  Roadmap info ?

    Is possible to obtain anywere a roadmap info about DVT: Map component ?
    How to send a command to Mapviewer Server programmatically using a DVT:Map component? ( for example : To capture a Theme info when i clicking in the a map theme position?
    Juan C LLanes

    Hi Juan,
    Are you trying to click on a point in the map and update another control on the page?
    This is available today, if you create a master-detail binding and bind the master to your map theme, and detail to another view e.g. a table, and check the checkbox "Enable row selection" when you create the map theme binding, then you will get this behavior automatically.
    If this is not what you are looking for, please clarify.
    Thanks
    Katia

  • Dvt:map - Example of displaying line geometry ?

    Hi all,
    Does anyone know of an example that shows how to display themes that contain line geometry objects (e.g. delivery routes, bus routes etc.).
    All the examples I've found so far only show how to display points or polygons (areas).
    I tried to use a predefined theme but ran into another problem:
    Re: dvt:map - how to use a predefinedTheme with bind variables
    Regards,
    Robert

    Hi Robert,
    Thanks for your immediate response.
    My requirement is some how different from yours. In our case, there are certain graphs generated using Map Builder tool & are avaiable through the Data Source.
    So, i need to integrate the base maps with UI. Im able to do that independently.
    Now, my requirement is to changing the map dynamically while doing zoom in. Lets say, i have 3 maps. which are Area level, Region Level & Building Blocks Levels.
    For each category i have a map. Initially, i need to display the Area level map...while doing the zoom in, depends upon the zoom in level i need to change the map dynamically to Region Level map. Similarly with Building block level.
    I tried to do this from the backing bean by getting the Map Component & by getting the zoom level changing the property value of the map to region level map.
    But the attribute "selectionListener" of <dvt:map component is not working for me. Hence got strucked here...Do you have any sugestions on this how easily we can do this.
    Help me in this regard.
    Thanks,
    Konjeti

  • Dvt:map Selection Iterator

    This is a question of urgency. It is holding up a deliverable.
    The dvt:mapPointTheme selectionListener property does not seem to fill the Iterator with the selected data point information any longer. This code used to work in TP4.
    Here is the .jspx code:
    <dvt:mapToolbar mapId="map1"/>
    <dvt:map id="map1" startingX="-98.0" mapServerConfigId="mapConfig1"
    baseMapName="ELOCATION_MERCATOR.WORLD_MAP" mapZoom="3"
    inlineStyle="width:100%; height:400px;" startingY="39.0">
    <dvt:mapPointTheme id="mapPointTheme1"
    value="#{bindings.Load.geoMapModel}"
    selectionListener="#{mapBacking.processSelection}">
    <dvt:mapPointStyleItem imageURL="/loadUnselected.png"
    selectedImageURL="/loadSelected.png"
    shortLabel="Customer Load"
    isDefault="true"/>
    </dvt:mapPointTheme>
    </dvt:map>
    Here is the binding pageDef:
    <mapTheme IterBinding="fetchMoreLoadsIterator" id="Load"
    xmlns="http://xmlns.oracle.com/adfm/dvt">
    <mapThemeDataMap mapThemeType="point">
    <item type="us_form_2" street="street" city="city" state="state"
    zipCode="zipcode" label="cityState"/>
    <item type="data" value="customer" label="Customer"/>
    </mapThemeDataMap>
    </mapTheme>
    Here is the "mapBacking" backing bean:
    public void processSelection(MapSelectionEvent E) {
    if (E.getSelectionMode().equals("Unselect")) return;
    Iterator I= E.getIterator();
    while (I.hasNext()) {
    DataContent DT = (DataContent)I.next();
    String S= DT.getLocationName();
    When the user chooses the "arrow" icon on the map toolBar, then left click on the data point on the map:
    1. The icon changes appearance from "loadSelected.png" to "loadUnselected.png" correctly.
    2. The processSelection(mapSelectionEvent E) backing bean method gets called. But the Iterator is empty.
    When the user uses a selection shape (circle, square..) on the toolbar, then draws a shape around several of the data points on the map:
    1. The icons changes appearance from "loadSelected.png" to "loadUnselected.png" correctly.
    2. The processSelection(mapSelectionEvent E) backing bean method gets called. But the Iterator is still empty.
    This code used to work. We are up against an extremely tight deadline. Is this an dvt:map bug, or is it just something simple we are overlooking.
    Please, we need help ASAP. Thank you gratefully.

    I just tried the following with JDeveloper 11g update 2: Build JDEVADF_MAIN.BOXER_GENERIC_090328.0229.5205
    Create an ADF BC EO/VO/AM based on a table with spatial data.
    Create a page with panelStretchLayout
    Drag the data control to the start area as a Form
    Drag the data control as to the center as a Map
    Define PartialPage rendering so the map updates the form.
    Run the page - clicking points in the map updates the Form.
    Which build are you using?
    Does your ADF BC VO has an attribute marked as key?
    JSF page
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document>
          <af:messages/>
          <af:form>
            <af:panelStretchLayout startWidth="300px">
              <f:facet name="bottom"/>
              <f:facet name="center">
                <dvt:map id="map" startingX="0.0" mapServerConfigId="mapConfig1"
                         baseMapName="ELOCATION_MERCATOR.WORLD_MAP" mapZoom="0"
                         inlineStyle="width:100%; height:600px;" startingY="0.0"
                         autoZoomThemeId="mapPointTheme1">
                  <dvt:mapPointTheme id="mapPointTheme1"
                                     value="#{bindings.HousesView1.geoMapModel}"
                                     clickListener="#{bindings.HousesView1.geoMapModel.processClickAction}"
                                     selectionListener="#{bindings.HousesView1.geoMapModel.processSelection}"/>
                </dvt:map>
              </f:facet>
              <f:facet name="start">
                <af:panelFormLayout partialTriggers="map">
                  <af:panelLabelAndMessage label="#{bindings.Id.hints.label}">
                    <af:outputText value="#{bindings.Id.inputValue}">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Id.format}"/>
                    </af:outputText>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.Zip.hints.label}">
                    <af:outputText value="#{bindings.Zip.inputValue}">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Zip.format}"/>
                    </af:outputText>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.City.hints.label}">
                    <af:outputText value="#{bindings.City.inputValue}"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.Street.hints.label}">
                    <af:outputText value="#{bindings.Street.inputValue}"/>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.Price.hints.label}">
                    <af:outputText value="#{bindings.Price.inputValue}">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Price.format}"/>
                    </af:outputText>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.Longitude.hints.label}">
                    <af:outputText value="#{bindings.Longitude.inputValue}">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Longitude.format}"/>
                    </af:outputText>
                  </af:panelLabelAndMessage>
                  <af:panelLabelAndMessage label="#{bindings.Latitude.hints.label}">
                    <af:outputText value="#{bindings.Latitude.inputValue}">
                      <af:convertNumber groupingUsed="false"
                                        pattern="#{bindings.Latitude.format}"/>
                    </af:outputText>
                  </af:panelLabelAndMessage>
                  <f:facet name="footer">
                    <af:commandButton text="Submit"/>
                  </f:facet>
                </af:panelFormLayout>
              </f:facet>
              <f:facet name="end"/>
              <f:facet name="top"/>
            </af:panelStretchLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>pagedef code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                    version="11.1.1.52.5" id="untitled5PageDef"
                    Package="demo.view.pageDefs">
      <parameters/>
      <executables>
        <iterator Binds="HousesView1" RangeSize="-1"
                  DataControl="AppModuleDataControl" id="HousesView1Iterator"/>
      </executables>
      <bindings>
        <attributeValues IterBinding="HousesView1Iterator" id="Id">
          <AttrNames>
            <Item Value="Id"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="Zip">
          <AttrNames>
            <Item Value="Zip"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="City">
          <AttrNames>
            <Item Value="City"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="Street">
          <AttrNames>
            <Item Value="Street"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="Price">
          <AttrNames>
            <Item Value="Price"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="Longitude">
          <AttrNames>
            <Item Value="Longitude"/>
          </AttrNames>
        </attributeValues>
        <attributeValues IterBinding="HousesView1Iterator" id="Latitude">
          <AttrNames>
            <Item Value="Latitude"/>
          </AttrNames>
        </attributeValues>
        <mapTheme IterBinding="HousesView1Iterator" id="HousesView1"
                  xmlns="http://xmlns.oracle.com/adfm/dvt">
          <mapThemeDataMap mapThemeType="point">
            <item type="lat_long" longitude="Longitude" latitude="Latitude"
                  label="Street"/>
            <item type="data" value="Price"/>
          </mapThemeDataMap>
        </mapTheme>
      </bindings>
    </pageDefinition>

  • DVT:MAP Component

    Hi,
    I have the following requirement, which i'm trying to implement with <dvt:map & <dvt:PointTheme components.
    *The requirement is ... I have a base map, which is being accessed via <dvt:map component. And i'm using point theme to display certain data over the map. Let us consider, over the US map ... i'm displaying 24 points(for each polygonone point .... taking the centroid of each polygon) when the map zoom level is 0.
    At this zoom level '0', user can see all 24 points. But when the user start clicking on '+' to Zoom In(Now the zoom level is '1'), at this zoom level user can see only 18 points. User can see the remaining 6 points by dragging the base map to either sides.
    This mean, irrespctive of the zoom level the point theme is rendering the all the points over the map. Instead, i would like to display the data specific to the polygons that are visible to the user. At zoom level '0', if the user is able to see all the polygons, then display all 24 points. And at zoom level '1'...if the user is able to see 18 polygons and then display only those 18 points. And if the user tries to see the other polygons data ... user may drag the base map either sides. In that case, the point theme should render data specific to the polygons that the user is able to see.
    Similarly, if the user is at zoom level '2'...at this zoom level user is able to see 13 polygons over the IE. so the point theme should render only 13 points specific to each polygon. If the user tries to do dragging the base map either sides...then display the points, specific to the polygons that the user is able to see.
    Similarly for other zoom levels ... Please let me know if you require any other information.
    Thanks & Regards,
    Kiran Konjeti

    Hi Juan,
    Are you trying to click on a point in the map and update another control on the page?
    This is available today, if you create a master-detail binding and bind the master to your map theme, and detail to another view e.g. a table, and check the checkbox "Enable row selection" when you create the map theme binding, then you will get this behavior automatically.
    If this is not what you are looking for, please clarify.
    Thanks
    Katia

  • Understanding point theme of dvt:map component

    for usage of point theme..we have to mention either latitude and longititude  or  address and city and country and postal code
    i want to know exactly what is latitude and longitude (these values varies if you use google maps and oracle maps ) and
    in my data source i am also having x-cor ,y-cor  ,longitude, latitude in every row
    when using point theme.if i select  X & Y(longitude & latitude).. is it sufficient to give latitude and longtitude..then purpose of  x and y co-ordinates in data source...

    s possible to obtain any example about how to use programatically a dvt.map component to send ( for example) a Zoom-In command to mapviewer server?

  • ADF Faces: dvt:map undefined title in the maptip

    Hi! I'm using the component dvt:map that for specific reasons of my application I am inserting it on a page for a backing bean. When the map appears on the page and I click in a geometry of the current theme shows a map tip with information about the geometry but the title of map tip is writing as undefined. The theme of the map I inserting as PredefinedThemeFOI class. Do I must set some attribute in the map or PredefinedThemeFOI?
    Edited by: reginaldo oliveira on 08/03/2011 12:35

    If you are using predefined theme, please make sure you have a label column defined for your theme in mapBuilder. The label defined in the theme definition will be used as the header of the infoWindow.

  • ADF Faces: Dvt map: How to call taskflow step after to execute javascript

    Hi. I have a page fragment jsff with a dvt:map. I wrote a javascript function that catch zoom and x and y coordinates of click in the map and I need to use these parameter to call a task flow step that call a java method. How to do that ? I put setPropertyListeners inside the dvt:map but it don't works because dvt:map don't have the partialSubmit attribute.

    My task flow is this way:
    (view activity)mapLocalization -> (outcome)selecUnitsInThisZoomLevel -> (method call activity)ExecuteWithParams -> (outcome)ExecuteWithParams -> (task-flow-call)invocation machine
    mapLocalization is a jsf fragment that contains a dvt:map. mapLocalization has to call ExecuteWithParams
    by outcome selecUnitsInThisZoomLevel passing as parameter the current map zoom because ExecuteWithParams refers to a
    view of a ADF data control, and this view gets a bind variable that is this map zoom for to return a code of
    geografic unit that refers to this map zoom.
    mapLocalization gets this map zoom by javascript function that called by left click in the dvt:map.
    But after that click in the dvt:map, I don't know continue the task flow explained above because dvt:map don't have the "action"
    atribute.
    How to solve this?

  • No declarative use of dvt: map component

    Is possible to use in not declarative way a dvt map component like Oracle Maps Ajax Javascript API?
    Thanks
    Juan Carlos LLanes

    s possible to obtain any example about how to use programatically a dvt.map component to send ( for example) a Zoom-In command to mapviewer server?

  • Dvt:map, JSR-168 portlets, and WebCenter Spaces

    Please click here [http://fusion.appshosting.com:8788/coxcustomportlets/faces/callcenterportlet.jspx]
    When I attempt to view this portlet in WebCenter Spaces, the map will not render.
    The rest of the portlet renders fine.
    The connections.xml file is included in the portlet ear.
    I am supposing I have to upload connections.xml to the Spaces server as well.. but where do I upload to, and how to I "register" it??
    Can anyone help? Thank you very kindly.
    Josh

    Hello,
    JSR168 is a fairly simplistic standard, but there are ways of doing most things.
    For example, to get the portlet's ID (I'm assuming you want a unique portlet instance ID, and not an ID for that "type" of portlet), you can use the PortletRequest.getWindowID() to return an ID for the portlet unique to the user's session.
    For storing URLs that need to be re-configured depending on deployment, that is usually done with portlet preferences in JSR168 portlets-- the portlet can read its preference value, which can be set by a developer or an administrator (or the portlet itself, if you wish). Java property files deployed with the portlets can also contain this configuration information.
    Kevin

  • Af:panelWindow used in rtPopup of dvt:map

    I have one panel window that is suppose to handle the right click on a map point.
    The issue is that the panel window close icon looks like is selected by default and I cannot close thet window using the mouse (click on the x close or click somewhere else outside the pane window).
    The only way to close the popup window is by pressing escape.
    What can be wrong? Thanks
    *&lt;f:facet name="rtPopup"&gt;*
    *&lt;af:panelWindow closeIconVisible="true"&gt;*
    &lt;af:inputText value="#{bindings.EntityId.inputValue}"
    label="#{bindings.EntityId.hints.label}"
    required="#{bindings.EntityId.hints.mandatory}"
    columns="#{bindings.EntityId.hints.displayWidth}"
    maximumLength="#{bindings.EntityId.hints.precision}"
    shortDesc="#{bindings.EntityId.hints.tooltip}"&gt;
    &lt;f:validator binding="#{bindings.EntityId.validator}"/&gt;
    &lt;af:convertNumber groupingUsed="false"
    pattern="#{bindings.EntityId.format}"/&gt;
    &lt;/af:inputText&gt;
    &lt;af:inputText value="#{bindings.ColumnStr1.inputValue}"
    label="#{bindings.ColumnStr1.hints.label}"
    required="#{bindings.ColumnStr1.hints.mandatory}"
    columns="#{bindings.ColumnStr1.hints.displayWidth}"
    maximumLength="#{bindings.ColumnStr1.hints.precision}"
    shortDesc="#{bindings.ColumnStr1.hints.tooltip}"&gt;
    &lt;f:validator binding="#{bindings.ColumnStr1.validator}"/&gt;
    &lt;/af:inputText&gt;
    &lt;/af:panelWindow&gt;
    &lt;/f:facet&gt;

    Hi!
    I have also many problems with map (and other DV components). It looks like they are not ready yet. Also, the behavior depends very much on browser you use. Some thing are working OK in FF 2, but not in FF 3 and IE 7 etc.
    In your case, you may try:
    1. use Dialog insted of panelWindow (turning off built-in buttons on dialog you get almost the same layout as with panelWindow);
    2. use external window to open rtPopup.
    I didn't try none of these in case of map, but for some other situations it worked well. If nothing works, you can try improvising the popup with puting your own popupBehavior or clientListener for opening regular, your own, popup over the map.
    Regards,
    PaKo

Maybe you are looking for

  • Illustrator CC 18.1.1 print preview is not displaying preview properly. Any work around?!

    I only started having this problem recently. It might be a Yosemite bug or graphics driver bug. When I go to print in the latest version of Illustrator CC 18.1.1 I get a shrunken window of what print preview should be (see below). Circumstances are t

  • IDOC (finsta) -- XI--- (finsta) IDOC

    Hello experts! I have the next landscape IDOC (finsta) >XI-> (finsta) IDOC    These different scenarios have to exit because one Business system has 3 different names… functional politics         CORP =MT00=MT01          PEP=MT01=MTN1      The first

  • HT4906 icloud photo stream on my upgraded MacBook Pro problem

    i have recently upgraded my laptops to mountain lion and have tried to open the icloud photo stream setting in system preferences.  it will not let me carry out the tick, unlike other options trouble is, i have two macbooks and i can't do it on eithe

  • Flash .SWF movie turns red

    When I run a Flash .SWF file, it runs fine for a while then the whole movie turns completly red and you can't see anything. I am running Win XP SP2 with Internet Explorer 7 Browser. Any Ideas on how to correct this?

  • All my computer settings reset after latest Tiger OS update. Please help..

    Hi, I just updated the Tiger OS (10.4.4 8G32) automatically - through Software update. After the update all my settings on the computer are reset, including Dock, Mail, Safari etc. And each time I restart the computer they are reset again. How can I