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>

Similar Messages

  • 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

  • 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 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?

  • 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.

  • When I try and Save for Web in Photoshop CC I receive an error message saying 'The operation cannot be completed. The requested operation cannot be perfomed on a file with a user-mapped selection open'.

    When I try and Save for Web in Photoshop CC I receive an error message saying 'The operation cannot be completed. The requested operation cannot be performed on a file with a user-mapped selection open'. This happens with any of my files not just one in particular...
    Can anyone help solve this please?

    ELEMENTS 12 AND ELEMENTS 13
    Upgraded to 13 Thinking might resolve the issue.
    Was working fine up until we had "Tech" come in the office and "up grade some stuff"
    then all of a sudden i started getting this message, something happened but i don't have a clue what.

  • 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?

  • 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

  • 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

  • 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

  • BizTalk Map selection

    Hi,
    I am trying to understand how Map selection happens under the hood in the
    BizTalk engine.
    Say i have 3 message types, X , Y and Z.
    I have 2 maps:
    X to Y
    X to Z.
    so the source message type is the same for the maps.
    In the Receive port, i define both the maps.
    How does BizTalk engine determine which map to apply?
    Is there any way to influence map selection i.e under certain context properties or message data, choose the first map otherwise second.
    Please let me know.
    Regards,
    MS

    Hi MS,
    #1 Yes we can
    have maps with same source without any error as multiple maps are supported on port,
    but only one of them will be executed and its unpredictable which one will be the chosen one.
    #2 Yes, you can achieve this using dynamic
    mapping resolver. 
    Now what is Dynamic Mapping Resolver?
    It is a mechanism of dynamically(at run time) associate map name from existing repository like business
    rule engine or custom configuration database table to transformer based on an identifier contained in each source instance message.
    Dynamic map resolver can applied at:
    1) Inbound maps
    2) outbound maps
    3) Orchestration.
    For detailed explanation and working of dynamic map resolver refer: BizTalk
    Server: Dynamic Mapping Resolver
    Rachit 
    Please mark as answer or vote as helpful if my reply does

  • 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?

Maybe you are looking for

  • How do the Procurement of materials from projects?

    Hi Friends' How do the Procurement of materials from project s, here our Process is: Whenever our engineers on site see any shortages he will send a report thro our customized InfoPath request form. Then we decide depending on the material whether to

  • My CD/DVD drive is missing.

    My dvd/cd optical drive is missing from "my computer" , and the hardware manager.  It does spin, and is listed in bios.  Physically disconnected and pulled it from the bay then reinserted but no sucess.  Ran "Driver Tool" which showed the optical dri

  • Is it possible to boot oracle vm server over iSCSI and ipxe?

    Hi, Is it possible to boot oracle vm server over iSCSI and ipxe? I have tried it, but got a kernel panic after the boot progress. Can anyone tell me what should I do to install and or boot oracle vm server on and from a iscsi lun instead a local hard

  • Loading CD's onto iPod

    I just bought a new iPod classic, and have spent much of the weekend (too much really!) loading my vast CD collection onto it. I have now noticed that with some CD's - compilation type ones such as soundtracks (but not all) it has either listed the t

  • Slide advance acting weird

    Not sure if anyone has come across this, but I am running 5.5 and have a fairly standard module (audio, images, text boxes) that is set to auto-advance. When the previous slide ends, the next slide flashes up for a microsecond before it advances as n