I am using Geomedia for my Web Service. I have setup a  Ext datastore with
the below code and use an ext window to zoom into a specific feature on my
map. My question is how do I get the proper bounds for this feature? In my
database for each specific address I am trying to zoom into geomedia has put
it's own proprietary geometry coordinates. Well the coordinates I tried to
enter in (XLO, YLO, XHI, YHI) are obviously not working for the right parcel
because when I click the button after entering these values it is way off my
map. I tried to test other coordinates by zooming in on the actual map on my
page and copying these coordinates and sure enough it zooms back properly.
So how do I get the proper coordinates or transform these geomedia geometry
coords into the right bounding box? Sorry if this doesn't make much sense i
am confused greatly as I've never worked with this stuff before.



   var store = new Ext.data.SimpleStore({
            fields: ['value', 'text', 'bbox'],
            data : [
            ['43R', '43 Reichley Street', new
OpenLayers.Bounds(-113.785710899444,52.2419398632189
-113.785587318901,52.2419595995343)]]   //these coordinates don't work they
are way off my map
        
        }); 
        

        
        
        // the extJs window that for the zoom to county dropdown
          var window = new Ext.Window({
            title: 'Zoom to Address',
            width: 200,
                height: 100,
                minWidth: 200,
                minHeight: 100,
                closable: false,
            layout: 'fit',
            plain: true,
            bodyStyle: 'padding: 5px;',
            items: [{
                xtype: 'shortcuts',
                map: map,
                store: store,
                templates: {
                    header: new Ext.Template("Choose an Address"),
                    footer: new Ext.Template("The map will automatically
center to this location")
                }
            }]
        });
        window.setPagePosition(75, 50);
 
        window.show();
-- 
View this message in context: 
http://osgeo-org.1803224.n2.nabble.com/Need-help-with-bounding-box-coords-to-use-tp5535847p5535847.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to