From: Mike.Adair@CCRS.NRCan.gc.ca - 2005-04-20 01:09:31
|
Now that is a question I don't know the answer to, but would love to know how to do. It would be good to add CSS classes and mouse event handlers for individual features. It would involve diving into the WZ library code to see how the HTML elements are created. Mike > -----Original Message----- > From: Anselm Hook [mailto:an...@ho...] > Sent: Tuesday, April 19, 2005 8:57 PM > To: Mike.Adair@CCRS.NRCan.gc.ca > Cc: sho...@op...; > map...@li...; da...@dr... > Subject: RE: [Mapbuilder-devel] mapbuilder as wfs to render > clickable thum btack poi's > > > You are indeed correct. It IS an IE bug. > > Ok, now the next step for me is to not render lines like this but to > actually render something like <a href="blah"><img > src="transparent.png"/></a> . This will give me google maps > style glyphs > that are directly clickable and resolveable by the browser > itself - not > needing to be dealt with by the mapbuilder javascript context. > > - a > > On Tue, 19 Apr 2005 Mike.Adair@CCRS.NRCan.gc.ca wrote: > > > Hi, > > > > I'm seeing the features being rendered, but the WMS layer > is timing out. Is > > this really a 1.0.0 WMS? > > > > Are you using IE by any chance? It's quite possible that > there is still a > > rendering bug in IE. We do most development and testing > with Firefox and > > then make that work in IE > > > > Mike > > > > > -----Original Message----- > > > From: Anselm Hook [mailto:an...@ho...] > > > Sent: Tuesday, April 19, 2005 8:39 PM > > > To: Mike.Adair@CCRS.NRCan.gc.ca > > > Cc: sho...@op...; > > > map...@li...; da...@dr... > > > Subject: RE: [Mapbuilder-devel] mapbuilder as wfs to render > > > clickable thum btack poi's > > > > > > > > > Hi, thanks for feedback. Sorry to bug the devel list with > > > this again - > > > perhaps there is a mapbuilder irc channel? > > > > > > As a test I tried inserting the suggested snippet of xml > below into my > > > mapbuilder configuration and testbed now at: > > > > > > http://207.118.92.131/maps/ > > > http://207.118.92.131/maps/mapbuilder.xml > > > http://207.118.92.131/maps/local.xml > > > > > > I don't see any results. Am I rendering WFS features that are > > > unsupported? > > > > > > -a > > > > > > > > > > <FeatureCollection id="ntsGml"> > > > > <defaultModelUrl>url_to_my_gml_data.xml</defaultModelUrl> > > > > <widgets> > > > > <GmlRendererWZ id="testNTSRenderer"> > > > > <htmlTagId>mainMapPane</htmlTagId> > > > > <mapContainerId>mainMapContainer</mapContainerId> > > > > <lineColor>#0000FF</lineColor> > > > > <lineWidth>1</lineWidth> > > > > <pointDiameter>10</pointDiameter> > > > > </GmlRendererWZ> > > > > </widgets> > > > > </FeatureCollection> > > > > > > > > This is what is used to render the NTS lookup service in > > > demo/complete.html. > > > > This should come after the Context model in config, so that > > > it is the > > > > Context model which controls the mapContainer. > > > > > > > > To see this in action, zoom in to Ontario, Canada, change > > > 31g05 to 31G or > > > > just 31 and click on "load web service data", you should > > > see a blue box on > > > > the map now (the NTS lookup service returns an outline of a > > > mapsheet index > > > > system which is used in Canada, > > > http://maps.nrcan.gc.ca/topo101/topo_e.php). > > > > In this case, the GML is being loaded as a result of a web > > > service call, but > > > > you can also use a static GML document vie the > > > <defaultModelUrl> property. > > > > > > > > Interestingly enough, I discovered the other day that projection > > > > transformations are already handled by this (with a minor > > > bug to be fixed). > > > > Try the NTS lookup service again but use the Canadian > > > Digital Elevation Data > > > > as the base map, ignore the "input out of range" popup and > > > then either zoom > > > > in some more or drag pan a little bit and you'll see the > > > blue box again, but > > > > rendered in an LCC projection. > > > > > > > > If this doesn't work, it's possible that the GML construct > > > in your data > > > > isn't handled yet in the GML Renderer stylesheet, but that > > > should be easy to > > > > add. Also, the Walter Zorn rendering method can easily > > > bring the browser to > > > > it's knees for rendering large and complex GML data. > > > > > > > > Yes some user documentation is definitely required and is > > > the next big thing > > > > to be added before this release is finalized. > > > > > > > > Mike Adair > > > > > > > > > > > > > -----Original Message----- > > > > > From: map...@li... > > > > > [mailto:map...@li...] On > > > > > Behalf Of Cameron Shorter > > > > > Sent: April 19, 2005 8:20 AM > > > > > To: an...@ho... > > > > > Cc: Nedjo Rogers; map...@li...; > > > da...@dr... > > > > > Subject: Re: [Mapbuilder-devel] mapbuilder as wfs to render > > > > > clickable thumbtack poi's > > > > > > > > > > Hello Anselm, > > > > > Welcome. > > > > > > > > > > 1. I suggest you subscribe to the mapbuilder-devel (or > > > > > mapbuilder-user) > > > > > list so that your emails don't need to be moderated. > > > > > > > > > > 2. The URLs you give below are not working for me - I suspect > > > > > they are > > > > > not getting through your firewall? > > > > > > > > > > 3. I appologise for our minimal documentation. Producing a > > > > > User's Guide > > > > > is on our To-Do list. > > > > > The documentation we do have is linked on the left > hand side of > > > > > Mapbuilder home page: http://mapbuilder.sourceforge.net > > > > > Unfortunately we have not updated the Tutorial or Design > > > Docs since > > > > > version 1, however much of the content is still applicable. > > > > > > > > > > 4. Probably the best example for you to look at in > the WFS-T demo: > > > > > > > > > http://mapbuilder.sourceforge.net/mapbuilder-lib-0.3-alpha/demo/wfs-t > > > > > When you select the PointEntry button or LineEntry button, > > > > > you create a > > > > > GML FeatureCollection, which is displayed in a WFS layer. > > > > > > > > > > 5. To render GML, you should only need to update the > > > > > demo/wfs-t/config.xml file. The index.html file and js > > > > > should not need > > > > > to be updated. > > > > > > > > > > 6. What version of mapbuilder are you using? I suggest you > > > > > use the latest. > > > > > > > > > > 7. I suggest you check your browser for javascript > > > errors, and/or use > > > > > the debugger. If you are using Mozilla, you need to > make sure the > > > > > debugger is installed. > > > > > > > > > > More comments inline. > > > > > > > > > > Anselm Hook wrote: > > > > > > > > > > >Hey Nedjo, others, > > > > > > > > > > > >I like mapbuilder but am having a hell of a time > figuring it out > > > > > >because I just can't seem to find enough information... > > > and I hope > > > > > >people here might have some answers. > > > > > > > > > > > >My goal is to render a bunch of "areas of interest" or > > > > > "thumbtacks" on > > > > > >top of a basic raster layer. Ideally I want to > produce an effect > > > > > >precisely like the following toy example: > > > > > > > > > > > > http://207.118.68.81/test/index.html > > > > > > > > > > > >Ideally - where I want to get to - is having mapbuilder > > > > > composit a wms > > > > > >layer and a wfs layer together where the wfs layer > has clickable > > > > > >points. > > > > > > > > > > > > > > > > > What is supposed to happen when you click a point? > > > > > You probably want to write a button similar to > widget/EditPoint.js > > > > > > > > > > >( I'm operating under a perhaps mistaken assumption that > > > mapbuilder > > > > > >does have *some* support for WFS features... using the wacky > > > > > >javascript div section vector drawing hack that walter > > > zorn invented. > > > > > >) > > > > > > > > > > > > > > > > > Yes, you are right. > > > > > > > > > > >My mapbuilder installation fails to render the WFS > > > layer. Here is my > > > > > >mapbuilder test failing: > > > > > > > > > > > > http://207.118.68.81/maps/ > > > > > > > > > > > >Here is how I arrived at this failure: > > > > > > > > > > > >1) I asked my copy of mapserver to spit out some WFS data > > > > > which I then > > > > > >stored into a file that I put onto my server as a > > > vanilla xml file > > > > > >here: > > > > > > > > > > > > http://207.118.68.81/maps/test.xml > > > > > > > > > > > >2) I modified my mapbuilder startup script to include > > > this WFS file. > > > > > >My mapbuilder startup script is here: > > > > > > > > > > > > http://207.118.68.81/maps/local.xml > > > > > > > > > > > >My initial hope is just to have it render point features - > > > > > just to see > > > > > >what it does, and then to see if I can script up the > > > appropriate xslt > > > > > >translation to make those points clickable etcetera. > > > > > > > > > > > >But there *must* be others who have done this before and > > > > > more comprehensively? > > > > > > > > > > > >Are there any examples? > > > > > > > > > > > > - a > > > > > > > > > > > > > > > > > >------------------------------------------------------- > > > > > >This SF.Net email is sponsored by: New Crystal Reports XI. > > > > > >Version 11 adds new functionality designed to reduce > > > time involved in > > > > > >creating, integrating, and deploying reporting solutions. > > > > > Free runtime info, > > > > > >new features, or free trial, at: > > > > > http://www.businessobjects.com/devxi/728 > > > > > >_______________________________________________ > > > > > >mapbuilder-devel mailing list > > > > > >map...@li... > > > > > >https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Cameron Shorter > > > > > http://cameron.shorter.net > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: New Crystal Reports XI. > > > > > Version 11 adds new functionality designed to reduce time > > > involved in > > > > > creating, integrating, and deploying reporting solutions. > > > > > Free runtime info, > > > > > new features, or free trial, at: > > > > > http://www.businessobjects.com/devxi/728 > > > > > _______________________________________________ > > > > > mapbuilder-devel mailing list > > > > > map...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by: New Crystal Reports XI. > > > > Version 11 adds new functionality designed to reduce time > > > involved in > > > > creating, integrating, and deploying reporting solutions. > > > Free runtime info, > > > > new features, or free trial, at: > > > http://www.businessobjects.com/devxi/728 > > > > _______________________________________________ > > > > mapbuilder-devel mailing list > > > > map...@li... > > > > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: New Crystal Reports XI. > > Version 11 adds new functionality designed to reduce time > involved in > > creating, integrating, and deploying reporting solutions. > Free runtime info, > > new features, or free trial, at: > http://www.businessobjects.com/devxi/728 > > _______________________________________________ > > mapbuilder-devel mailing list > > map...@li... > > https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel > > > |