Hello,

we have  some shapes quite similar to the states-demo, that we deliver
as a layer in Google maps:

      var  districtsTiles = {
        getTileUrl: function(coord, zoom) {
         return
"http://ungeo.de:8080/geoserver/gwc/service/gmaps?layers=workspace:Town_wards2010&";
+
                    "zoom=" + zoom + "&x=" + coord.x + "&y=" + coord.y +
"&format=image/png";
        },      
              tileSize: new google.maps.Size(256, 256),
              isPng: true,
              opacity: 0.4      };

     var districtsBasics = new google.maps.ImageMapType(districtsTiles);
     map.overlayMapTypes.insertAt(0, districtsBasics);

this works perfectly well.
The layer shows about a dozen districts of a town. Every district has
a shape we can get the coordinates for using WFS (the_geom). WFS also
delivers informations on features like population and the like and we
would like to pop up these infos, when the user clicks upon the
respective district on the map.

I see something remotely similar in the open layers preview. One can
click in the map and get additional infos as HTML under the map.

Am I right to see a clue for that starting with this line:

 // support GetFeatureInfo
                map.events.register('click', map, function (e)

??

Anyway, is it possible to set up something like that with a Layer atop
Google maps?
I think I *could* do something like that rendering the shapes from
the_geom as Google Maps polygons. But in that case what would be the
point in the styles made in geoserver and do I not *have* these shapes
already? It would of course be a huge performance issue also...

It would be most appreciated, if someone has a link to any pages, that
does such machinations already, so we could lern from them, how we do
it in our case...

best regards

HZN

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to