How to restrict pan area in oracle map viewer?

Hi,
I have added map to Jpanel,Now I want to restirct panning functionality of map to a defined area.Because when I keep on panning to extreme East or West side even when my map boudaries are panned completely,I can still drag the map and So,after some point my map is lost completely(or its panned completely to extreme right or left) and I can see only white screen on my Jpanel.
Please can anyone suggest me an API or any alternative solution to achieve this.
Thanks.

Hi,
using oraclemaps javascript API you can use mapview.enableMapBoundConstraint(true); Your map will be bound the the tilelayers boundingbox...
hope that helps.
dominik

Similar Messages

  • Load maps in database - oracle map viewer

    Hi,
    In my project we are trying to use maps to display it on webpage for this we are using oracle map viewer. We’ve got maps from third party in the form of tif format. Could you please tell me how to load these maps in databse table? I’m newbie to oracle map viewer, your help will be deeply valued.

    Hi Paul, you said "We’ve got maps from third party in the form of tif format." they must be rasters. The best approach is to use MapBuilder to load such data into Spatial as GeoRaster objects and then define them as themes to display in MapViewer. All can be done using MapBuilder. you can also use the client-side java GeoRasterTools (a viewer) to load, display and export those tiff files. For that you can start with the GeoRaster user's guide.
    regards,
    Jeffrey

  • Projection problem in OracleAS Map Viewer

    Hi,
    I am using OracleAS Map Viewer 11 EA1and I try to display a map with an image (srid=1002000) and a vector (srid=8192) on the top. If I understand the documentation correctly, the vector might be reprojected into the map srid which is 1002000. But when the map is created, the vector is not correctly reprojected (I see some roads in the ocean!). I am wandering if it is a bug in map viewer; or maybe I didn't use it corectly!
    My query looks like:
    <map_request
    title=""
    datasource="all_images"
    width="1229"
    height="840"
    srid="1002000"
    antialiase="false"
    format="PNG_URL">
    <center size="7865.9766">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>
    1230462.1 , -582145.4
    </coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name="mosaic_pan'"
    min_scale="5000000.0"
    max_scale="0.0">
    <jdbc_georaster_query
    jdbc_srid="1002000"
    datasource="all_images"
    georaster_table="mosaic.mosaic_pan"
    georaster_column="georaster"
    asis="false">
         select georaster from mosaic.mosaic_pan where rowid='AAANn1AAKAAAAAKAAA'
              </jdbc_georaster_query>
    </theme>
    <theme name="road_l" min_scale="10000.0" max_scale="0.0">
    <jdbc_query
    datasource="all_images"
              jdbc_srid="8192"
    render_style="MDSYS:L.MAJOR STREET"
    spatial_column="shape1"
    >select shape1 from can51.road_l</jdbc_query>
    </theme>
    </themes>
    </map_request>
    Thanks in advance,
    Ganael

    your map request seems correct, and yes mapviewer will automatically reproject your vector theme if it's srid (8192) is different from the request srid (1002000). What's more likely is that your georaster is not being displayed correctly? Have you tried displaying the vector road data against a know vector boundary data set like country/state, in the 1002000 projection and see if everything is working fine? then add the georaster layer back on and go from there....

  • How to Restrict the users in oracle applications

    Hi,
    I want to Restrict the users in oracle applications without using database
    can any one please expalin me how to resttrict the users using middletier
    Thanks
    Gita

    HI srini ,
    my application version 12.0.4 and database is 10.2.0.4
    and i want to restrict the No of users
    exp i have have 500 users and i want restrict to 100 only
    how can i do that please explain
    Thanks,
    Sudheer

  • How to show pie chart in Oracle Map?

    I created predefined theme with pie chart style using MapBuilder. When I requested map using XML map request, the pie chart are shown with background and base map behind. Unfortunately, I tried to use Oracle Maps JavaScript Client API and it showed only background with base map behind.
    I’m using this code
    themebasedfoi = new MVThemeBasedFOI('themebasedfoi1','geoadmin.pie_province ');
    themebasedfoi.setBringToTopOnMouseOver(true);
    mapview.addThemeBasedFOI(themebasedfoi);
    geoadmin is my username and pie_province is my pie chart predefined theme
    Sorry for my English
    Many thanks
    581554

    Hi
    You can create chart by chart wizard in layout model in report 6i.
    1. Create Query in data model
    2. Go Layout model and right click
    3. Select Chart Wizard then select Chart type
    4. Select Axis (X axis column and Y axis column)
    5. Choose your chart placement
    PS

  • How to restrict user access in Oracle Application Server 10g (9.0.4)?

    Can anybody please let me know how to restrict user access in 10g AS? To be specific, how to allow http requests from specific IPs only?

    Hi,
    You have to edit httpd.conf and modify acces rights for each protected directory
    e.g.
    <Directory /var/www/sub/payroll/>
    Order allow,deny
    Allow from 192.168.1.0/24
    </Directory>
    then you have to restart Oracle HTTP Server
    jm--

  • How to Implement User Area in Oracle Forms 6i

    Hi,
    Could anyone please let me know how to implement Item Type *"User Area"* ?
    How to add User Area in layout Editor?,
    Thanks and Regards,
    Manasa

    Hi,
    Please post your question in the appropriate forum.
    Forms
    Forms
    Thanks,
    Hussein

  • How to access via javascript with Oracle Maps to a external Geometry Cache

    If i've defined CTR_10000 as a Web map cache in mapviewer 10.1.3, what is Oracle Maps javascript code to access that
    Layer?
    I've tried:
    vat ctr10kLayer = new MVThemeBasedFOI('ctr10kLayer','CTR_10000');
    ctr10kLayer.enableAutoWholeImage(true);
    ctr10kLayer.setVisible(false);
    mapview.addThemeBasedFOI(ctr10kLayer);
    but dowsn't works,
    Any Suggestion?

    Here's an example (on 10133P5) using demis.nl's wms reference demo site.
    You will have to change the adapter class if you're using 10.1.3
    and use a proxy if necessary and set the tile_storage path
    for your environment
    map tile layer definition
    SQL> select name, is_internal, definition, base_map from user_sdo_cached_maps where name='DEMIS_
    NAME IS_I
    DEFINITION
    BASE_MAP
    DEMIS_WMS NO
    <map_tile_layer name="DEMIS_WMS" image_format="PNG" http_header_expires="168.0"
    concurrent_fetching_threads="3">
    <external_map_source url="http://www2.demis.nl/mapserver/wms.asp" request_met
    hod="GET" timeout="15000" adapter_class="mcsadapter.WMSAdapter" transparent="tru
    e" clipping_buffer="0">
    <properties>
    <property name="service" value="WMS"/>
    <property name="srs" value="EPSG:4326"/>
    <property name="format" value="image/png"/>
    <property name="layers" value="Countries,Borders,Coastlines"/>
    <property name="transparent" value="true"/>
    </properties>
    </external_map_source>
    <tile_storage root_path="/tilecache/"/>
    <coordinate_system srid="8307" minX="-180.0" minY="-90.0" maxX="180.0" maxY="
    90.0"/>
    <tile_image width="256" height="256"/>
    <zoom_levels levels="10" min_scale="5000.0" max_scale="5.0E7" min_tile_width=
    "0.003057205631621593" min_tile_height="30.572056316215935">
    <zoom_level level="0" name="" description="" scale="5.0E7" tile_width="30.
    572056316215935" tile_height="30.572056316215935"/>
    <zoom_level level="1" name="" description="" scale="1.7969068E7" tile_widt
    h="10.98702717691827" tile_height="10.98702717691827"/>
    <zoom_level level="2" name="" description="" scale="6457748.0" tile_width=
    "3.948532710638615" tile_height="3.948532710638615"/>
    <zoom_level level="3" name="" description="" scale="2320794.0" tile_width=
    "1.4190288973267207" tile_height="1.4190288973267207"/>
    <zoom_level level="4" name="" description="" scale="834050.0" tile_width="
    0.5099724714107979" tile_height="0.5099724714107979"/>
    <zoom_level level="5" name="" description="" scale="299742.0" tile_width="
    0.1832745860867039" tile_height="0.1832745860867039"/>
    <zoom_level level="6" name="" description="" scale="107721.0" tile_width="
    0.06586504956878192" tile_height="0.06586504956878192"/>
    <zoom_level level="7" name="" description="" scale="38713.0" tile_width="0
    .023670720323393343" tile_height="0.023670720323393343"/>
    <zoom_level level="8" name="" description="" scale="13912.0" tile_width="0
    .00850636894942392" tile_height="0.00850636894942392"/>
    <zoom_level level="9" name="" description="" scale="5000.0" tile_width="0.
    003057205631621593" tile_height="0.003057205631621593"/>
    </zoom_levels>
    </map_tile_layer>
    SQL>
    Html code to use it. Modify it for your installation and MV version
    <html>
    <head>
    <script language=javascript src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://localhost:8888/mapviewer";
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mvdemo.demis_wms"));
    var mapCenterLon = -100.45;
    var mapCenterLat = 39.6706;
    var mapZoom = 0;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.addNavigationPanel("EAST");
    var markerFOI = new MVFOI('markerfoi', mpoint, 'mvdemo.m.star',null,15,15);
    mapview.addFOI(markerFOI);
    mapview.display();
    </script>
    </head>
    <body onload="javascript:showMap();">
    <h2>WMS map tile example</h2>
    <div id="map" style="width: 100%; height: 70%"></div>
    </body>
    </html>

  • Oracle Map Viewer Application on Oracle Web Logic

    We have developed an application using map viewer, Oracle 10g and deployed it in Oracle AS 10g. It was running fine and OK. Now we switched over the same application to Web logic10.3, using map viewer 10.1.3.3, Oracle db11g, JDeveloper 11g. We could deploy successfully on Web logic. The problem encountered is that During the map display (mapviewer.run()), an exception “Map viewer cannot process your map request. Check map viewer log for details.” is coming. We checked Map viewer log file and found no comments.

    If your web server is working and the forms server is running type:
    http://ip addr:port/dev60html/runform.htm
    You need to put the ip address or name of your server in and the port number apache is running on (leave blank if this is 80).
    This gives you the Oracle Forms start screen.
    cheers
    tony

  • How to make smal areas in a map clickalbe and adjustable for Flash..

    I am trying to make a clickable map where you can click on
    small areas and be linked to another page.... I can of course break
    the map to 100 pieces and make 100 buttons and put them together...
    But this is so time consuming and I am sure there is a more
    convenience way to make a map clickable in small pieces... Any
    ideas? Thanks for all suggestion...
    PS: Probably, I should do this in a different program as
    Firework then import to Flash...hmmm ???

    Are you making this in Fireworks or Flash? In Fireworks, look
    into using an Image Map. In Flash, you would need to make a
    seperate button(either by hand or by scripting) for each clickable
    spot.

  • How to Restricting Buisness area in same company Code?

    Hi All,
    Can anybody tell me whether is it possible to restrict users from accessing diffrent buisness area within the same company code?
    regards,
    Amit

    Hi Amit,
    Use the following objects to restrict the access for Business area's:
    1. A_S_GSBER "Asset Master Data Maintenance: Company Code/Business Area"
    Object class is AM [Asset Accounting]
    2. J_3GABRLST "Call CEM Settlement List for Organizational Units" ---> Object class is "J3GD" [Industry Business Solutions - CEM]
    and there are other auth. objects for Bus.area's which might help you :
    1. F_BKPF_GSB
    2. F_FDES_GSB
    3. F_FDSB_GSB
    4. F_FDSR_GSB
    5. A_IMA_GSB
    6. A_IMPR_GSB
    Regards,
    Ashok
    "Award points if it is helpful"

  • How to restrict text area in jsp

    I am using jsp and struts framework for developing a front end application.I have a text area whose width I restricted by specifying the rows and columns.When I enter large lines of data,while entering its not expanding but on reload of page by save or any other operation its expanding beyond the number of rows and columns.
    Could somebody help me out in this

    I've ran into the same issue with struts and used the plain html tag (ie: not struts) and used the form bean to populate the contents. This way will allow you to use all of the 'missing' attributes in the Struts 1.0 taglibs, and this also works well with other html tags.
    Here's a workaround that I used:
    <textarea wrap="soft" rows="5" cols="50">
    <bean:write name="someStrutsFormBeanName" property="someStrutsFormBeanProperty"/>
    </textarea>
    'someStrutsFormBeanName' will be one of the <form-beans> element names located in the struts-config.xml, and in the action I do have the bean set to session scope. Another way is to put the textarea's body into the request and pass it around from page to page in the request or session, not very clean nor desirable, but it works...

  • Oracle Map Viewer

    Hi,
    Im using ADFs <dvt:map component to display the Maps being generated using Map Builder.
    Now i want to display the data on top this map, which is specific to the zoom level.
    Depends upon zoom level, corresponding data needs to be displayed.
    For this, i have different VO's to display data on the Map.
    Now i have added point theme, color theme to my map. Because of this, all data is being displayed on the Map.
    My Question is How can i restrict the data display specific to zoom level.
    At certain zoom level, data relavant to First VO needs to be displayed as Color Theme.
    By doing further zoom in, data relavant to Secong VO needs to be displayed as pont theme.
    Any one can suggest something do this.
    Thanks & Regards,
    Konjeti

    My experience is that you must create different themes (USER_SDO_THEMES) for each variation on labeling or style that you want. This may require you to create individual styles (USER_SDO_STYLES). You then have to define your base_map (USER_SDO_MAPS) with each of these layers that turn on and off at different scales. This just grunt work, but ...
    The more difficult part is associating USER_SDO_MAPS scales with USER_SDO_CACHED_MAPS levels, as there is no explicit relationship. They are independent concepts and you have to arrange them so that they map to each other. This can quickly devolve to a trial and error process and will have to be repeated if you change your level structure in the USER_SDO_CACHED_MAPS row.
    If your base map data is in a different SRID than your rendered cached map you'll have even more fun. If you map includes USER_SDO_THEMES supported by USER_SDO_GEOM_METADATA with different SRIDs (and why not, you don't always get to pick your data) you'll want to have a calculator handy; although trial and error might be faster.
    Good luck, Mark

  • How to restrict user to not switch other view in infopath form.

    I created two views. both we can see when we open in infopath form in drop down list.
    But I want to restrict this for some users or group.
    If one user will open infopath form he will not be able to switch other view and other user open he can switch both view.

    You should be able to do this. Try the following:
    1.) create a button somewhere in your form (choose a spot you like) - I put mine in the top of form.
    2.) label it Card Access Letter View if you are on View 1 and then add another button to CardAccessLetter and call it view 1
    3.) create a data connection to get the current user info from Profile Services -
    http://www.codeproject.com/Articles/331606/How-to-set-Current-User-Name-to-InfoPath-Person-Gr
    4.) create a hidden text box "Currentusername" and set a form load rule to populate the hidden text box with the current user's name using profile services "Preferred Name".
    5.) create another text box that is hidden and call it something like ViewChangeFlagOK.  Set the default value to false
    6.) click on the form load rules box and create a new rule.  name the rule and then enter your conditions: Currentusername is equal to "enter user name" or (repeat as needed) .  Rule type = Action. Set a fields value to ViewChangeFlagOK =
    True
    7.) Navigate back to your button you created and add a rule.  Condition = View changeflagok is not equal to true, Hide this control.
    add another rule to the button.  condition= Rule runs when button is clicked- Switch to other view.
    this should solve your problem.  Appropriate users will be able to switch views using a button, not the ribbon control, but should solve your problem nonetheless.

  • How to restrict data from tables in a view cluster

    Hi,
    I have 5 Z* tables, Company code is the common code in all of these.
    I have created a view cluster on these five tables.
    My requirement is to viewcluster should display the data of the user's company code.
    When i see the data in SE54 it is showing the proper data(i.e data which is related to users company code) for some of the tables.
    And displaying all company codes data for some of the tables.
    What can be the issue here ?
    Do we need to map the data from proper data displaying tables to these tables ? if so How to do that ?
    Please help on how i can solve this issue.
    Regards,
    Sunil Tata.

    Here is a small utility that can be used to copy and paste between a table and Excel.
    I have been obliged to slice the llb into small chuncks for internet technical issues. Sorry...
    CCMessage Edited by chilly charly on 04-02-2005 03:21 PM
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Copy.zip ‏24 KB
    Paste.zip ‏22 KB
    CopyPaste example.zip ‏11 KB

