|
|
|
Nolte, Tim
|
OK, I know this is probably wishful thinking. AS I've looked at the
MapGuide live app gallery. And specifically the following demo: http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php I would like to get Fusion (1.0.6) functioning and looking like that demo but using UMN MapServer. Is this even possible? Something I'm also wondering about is the Tiled AJAX sample. Is the tiling something specific and built in to MapGuide? I'm assuming the tiling is something on the server side and nothing to do with Fusion? - Tim ---- Timothy J Nolte - [hidden email] Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Paul Spencer-2
|
Hi Tim,
you can get a Fusion application to look essentially like that application using mapserver. The tiling capability on the client side is implemented by OpenLayers, so there is nothing magically mapguide about it. However, there is no support in the ApplicationDefinition to let you define a tiled mapserver layer. We are working on supporting all the OpenLayers layer types through the ApplicationDefinition for the 1.1 release but this work has not yet been done. Even when the necessary hooks in Fusion are available, you will still need something on the server side to generate the tiles. You can use mapserver to do this directly, but it is pretty inefficient since mapserver will draw the same tile over and over again. What you need is something that will cache tiles for you and serve them from the cache if available. For this, we will be recommending either the kaMap's tile.php or TileCache. Cheers Paul On 14-Jul-08, at 4:22 PM, Nolte, Tim wrote: > OK, I know this is probably wishful thinking. AS I've looked at the > MapGuide live app gallery. And specifically the following demo: > > > http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php > > I would like to get Fusion (1.0.6) functioning and looking like that > demo but using UMN MapServer. Is this even possible? Something I'm > also > wondering about is the Tiled AJAX sample. Is the tiling something > specific and built in to MapGuide? I'm assuming the tiling is > something > on the server side and nothing to do with Fusion? > > - Tim > > ---- > Timothy J Nolte - [hidden email] > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > _______________________________________________ > fusion-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/fusion-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Nolte, Tim
|
Have a few questions:
1. How do you changing the max scale/zoom of the Navigator widget? 2. How do you set the navigator to be on the right side of the map by default? 3. How do you set different independent units for the CursorPosition & ViewSize widgets? Thanks! - Tim ---- Timothy J Nolte - [hidden email] Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
|
Paul Spencer-2
|
* The max scale of the navigator widget should be calculated from the
extent defined in the map file. But the navigator is currently poorly implemented so it is quite possibly not working or difficult to work with. * you should be able to use css to reposition the navigator * I don't think you can set independent units for widgets but if you can, then you would add <Units>meters</Units> (with the appropriate unit) to the widget's <Extension> in the ApplicationDefinition.xml Cheers Paul On 15-Jul-08, at 4:39 PM, Nolte, Tim wrote: > Have a few questions: > > 1. How do you changing the max scale/zoom of the Navigator widget? > 2. How do you set the navigator to be on the right side of the map by > default? > 3. How do you set different independent units for the CursorPosition & > ViewSize widgets? > > Thanks! > > - Tim > > ---- > Timothy J Nolte - [hidden email] > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > _______________________________________________ > fusion-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/fusion-users __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
percy-2
|
In reply to this post
by Paul Spencer-2
Paul, thanks for the explanation on the tiling.
I've actually been waiting to use and contribute to Fusion until the tiling was in place, as we currently use kamap for our tiling engine for the US geological survey, and it really helps. We are just working with Mootools and Openlayers, but I'd be happier if we were contributing to an active project, like Fusion, since that's the open source spirit. Is there a way to "wire" the unsupported Openlayers layer types into a Fusion app? It doesn't seem like it should be too difficult, but I was worried about making things hard to migrate once the Fusion framework supports it. I'd appreciate any thoughts you (or others on the PSC) have on this. Cheers, Percy Paul Spencer wrote: > Hi Tim, > > you can get a Fusion application to look essentially like that > application using mapserver. The tiling capability on the client side > is implemented by OpenLayers, so there is nothing magically mapguide > about it. However, there is no support in the ApplicationDefinition to > let you define a tiled mapserver layer. We are working on supporting > all the OpenLayers layer types through the ApplicationDefinition for the > 1.1 release but this work has not yet been done. > > Even when the necessary hooks in Fusion are available, you will still > need something on the server side to generate the tiles. You can use > mapserver to do this directly, but it is pretty inefficient since > mapserver will draw the same tile over and over again. What you need is > something that will cache tiles for you and serve them from the cache if > available. For this, we will be recommending either the kaMap's > tile.php or TileCache. > > Cheers > > Paul > > On 14-Jul-08, at 4:22 PM, Nolte, Tim wrote: > >> OK, I know this is probably wishful thinking. AS I've looked at the >> MapGuide live app gallery. And specifically the following demo: >> >> >> http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php >> >> I would like to get Fusion (1.0.6) functioning and looking like that >> demo but using UMN MapServer. Is this even possible? Something I'm also >> wondering about is the Tiled AJAX sample. Is the tiling something >> specific and built in to MapGuide? I'm assuming the tiling is something >> on the server side and nothing to do with Fusion? >> >> - Tim >> >> ---- >> Timothy J Nolte - [hidden email] >> Network Planning Engineer >> >> iPCS Wireless, Inc. >> 4717 Broadmoor Ave, Suite G >> Kentwood, MI 49512 >> >> Office: 616-656-5163 >> PCS: 616-706-2438 >> Fax: 616-554-6484 >> Web: www.ipcswirelessinc.com >> _______________________________________________ >> fusion-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/fusion-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > fusion-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/fusion-users > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Nolte, Tim
|
In reply to this post
by Paul Spencer-2
Ok, well I did manage to get the Navigator scale to be correct. It ended
up being a matter of making sure I had no MAXSCALE parameters in my map file that were beyond what I set the overall MAXSCALE set to. It was a little bit of a pain to have to go through and modify so many layers but at least I got what I was after. I'll try to see what movement of the Navigator can be accomplished with just CSS. It's odd though because there is already automatically generated CSS on the Navigator that positions it where it's at. As far as the independent units for widgets, I did try using the <Units> tag inside <Extension> but that didn't give me any different results. The reason I asked this was that the MapGuide/Fusion example does have this for the CursorPosition & ViewSize widgets. I want the CursorPosition widget to be in decimal degrees (which I have already), and the ViewSize widget to be in miles. Thanks. ---- Timothy J Nolte - [hidden email] Network Planning Engineer iPCS Wireless, Inc. 4717 Broadmoor Ave, Suite G Kentwood, MI 49512 Office: 616-656-5163 PCS: 616-706-2438 Fax: 616-554-6484 Web: www.ipcswirelessinc.com > -----Original Message----- > From: Paul Spencer [mailto:[hidden email]] > Sent: Tuesday, July 15, 2008 6:36 PM > To: Nolte, Tim > Cc: [hidden email] > Subject: Re: [fusion-users] Fusion Questions > > * The max scale of the navigator widget should be calculated > from the > extent defined in the map file. But the navigator is > currently poorly > implemented so it is quite possibly not working or difficult to work > with. > * you should be able to use css to reposition the navigator > * I don't think you can set independent units for widgets but if you > can, then you would add <Units>meters</Units> (with the appropriate > unit) to the widget's <Extension> in the ApplicationDefinition.xml > > Cheers > > Paul > > On 15-Jul-08, at 4:39 PM, Nolte, Tim wrote: > > > Have a few questions: > > > > 1. How do you changing the max scale/zoom of the Navigator widget? > > 2. How do you set the navigator to be on the right side of > the map by > > default? > > 3. How do you set different independent units for the > CursorPosition & > > ViewSize widgets? > > > > Thanks! > > > > - Tim > > > > ---- > > Timothy J Nolte - [hidden email] > > Network Planning Engineer > > > > iPCS Wireless, Inc. > > 4717 Broadmoor Ave, Suite G > > Kentwood, MI 49512 > > > > Office: 616-656-5163 > > PCS: 616-706-2438 > > Fax: 616-554-6484 > > Web: www.ipcswirelessinc.com > > _______________________________________________ > > fusion-users mailing list > > [hidden email] > > http://lists.osgeo.org/mailman/listinfo/fusion-users > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > > fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Paul Spencer-2
|
We need to think through how the navigator scale thing should work, I
think: * it should be possible to set a min/max scale in the widget's <Extension> * it could possibly do a better job of picking up default min/max scale from the map * it should use a logarithmic scale for zooming, right now it is linear and is really quite useless I just took a look at the navigator code, it doesn't change the position of the <div> that you put the navigator into. If you are using templates/mapserver/standard to start from, you should be able to add: <style> #Navigator { right: 10px; top: 10px; } </style> in the <head> of that page to set the position of the navigator (by default it should be at left:0, top:0 inside the <div> with id 'Map') Regarding units, it is possible that the ViewOptions widget is overriding your individual widget settings, try removing it from your ApplicationDefinition. Note that right now we are using quite inaccurate calculations for determining the decimal degrees of maps not in a lonlat projection and also for calculating linear distances from maps that are in decimal degrees. We plan to incorporate proj4js especially for displaying the cursor position in lonlat when the map is not in lonlat, and it should help in measuring distances too because we can convert into projections defined in meters. Cheers Paul On 16-Jul-08, at 8:03 AM, Nolte, Tim wrote: > Ok, well I did manage to get the Navigator scale to be correct. It > ended > up being a matter of making sure I had no MAXSCALE parameters in my > map > file that were beyond what I set the overall MAXSCALE set to. It was a > little bit of a pain to have to go through and modify so many layers > but > at least I got what I was after. > > I'll try to see what movement of the Navigator can be accomplished > with > just CSS. It's odd though because there is already automatically > generated CSS on the Navigator that positions it where it's at. > > As far as the independent units for widgets, I did try using the > <Units> > tag inside <Extension> but that didn't give me any different results. > The reason I asked this was that the MapGuide/Fusion example does have > this for the CursorPosition & ViewSize widgets. I want the > CursorPosition widget to be in decimal degrees (which I have already), > and the ViewSize widget to be in miles. > > Thanks. > > ---- > Timothy J Nolte - [hidden email] > Network Planning Engineer > > iPCS Wireless, Inc. > 4717 Broadmoor Ave, Suite G > Kentwood, MI 49512 > > Office: 616-656-5163 > PCS: 616-706-2438 > Fax: 616-554-6484 > Web: www.ipcswirelessinc.com > >> -----Original Message----- >> From: Paul Spencer [mailto:[hidden email]] >> Sent: Tuesday, July 15, 2008 6:36 PM >> To: Nolte, Tim >> Cc: [hidden email] >> Subject: Re: [fusion-users] Fusion Questions >> >> * The max scale of the navigator widget should be calculated >> from the >> extent defined in the map file. But the navigator is >> currently poorly >> implemented so it is quite possibly not working or difficult to work >> with. >> * you should be able to use css to reposition the navigator >> * I don't think you can set independent units for widgets but if you >> can, then you would add <Units>meters</Units> (with the appropriate >> unit) to the widget's <Extension> in the ApplicationDefinition.xml >> >> Cheers >> >> Paul >> >> On 15-Jul-08, at 4:39 PM, Nolte, Tim wrote: >> >>> Have a few questions: >>> >>> 1. How do you changing the max scale/zoom of the Navigator widget? >>> 2. How do you set the navigator to be on the right side of >> the map by >>> default? >>> 3. How do you set different independent units for the >> CursorPosition & >>> ViewSize widgets? >>> >>> Thanks! >>> >>> - Tim >>> >>> ---- >>> Timothy J Nolte - [hidden email] >>> Network Planning Engineer >>> >>> iPCS Wireless, Inc. >>> 4717 Broadmoor Ave, Suite G >>> Kentwood, MI 49512 >>> >>> Office: 616-656-5163 >>> PCS: 616-706-2438 >>> Fax: 616-554-6484 >>> Web: www.ipcswirelessinc.com >>> _______________________________________________ >>> fusion-users mailing list >>> [hidden email] >>> http://lists.osgeo.org/mailman/listinfo/fusion-users >> >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://www.dmsolutions.ca/ >> >> >> __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Paul Spencer-2
|
In reply to this post
by percy-2
It should be possible :) You will need to spend some quality time
with firebug probably, but in essence you can get access to the OpenLayers.Map instance and then do whatever you want. I would probably approach it like this: window.onload=function(){ Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, fusionInitialized); Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError); Fusion.initialize(); } function fusionError(eventId, error) { console.log('Fusion Error: '+error.toString(); } function fusionInitialized(eventId) { var map = Fusion.getWidgetById('Map'); // the id of the div containing the map var olMap = map.oMapOL; var wms = new OpenLayers.Layer.WMS(/* parameters */); olMap.addLayer(wms); } You will probably run into difficulty with the whole baseLayer thing in OpenLayers. By default, most tile-based layers want to be base layers and you need to add isBaseLayer: false to the layer options (4th arg to WMS layer, might be different in other layer types). You can also start Fusion without a map loaded and inject a baseLayer using this method, but then a whole bunch of things won't really work - for instance a lot of widgets only get enabled after a map has loaded. Some feedback on *how* this should work would be appreciated. If you have a particular use case and would like to be able to set things up in a particular way, that would be very useful to the developers as we plan out exposing more OpenLayers stuff. Cheers Paul On 16-Jul-08, at 1:42 AM, David Percy wrote: > Paul, thanks for the explanation on the tiling. > > I've actually been waiting to use and contribute to Fusion until the > tiling was in place, as we currently use kamap for our tiling engine > for the US geological survey, and it really helps. We are just > working with Mootools and Openlayers, but I'd be happier if we were > contributing to an active project, like Fusion, since that's the > open source spirit. > > Is there a way to "wire" the unsupported Openlayers layer types into > a Fusion app? It doesn't seem like it should be too difficult, but I > was worried about making things hard to migrate once the Fusion > framework supports it. > > I'd appreciate any thoughts you (or others on the PSC) have on this. > Cheers, > Percy > > Paul Spencer wrote: >> Hi Tim, >> you can get a Fusion application to look essentially like that >> application using mapserver. The tiling capability on the client >> side is implemented by OpenLayers, so there is nothing magically >> mapguide about it. However, there is no support in the >> ApplicationDefinition to let you define a tiled mapserver layer. >> We are working on supporting all the OpenLayers layer types through >> the ApplicationDefinition for the 1.1 release but this work has not >> yet been done. >> Even when the necessary hooks in Fusion are available, you will >> still need something on the server side to generate the tiles. You >> can use mapserver to do this directly, but it is pretty inefficient >> since mapserver will draw the same tile over and over again. What >> you need is something that will cache tiles for you and serve them >> from the cache if available. For this, we will be recommending >> either the kaMap's tile.php or TileCache. >> Cheers >> Paul >> On 14-Jul-08, at 4:22 PM, Nolte, Tim wrote: >>> OK, I know this is probably wishful thinking. AS I've looked at the >>> MapGuide live app gallery. And specifically the following demo: >>> >>> http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php >>> >>> I would like to get Fusion (1.0.6) functioning and looking like that >>> demo but using UMN MapServer. Is this even possible? Something I'm >>> also >>> wondering about is the Tiled AJAX sample. Is the tiling something >>> specific and built in to MapGuide? I'm assuming the tiling is >>> something >>> on the server side and nothing to do with Fusion? >>> >>> - Tim >>> >>> ---- >>> Timothy J Nolte - [hidden email] >>> Network Planning Engineer >>> >>> iPCS Wireless, Inc. >>> 4717 Broadmoor Ave, Suite G >>> Kentwood, MI 49512 >>> >>> Office: 616-656-5163 >>> PCS: 616-706-2438 >>> Fax: 616-554-6484 >>> Web: www.ipcswirelessinc.com >>> _______________________________________________ >>> fusion-users mailing list >>> [hidden email] >>> http://lists.osgeo.org/mailman/listinfo/fusion-users >> __________________________________________ >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://www.dmsolutions.ca/ >> _______________________________________________ >> fusion-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/fusion-users > > -- > David Percy > Geospatial Data Manager > Geology Department > Portland State University > http://gisgeek.pdx.edu > 503-725-3373 __________________________________________ Paul Spencer Chief Technology Officer DM Solutions Group Inc http://www.dmsolutions.ca/ _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Mike Adair
|
In reply to this post
by Nolte, Tim
Currently, there is a call to map.setViewOptions() registered as a map
loaded listener which sets the units for all widgets that register a "units' parameter with the map (CursorPos, ViewSize, measure, etc.). The ViewOptions widget is used to switch between units for all those widgets. It may make more sense for each widget to specify it's own units, and if a "ViewOptions" widget is required in the application, it should list the widgets under it's control? Mike > As far as the independent units for widgets, I did try using the <Units> > tag inside <Extension> but that didn't give me any different results. > The reason I asked this was that the MapGuide/Fusion example does have > this for the CursorPosition & ViewSize widgets. I want the > CursorPosition widget to be in decimal degrees (which I have already), > and the ViewSize widget to be in miles. > _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
Mike Adair
|
In reply to this post
by Paul Spencer-2
I'm starting to work on this again, so like Paul says, feedback would be
very helpful. What I have so far, is that the ApplicationDefinition would define multiple Map elements in the MapGroup element like so: <MapGroup id="multimap" xsi:type="MapType"> <Map xsi:type="MapGuideLayerType"> <Type>MapGuide</Type> <SingleTile>true</SingleTile> <Extension> <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan1.MapDefinition</ResourceId> </Extension> </Map> <Map xsi:type="MapGuideLayerType"> <Type>MapServer</Type> <SingleTile>true</SingleTile> <Extension> <MapFile>/ms4w/apps/gmap/htdocs/gmap75.map</MapFile> </Extension> </Map> </MapGroup> and the first one would become the baseLayer, the Type element would (in theory) accept any OpenLayers.Layer.* type and there would be a 1:1 mapping of OL layer properties in the <Extension> element. There remains some questions around the establishing a session and the LoadMap.php call for the various layer types and how to make it work for vector layers. I'll be setting up a sandbox for this work today. Mike Paul Spencer wrote: > It should be possible :) You will need to spend some quality time > with firebug probably, but in essence you can get access to the > OpenLayers.Map instance and then do whatever you want. I would > probably approach it like this: > > window.onload=function(){ > Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, > fusionInitialized); > Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError); > Fusion.initialize(); > } > > function fusionError(eventId, error) { > console.log('Fusion Error: '+error.toString(); > } > > function fusionInitialized(eventId) { > var map = Fusion.getWidgetById('Map'); // the id of the div > containing the map > var olMap = map.oMapOL; > var wms = new OpenLayers.Layer.WMS(/* parameters */); > olMap.addLayer(wms); > } > > You will probably run into difficulty with the whole baseLayer thing > in OpenLayers. By default, most tile-based layers want to be base > layers and you need to add isBaseLayer: false to the layer options > (4th arg to WMS layer, might be different in other layer types). > > You can also start Fusion without a map loaded and inject a baseLayer > using this method, but then a whole bunch of things won't really work > - for instance a lot of widgets only get enabled after a map has loaded. > > Some feedback on *how* this should work would be appreciated. If you > have a particular use case and would like to be able to set things up > in a particular way, that would be very useful to the developers as we > plan out exposing more OpenLayers stuff. > > Cheers > > Paul > > On 16-Jul-08, at 1:42 AM, David Percy wrote: > >> Paul, thanks for the explanation on the tiling. >> >> I've actually been waiting to use and contribute to Fusion until the >> tiling was in place, as we currently use kamap for our tiling engine >> for the US geological survey, and it really helps. We are just >> working with Mootools and Openlayers, but I'd be happier if we were >> contributing to an active project, like Fusion, since that's the open >> source spirit. >> >> Is there a way to "wire" the unsupported Openlayers layer types into >> a Fusion app? It doesn't seem like it should be too difficult, but I >> was worried about making things hard to migrate once the Fusion >> framework supports it. >> >> I'd appreciate any thoughts you (or others on the PSC) have on this. >> Cheers, >> Percy >> >> Paul Spencer wrote: >>> Hi Tim, >>> you can get a Fusion application to look essentially like that >>> application using mapserver. The tiling capability on the client >>> side is implemented by OpenLayers, so there is nothing magically >>> mapguide about it. However, there is no support in the >>> ApplicationDefinition to let you define a tiled mapserver layer. We >>> are working on supporting all the OpenLayers layer types through the >>> ApplicationDefinition for the 1.1 release but this work has not yet >>> been done. >>> Even when the necessary hooks in Fusion are available, you will >>> still need something on the server side to generate the tiles. You >>> can use mapserver to do this directly, but it is pretty inefficient >>> since mapserver will draw the same tile over and over again. What >>> you need is something that will cache tiles for you and serve them >>> from the cache if available. For this, we will be recommending >>> either the kaMap's tile.php or TileCache. >>> Cheers >>> Paul >>> On 14-Jul-08, at 4:22 PM, Nolte, Tim wrote: >>>> OK, I know this is probably wishful thinking. AS I've looked at the >>>> MapGuide live app gallery. And specifically the following demo: >>>> >>>> >>>> http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php >>>> >>>> I would like to get Fusion (1.0.6) functioning and looking like that >>>> demo but using UMN MapServer. Is this even possible? Something I'm >>>> also >>>> wondering about is the Tiled AJAX sample. Is the tiling something >>>> specific and built in to MapGuide? I'm assuming the tiling is >>>> something >>>> on the server side and nothing to do with Fusion? >>>> >>>> - Tim >>>> >>>> ---- >>>> Timothy J Nolte - [hidden email] >>>> Network Planning Engineer >>>> >>>> iPCS Wireless, Inc. >>>> 4717 Broadmoor Ave, Suite G >>>> Kentwood, MI 49512 >>>> >>>> Office: 616-656-5163 >>>> PCS: 616-706-2438 >>>> Fax: 616-554-6484 >>>> Web: www.ipcswirelessinc.com >>>> _______________________________________________ >>>> fusion-users mailing list >>>> [hidden email] >>>> http://lists.osgeo.org/mailman/listinfo/fusion-users >>> __________________________________________ >>> Paul Spencer >>> Chief Technology Officer >>> DM Solutions Group Inc >>> http://www.dmsolutions.ca/ >>> _______________________________________________ >>> fusion-users mailing list >>> [hidden email] >>> http://lists.osgeo.org/mailman/listinfo/fusion-users >> >> -- >> David Percy >> Geospatial Data Manager >> Geology Department >> Portland State University >> http://gisgeek.pdx.edu >> 503-725-3373 > > > __________________________________________ > > Paul Spencer > Chief Technology Officer > DM Solutions Group Inc > http://www.dmsolutions.ca/ > > _______________________________________________ > fusion-users mailing list > [hidden email] > http://lists.osgeo.org/mailman/listinfo/fusion-users > fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
|
percy-2
|
Paul and Mike, thanks for the enthusiastic response!
I'll will try to get some use case information to you next week! Cheers, Percy Mike Adair wrote: > I'm starting to work on this again, so like Paul says, feedback would be > very helpful. What I have so far, is that the ApplicationDefinition > would define multiple Map elements in the MapGroup element like so: > > <MapGroup id="multimap" xsi:type="MapType"> > <Map xsi:type="MapGuideLayerType"> > <Type>MapGuide</Type> > <SingleTile>true</SingleTile> > <Extension> > > <ResourceId>Library://Samples/Sheboygan/Maps/Sheboygan1.MapDefinition</ResourceId> > > </Extension> > </Map> > <Map xsi:type="MapGuideLayerType"> > <Type>MapServer</Type> > <SingleTile>true</SingleTile> > <Extension> > <MapFile>/ms4w/apps/gmap/htdocs/gmap75.map</MapFile> > </Extension> > </Map> > </MapGroup> > > and the first one would become the baseLayer, the Type element would (in > theory) accept any OpenLayers.Layer.* type and there would be a 1:1 > mapping of OL layer properties in the <Extension> element. There remains > some questions around the establishing a session and the LoadMap.php > call for the various layer types and how to make it work for vector layers. > > I'll be setting up a sandbox for this work today. > > Mike > > > > Paul Spencer wrote: >> It should be possible :) You will need to spend some quality time >> with firebug probably, but in essence you can get access to the >> OpenLayers.Map instance and then do whatever you want. I would >> probably approach it like this: >> >> window.onload=function(){ >> Fusion.registerForEvent(Fusion.Event.FUSION_INITIALIZED, >> fusionInitialized); >> Fusion.registerForEvent(Fusion.Event.FUSION_ERROR, fusionError); >> Fusion.initialize(); >> } >> >> function fusionError(eventId, error) { >> console.log('Fusion Error: '+error.toString(); >> } >> >> function fusionInitialized(eventId) { >> var map = Fusion.getWidgetById('Map'); // the id of the div >> containing the map >> var olMap = map.oMapOL; >> var wms = new OpenLayers.Layer.WMS(/* parameters */); >> olMap.addLayer(wms); >> } >> >> You will probably run into difficulty with the whole baseLayer thing >> in OpenLayers. By default, most tile-based layers want to be base >> layers and you need to add isBaseLayer: false to the layer options >> (4th arg to WMS layer, might be different in other layer types). >> >> You can also start Fusion without a map loaded and inject a baseLayer >> using this method, but then a whole bunch of things won't really work >> - for instance a lot of widgets only get enabled after a map has loaded. >> >> Some feedback on *how* this should work would be appreciated. If you >> have a particular use case and would like to be able to set things up >> in a particular way, that would be very useful to the developers as we >> plan out exposing more OpenLayers stuff. >> >> Cheers >> >> Paul >> >> On 16-Jul-08, at 1:42 AM, David Percy wrote: >> >>> Paul, thanks for the explanation on the tiling. >>> >>> I've actually been waiting to use and contribute to Fusion until the >>> tiling was in place, as we currently use kamap for our tiling engine >>> for the US geological survey, and it really helps. We are just >>> working with Mootools and Openlayers, but I'd be happier if we were >>> contributing to an active project, like Fusion, since that's the open >>> source spirit. >>> >>> Is there a way to "wire" the unsupported Openlayers layer types into >>> a Fusion app? It doesn't seem like it should be too difficult, but I >>> was worried about making things hard to migrate once the Fusion >>> framework supports it. >>> >>> I'd appreciate any thoughts you (or others on the PSC) have on this. >>> Cheers, >>> Percy >>> >>> Paul Spencer wrote: >>>> Hi Tim, >>>> you can get a Fusion application to look essentially like that >>>> application using mapserver. The tiling capability on the client >>>> side is implemented by OpenLayers, so there is nothing magically >>>> mapguide about it. However, there is no support in the >>>> ApplicationDefinition to let you define a tiled mapserver layer. We >>>> are working on supporting all the OpenLayers layer types through the >>>> ApplicationDefinition for the 1.1 release but this work has not yet >>>> been done. >>>> Even when the necessary hooks in Fusion are available, you will >>>> still need something on the server side to generate the tiles. You >>>> can use mapserver to do this directly, but it is pretty inefficient >>>> since mapserver will draw the same tile over and over again. What >>>> you need is something that will cache tiles for you and serve them >>>> from the cache if available. For this, we will be recommending >>>> either the kaMap's tile.php or TileCache. >>>> Cheers >>>> Paul >>>> On 14-Jul-08, at 4:22 PM, Nolte, Tim wrote: >>>>> OK, I know this is probably wishful thinking. AS I've looked at the >>>>> MapGuide live app gallery. And specifically the following demo: >>>>> >>>>> >>>>> http://data.mapguide.com/mapguide/phpviewersample/ajaxviewersample.php >>>>> >>>>> I would like to get Fusion (1.0.6) functioning and looking like that >>>>> demo but using UMN MapServer. Is this even possible? Something I'm >>>>> also >>>>> wondering about is the Tiled AJAX sample. Is the tiling something >>>>> specific and built in to MapGuide? I'm assuming the tiling is >>>>> something >>>>> on the server side and nothing to do with Fusion? >>>>> >>>>> - Tim >>>>> >>>>> ---- >>>>> Timothy J Nolte - [hidden email] >>>>> Network Planning Engineer >>>>> >>>>> iPCS Wireless, Inc. >>>>> 4717 Broadmoor Ave, Suite G >>>>> Kentwood, MI 49512 >>>>> >>>>> Office: 616-656-5163 >>>>> PCS: 616-706-2438 >>>>> Fax: 616-554-6484 >>>>> Web: www.ipcswirelessinc.com >>>>> _______________________________________________ >>>>> fusion-users mailing list >>>>> [hidden email] >>>>> http://lists.osgeo.org/mailman/listinfo/fusion-users >>>> __________________________________________ >>>> Paul Spencer >>>> Chief Technology Officer >>>> DM Solutions Group Inc >>>> http://www.dmsolutions.ca/ >>>> _______________________________________________ >>>> fusion-users mailing list >>>> [hidden email] >>>> http://lists.osgeo.org/mailman/listinfo/fusion-users >>> >>> -- >>> David Percy >>> Geospatial Data Manager >>> Geology Department >>> Portland State University >>> http://gisgeek.pdx.edu >>> 503-725-3373 >> >> >> __________________________________________ >> >> Paul Spencer >> Chief Technology Officer >> DM Solutions Group Inc >> http://www.dmsolutions.ca/ >> >> _______________________________________________ >> fusion-users mailing list >> [hidden email] >> http://lists.osgeo.org/mailman/listinfo/fusion-users >> > -- David Percy Geospatial Data Manager Geology Department Portland State University http://gisgeek.pdx.edu 503-725-3373 _______________________________________________ fusion-users mailing list [hidden email] http://lists.osgeo.org/mailman/listinfo/fusion-users |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |