Select to view content in your preferred language

WMTSLayer bug on proxyURL?

511
2
06-27-2012 05:28 AM
FabianoScardua
Emerging Contributor
I'm trying to use the service available in the WMTS sample at http://resources.arcgis.com/en/help/flex-api/samples/index.html#/WMTS_Map/01nq0000007n000000/

I created a file proxy to consume the service available in http://v2.suite.opengeo.org/geoserver/gwc/service/wmts, using the example in PHP available in http://help.arcgis.com/en/WebAPI/flex/proxypage_php.zip .

The application does not load the base map.

When debugging a request sent to the proxy file in PHP, I noticed that the URLs that arrive at the proxy are being concatenated with the actual address of the proxy configured in the property of the object proxyURL WMTSLayer.

Someone confirm this bug in version 3.0?
Tags (2)
0 Kudos
2 Replies
SarthakDatt
Frequent Contributor
Hey Fabiano,

Thanks for reporting this. This is a bug and will be fixed in the next version.

In the meantime, as a workaround, could you try hosting the capabilities file on your own server. Loading of the tiles do not require the crossdomain file(hence no proxy), so it should just then work fine.

If you still want to go through the proxy, you can adjust tile url(GetTile operation) so that it contains the proxyURL. Something like:

<ows:Operation name="GetTile">
    <ows:DCP>
      <ows:HTTP>
        <ows:Get xlink:href="YourProxyURL?http://v2.suite.opengeo.org/geoserver/gwc/service/wmts?">
          <ows:Constraint name="GetEncoding">
            <ows:AllowedValues>
              <ows:Value>KVP</ows:Value>
            </ows:AllowedValues>
          </ows:Constraint>
        </ows:Get>
      </ows:HTTP>
    </ows:DCP>
  </ows:Operation>


Hope that helps.
0 Kudos
BjornSvensson
Esri Regular Contributor
I'm trying to use the service available in the WMTS sample at http://resources.arcgis.com/en/help/flex-api/samples/index.html#/WMTS_Map/01nq0000007n000000/


FYI - the online WMTS sample have been updated to point to a service (with a crossdomain.xml file) and is now working good.
http://resources.arcgis.com/en/help/flex-api/samples/index.html#/WMTS_Map/01nq0000007n000000/
0 Kudos