Maybe you are looking for

  • R/3 Export & Import during Unicod Conversion via SOCKET Method

    Hi We are in the process of upgrading our R/3 Enterprise to ECC 6.0. The size of the database is around 4 TeraBytes. Can somebody help us with necessary documentation/ othe rinputs to handle R/3 Export & Import using SOCKET method?  FYI we referred t

  • Ipad2 now only has grayscale screen colors after 8.1 update

    WWhy is my ipad2 screen diisplay black and white only after iOS 8.1 update?.......grayscale and inverted color options are turned off.

  • Fireworks + Dreamweaver Itergration

    Help!!! I recently upgraded from MX to Studio 8. When I go into preferences in Dreamweaver, and click on FileTypes /Editors I've changed my Image editing programs from the old path to FireworksMX to C:\Program Files\Macromedia\Fireworks 8\Fireworks.e

  • Audio and video sync problem Cs4

    Hello! For the latest 5-6 years i had the same problem. Video and audio goes out of sync if I capture more then about 10 minutes. The same if I export more then about 10 minutes. It doesen´t matter what camera I use. We have 3 different ones Sony Hvr

  • HT1473 Stop automatic import of mp3 files

    Any time I add a new .mp3 file to my music folder, iTunes automatically adds it to my library and creates a new playlist for new songs downloaded that day.  This happens as soon as the file is added to the folder, before I even play it.  Is there a w