2 Replies Latest reply: Jan 31, 2012 7:22 AM by grueningd RSS

    Google layer stretched underneath Theme and UserDefined FOI  when get IMAGE

    user535822
      Here's my situation.
      We have Google Maps tile layer and some Theme-Based FOI Layers (SDO srid 3785).
      Everything looks good on the map.
      But on the picture of this map (requested by function mapview.getMapImageURL in oraclemap.js) the Google layer is stretched underneath of all objects.
      (either Theme-Based or User-Defined).

      Edited by: user535822 on Jan 10, 2012 3:12 PM
        • 1. Re: Google layer stretched underneath Theme and UserDefined FOI  when get IMAGE
          user535822
          Here is some samples to reproduce the problem.

          A point on the map is somewhere in Manhattan.
          If it's on the middle of the map then it is exactly on the right place where it's supposed to be.
          <?xml version="1.0" standalone="yes"?><map_request datasource="pmap" format="PNG_STREAM" width="731" height="450" antialiase="true" srid="3785" bgimage="http://maps.google.com/maps/api/staticmap?center=40.68896845887954,-73.72051872415165&amp;zoom=8&amp;size=731x450&amp;maptype=roadmap&amp;sensor=false&amp;key=your_google_api_key"><center size="275173.2971191406"><geoFeature><geometricProperty typeName="center"><Point><coordinates>-8206530.60538855,4966572.26488426</coordinates></Point></geometricProperty></geoFeature></center><themes></themes> <styles><style name="my_vector_icon"><svg width="1in" height="1in"><g class="marker" style="width:16;height:16;stroke:0xff0000;fill:0x00ff00;">  <circle cx="0" cy="0" r="1"/></g></svg></style></styles><geoFeature render_style="my_vector_icon"><geometricProperty><Point srsName="SDO:3785" ><coordinates>-8238921.791533574,4968950.002007108</coordinates></Point></geometricProperty></geoFeature></map_request>
          If this point close to the right side of the map then it's moved west!!!
          <?xml version="1.0" standalone="yes"?><map_request datasource="pmap" format="PNG_STREAM" width="731" height="450" antialiase="true" srid="3785" bgimage="http://maps.google.com/maps/api/staticmap?center=40.68896845887954,-75.72051872415165&amp;zoom=8&amp;size=731x450&amp;maptype=roadmap&amp;sensor=false&amp;key=your_google_api_key"><center size="275173.2971191406"><geoFeature><geometricProperty typeName="center"><Point><coordinates>-8429169.586975098,4966572.264892578</coordinates></Point></geometricProperty></geoFeature></center><themes></themes> <styles><style name="my_vector_icon"><svg width="1in" height="1in"><g class="marker" style="width:16;height:16;stroke:0xff0000;fill:0x00ff00;">  <circle cx="0" cy="0" r="1"/></g></svg></style></styles><geoFeature render_style="my_vector_icon"><geometricProperty><Point srsName="SDO:3785" ><coordinates>-8238921.791533574,4968950.002007108</coordinates></Point></geometricProperty></geoFeature></map_request>
          • 2. Re: Google layer stretched underneath Theme and UserDefined FOI  when get IMAGE
            grueningd
            This is because you are using unsigned urls to request static google images as background image. If you don't sign the url, with and height of the response image is limited to 640px. Since you are requesting images with width="731" and height="450" you will get google images of size 640x450.

            To test the behaviour just replace 731 with 640 in both map_request-with-attribute and the bgimage url.

            Edited by: grueningd on Jan 31, 2012 2:21 PM