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>
Similar Messages
-
How to access MS SQL in Oracle BI Administration?
Hi All,
I'm a new in Oracle BI, I've just created an business application using Oracle BI Administration Tool of Oracle BI Server version 10.1.3.4.1:
Steps:
1. building repository (through Physical, Business model and Mapping, Presentation),
2. making Answers from Presentation Services.
=> It ran well and beautiful reports, charts. But now, my DB is stored in Microsoft SQL Server, help me how to access MS SQL in Oracle BI, more details steps, are there any useful links?
Appreciate All.Hi
Do the following
Control panel> Administration tool> ODBC>SystemDSN > ADD > select the driver>Your SQL SERVER credentials
Then test the connection
Go to the BI tool
IMPORT from Database>Select the SQL server connection you have just created>Locate your desired schema> configure the connection pool> import
regards
Roy -
How to access virtual folder in oracle apps 11i?
Hi,
how to access virtual folder in oracle apps 11i?
Version=11.5.10.2
please help
Thanks,I'd use BI Publisher (XML Publisher) Bursting.
Regards,
Gareth
http://garethroberts.blogspot.com
http://www.virtuate.com -
How to install apex 4 with Oracle Fusion Middleware Web Tier Utilities
Hi all,
Does any one know how to install apex 4 with Oracle Fusion Middleware Web Tier Utilities ?
I follow the instructions http://download.oracle.com/docs/cd/E17556_01/doc/install.40/e15513/toc.htm but there's no directory called ORACLE_HTTPSERVER_HOME\Apache and ORACLE_HTTPSERVER_HOME/ohs/modplsql/conf/dads.conf
I don't know where's dads.conf file to make change
Please hellp me on this case
Thanks & regardsA little bit odd is an understatement. The first time I found I had to download over 1Gb of stuff to run a simple web server I practically fell over! Hopefully, the Apex Listener team will update it to have backwards compatibility with mod_plsql and we can ignore trying to install Oracle Fusion Middleware Web Tier Utilities...
However, until then the TNS Names error generally means that there isn't a TNS alias set up for the database you have referenced in the mod_plsql dad. If you open up the dads.conf file you should see something like
PlsqlDatabaseConnectString localhost:1521:databasealias
If you then open a command prompt and do TNSPING databasealias you should get a response like this
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
(HOST = localhost)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = ***)))
OK (20 msec)
If you don't it means you need to add it in.
Hope this helps -
How SAP QM is comparable with Oracle's Agile PQM solution ?
Hi QM Gurus,
I would like to know how SAP QM is comparable with Oracle's Agile PQM Solution. Request you to please share your experience. Regards, KrishnaM
Edited by: Krishna. Madduri on Feb 29, 2012 12:00 PMHi,
SAP QM supports you both internally and externally. It provides complete support, from product and process planning in research and development (the planning phase); through procurement, production, and sales and distribution (the implementation phase); to service and usage (the usage phase).
Please go through the below link to know more about the functionality in SAP QM
http://www.google.co.in/url?sa=t&rct=j&q=solution%20managementmanufacturing%20%2F%20quality%20managementsap%20ag&source=web&cd=2&ved=0CDoQFjAB&url=http%3A%2F%2Fhelp.sap.com%2Fbp_pharmav1600%2FPharma_Global%2FDocumentation%2FSAP_QM_News_EN.ppt&ei=TQ1OT6e1Fcm4rAefweSiDw&usg=AFQjCNGb33bopm3PzUZYxvxAwEK_LaFvew
Regards
Hari -
How to integrate Crystal Report with oracle JDeveloper 11g
Hi,
How to integrate Crystal Report with oracle JDeveloper 11g
Regards ,
AmolI dont think that you can integrate Crystal Reports with JDevelpoer but you can use runtime libraries to your project to get crystal report functionality
To know more please go through supported platforms
[Supported Platforms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/504d0204-681e-2b10-2381-853d88974cfc]
Regards,
Tej -
How to cause a "Completed with errors" map condition?
Our application testers asked me how to replicate a "Completed with errors" map condition, so they can verify that our application reports and handles this correctly. I've been able to generate "Completed with warnings" (create records with duplicate keys) and "Failed" conditions (drop a source table), but not "Completed with errors". Anyone know of a way to produce this condition?
Thanks!
Steve LockeHi Steve
It depends on your 'Maximum Number of Errors' configuration property. By default this value is 50, so its highly likely you are running set based and you have used the default number of errors (50) and the error count after the run is 1 so you have the status completed with warnings. If you change the maximum number of errors to 0, you will complete with errors if there are any errors at all.
Cheers
David -
How to create hetrogeneous connection with access to connect with oracle
how to connect hetrogeneous connection to connect access with oracle to copy data from access to oracle.
That's a very cool link (add to favorites, thanks
Krystian Zieja) It is :)
but you can link the oracle table
within MS Access itself via ODBC with a DSN (data
source name) you create through the control
panel/administrative tools/data sources (ODBC) if you
are running Windows XP. Once you have the DSN
created you can link the tables and work with the
data directly (depending on the login user
privaleges) or just import the data directly into
Access and work with it there since it seems like
that is what you want to do.
Regards.I am using Generic Connectivity in the present.Before that i used to use ODBC to connect ORACLE with MS access but for diffrent client i had to encapsulate the MS access sequel as well any enhancment mess the code.
As well I tried to centralised this practice at server side for that i had to encapsualte these sequel and coding into procedure for the client accesbility.
As well if i had to connect outsource others db like sybase which knows diffrent sequel so i had to cope with other db.
But thanks for ORACLE they give us a very nice NON-ORALCE connectivity tool (generic,transparent gateway) it fade up all those garbage which i compelled to follow.
Its like one interface mutltiple methods :)
However, it also enabled me to control which columns were visible and what they were called in MS access or in Sybase etc.
So i would suggest to OP go for HS service rather old fashioned ODBC with DSN.
Khurram -
How to create a view with Oracle apps Org initialization ?
Hi,
How to create a view which needs Oracle apps org initialization to provide the correct data .
The purpose of the view is to be accessed in Primavera DB via a DB link for reporting purpose.
So how should the org be initialized so that the view returns the correct data when accessed from the remote data base using the DB link?
EX: step1 run fnd_client_info.set_org_context for the org
step2 query the veiw returns correct data in Oracle.
How can this be achieved if the view needs to be accessed via DB link?
sample view sql :
select po_header_id
from po_distributions_all pod
where (apps.po_intg_document_funds_grp.get_active_encumbrance_func
('PO',
pod.po_distribution_id
) <> 0
Thanks in advance!
DarshiniHi,
This is not possible in Oracle. What u can do is create the view without the where clasue and supply the where clause at runtime.
Hope this helps...
Regards,
Ganesh R -
Hello,
I use Entity Framework code first approach.
My project is working fine with SQL Server. But, I want to access Oracle too. I want to switch SQL Server and Oracle in run time.
I am able to access Oracle using "Oracle.ManagedDataAccess.EntityFramework.dl" in a new project.
But, Is this possible to access SQL Server and Oracle in the same project.
Thanks,
MuruganThis should be possible with a Code-First workflow. In Code-First the database mapping layer is generated at runtime.
David
David http://blogs.msdn.com/b/dbrowne/ -
How to access remote tables on Oracle from Access fron end?
Note: Access application and access tables are in separate .mdb files.
I've successfully migrated my Access 2000 tables to Oracle. And there were no errors during the migration. The two original Access tables were renames to tblBOMdetail_L and tblPartInfo_L and two new linked tables were created with the _R name. Mapping queries were created for tblBOMdetail and tblPartInfo.
However, when I launch my Access application, I get the following error: "The Microsoft Jet database engine cannot find the input table or query 'tblPartInfo'. Make sure that it exists and that its name is spelled correctly."
Is there something more that I have to do to enable this connection. I already have the necessary ODBC connection set up.
Thanks.Hi ,
The first thing you need to verify is that you can view the data in the tables with _R appended to their name. This will verify whether the ODBC link is set up correctly and pointing at the correct Oracle table in the Oracle database.
Another point. Are you still using 2 .mdb files? If so since your data is now in Oracle it may be prudent to use only one .mdb.
If you need more help then please contact [email protected]
John -
Advice please: how to link java client with oracle AS
Dear Sirs...
how can i link java swing application with oracle application server? do i have to develop web service and then deploy it on the AS? or i should use another methodology? what exactly should i provide or should i use?
thanks for any help
best regardsThere are a number of approaches you can take. A webservice would work well. You may also consider using EJBs and calling them via RMI or a webservice.
Either is a viable option depending on your requirements. -
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
581554Hi
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 Access Web service with ADF Mobile Browser Application
hi all,
My Jdeveloper version is 11g 2 release(Version 11.1.2.2.0). I need to know If I create a web application and put it on a server as a web service., Then I create a Mobile browser application and need to access that web service.
If it is possible, how should I do? version are same in both application.
hopping any clue..
Thxs.You can go thru the below links :
ADF Mobile HowTos: Consuming SOAP web service in ADF Mobile using WS DC
Oracle JDeveloper 11g Release 2 Tutorials - Building Mobile Applications with Oracle ADF Mobile -
I am using Oracle MapViewer 10.1.3.3. In Oracle Map demo, there is a sample for map printing by using style class (noscreen and noprint) for HTML div. However, my application is using Oracle ADF faces, which don't accept a "class" attribute in the tag. Does anyone know how I could print map image only with ADF faces?
Thanks!FOP : [http://www.oracle.com/technology/products/database/application_express/html/configure_printing.html]
Cocoon: [http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html]
Jasperreports: [http://blog.dunull.org/?page_id=70]
Thank you,
Tony Miller
Webster, TX
Maybe you are looking for
-
Selection screen field value capturing
Hi, I have developed a report for displaying amendment changes in a purchse order. The input are purchase order and plant. Now they have asked for an additional input of version field, which should also have F4 field-value help. For version field, de
-
Memory sharing among nodes in a cluster
Hi, Let's say I have two nodes A and B in the cluster. Node A has defined in config file and is using just cacheA, while node B has defined in config file and is using just cacheB. From the fact that those two nodes are in the same cluster, does it m
-
Aperture 3.0.2 or Keynote 5.0.3 Bug: Sharing Media
I was replacing a graphic in Keynote '09, sharing media from both iPhoto and Aperture. There was an image I wanted to use from Aperture. When I looked at it, I discovered the image was crooked, so I straightened it in Aperture. When I tried to bring
-
What Mac App will allow me to add captions to my photos?
I want to add captions to various places on my photos... how can I do this in iPhoto and/or Aperture? Thanks
-
Where do i find (programatically, not via menu) the name of a text table associated with a table, for example, T606U as the text table of T606B. I cannot find it stored in a DD table (i looked in DD02l and DD09L) thanks