Hi All,

Don't know if this is due to the setup of my cache or a problem with gwc but
I can't seems to get a gmaps response if I use gridsubsets in my config
file, but it works if I use the old 'bounds / coords' methos.

The client code is:

var tilelayer =  new GTileLayer(null, null, null, {
                          tileUrlTemplate:
'http://skrivte58:8080/geowebcache/service/gmaps?layers=topo23&zoom={Z}&x={X}&y={Y}',
               isPng:true,
               opacity:1.0 }
           );

and the geowebcache.xml wms_layer config looks like this:

<wmsLayer>
      <name>topo23</name>
      <mimeFormats>
        <string>image/jpeg</string>
        <string>image/png</string>
      </mimeFormats>
      <formatModifiers>
        <formatModifier>
          <responseFormat>image/jpeg</responseFormat>
          <requestFormat>image/png; mode=24bit</requestFormat>
          <transparent>false</transparent>
          <bgColor>0xFFFFFF</bgColor>
          
          <compressionQuality>0.7</compressionQuality>
        </formatModifier>
      </formatModifiers>
        <gridSubsets>
                <gridSubset>
                        <gridSetName>900913</gridSetName>
                        <extent>
                                <coords>
                                        <double>-20037508.34</double>
                                        <double>-20037508.34</double>
                                        <double>20037508.34</double>
                                        <double>20037508.34</double>
                        </coords>
                        </extent>
                        <zoomStart>0</zoomStart>
                        <zoomStop>20</zoomStop>
                </gridSubset>
        </gridSubsets>
        <wmsUrl>
        <string>http://skrivap60/cgi-bin/topo2</string>
        <string>http://skrivap61/cgi-bin/topo2</string>
      </wmsUrl>
      <wmsLayers>topo2_WMS</wmsLayers>
      <wmsStyles>default</wmsStyles>
      <metaWidthHeight>
        <int>2</int>
        <int>2</int>
      </metaWidthHeight>
      <gutter>100</gutter>
      <tiled>false</tiled>
      <expireCacheList>
        <expirationRule minZoom="0" expiration="604800"/>
        <expirationRule minZoom="13" expiration="604800"/>
      </expireCacheList>
      <expireClientsList>
        <expirationRule minZoom="0" expiration="604800"/>
      </expireClientsList>
      <transparent>true</transparent>
      <errorMime>application/vnd.ogc.se_xml</errorMime>
      <bgColor/>
      <palette/>
      <vendorParameters/>
    </wmsLayer>
  </layers>




This returns nothing at all to the client. However if I add to the section
with:

<grids>
        <entry>
          <srs>
            <number>900913</number>
          </srs>
          <grid>
            <srs>
              <number>900913</number>
            </srs>
            <dataBounds>
              <coords>
                <double>-20037508.34</double>
                <double>-20037508.34</double>
                <double>20037508.34</double>
                <double>20037508.34</double>
              </coords>
            </dataBounds>
            <gridBounds>
              <coords>
                <double>-20037508.34</double>
                <double>-20037508.34</double>
                <double>20037508.34</double>
                <double>20037508.34</double>
              </coords>
            </gridBounds>
            <zoomStart>0</zoomStart>
            <zoomStop>19</zoomStop>
          </grid>
        </entry>
      </grids>


it works and I get tiles back. Are the grid definitions simply information
that a gmaps request needs?
I'd love any info on this, I've googled the hell out of it but just can't
find an explanation.

best regards

Tom


--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/GeoWebcache-gmaps-gridsubsets-problem-tp4981118.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to