4 Replies Latest reply: May 24, 2012 12:36 AM by 832745 RSS

    Lat Long Display On Base Map

    832745
      Dear All,

      I need to display the lat/long from my base map when no themes are added to it.

      Please reply. It is very urgent.

      Thanks & Regards,
        • 1. Re: Lat Long Display On Base Map
          jpaiva
          Do you mean to display the current map coordinate when mousing over the map area?
          Are you rendering your "empty" basemap passing some map area information such as center and size (using Java API) or center and scale level (using Oracle Maps javascript APi)?
          • 2. Re: Lat Long Display On Base Map
            832745
            Hi,

            I am using oracle maps javascript API to render my base map. I am using the following code:

            mapview = new MVMapView(document.getElementById("map"), baseURL);
            mapview.addMapTileLayer(new MVMapTileLayer("test.base_sample_tile"));
            mapview.setCenter(mpoint);
            mapview.setZoomLevel(mapZoom);

            where baseURL is mapviewer's URL.

            I want to display map co-ordinates and lat-long on hover.

            Regards
            Neha
            • 3. Re: Lat Long Display On Base Map
              jpaiva
              Hi Neha,
              take a look in Oracle Maps demo "Map Event Listeners". There you can find how to setup listeners for mouse events including the mouse over to show the map location.

              Best regards.

              Joao
              • 4. Re: Lat Long Display On Base Map
                832745
                Dear Joao,

                Thanks for your reply. Our problem has been solved. :)

                But is this is a new addition in mapviewer. Last time I checked we did not have mouse event listeners for base map. :O

                Regards
                Neha