<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [mapguide-users] DWF Viewer App</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR></HEAD>
<BODY dir=ltr>
<DIV dir=ltr align=left><SPAN class=660410612-22112006><FONT face=Arial
color=#0000ff size=2>The MapGuide DWF Viewer surround requires being connected,
just like AJAX. You are viewing a dynamic EMap DWF - every time you
change the view you request an updated map from the server. Changing the
search to call back to the server does not break
anything.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=660410612-22112006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=660410612-22112006><FONT face=Arial
color=#0000ff size=2>For the disconnected case you create EPlot DWFs.
These contain static data and do not require a server connection. A
disadvantage is that the MapGuide surround doesn't work with these
EPlots.</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Chris Tallman
[mailto:ctallman@innomap.com] <BR><B>Sent:</B> Wednesday, November 22, 2006 1:04
PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] DWF Viewer App<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><SPAN class=861214311-22112006><FONT face=Arial
color=#0000ff size=2>Ok we are using .net for our development. Juan I
think your solution might be the best at this time, it would definitely get me
around the bug that Andrew talked about. Walt if the DWF Viewer surround
had to request the zoom extent from the server that would defeat the use of the
disconnected environment.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=861214311-22112006></SPAN><SPAN
class=861214311-22112006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=861214311-22112006><FONT face=Arial
color=#0000ff size=2>Chris</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Walt Welton-Lair
[mailto:walt.welton-lair@autodesk.com] <BR><B>Sent:</B> Tuesday, November 21,
2006 5:37 PM<BR><B>To:</B> users@mapguide.osgeo.org<BR><B>Subject:</B> RE:
[mapguide-users] DWF Viewer App<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Seems like the right thing to do then is to have the DWF Viewer surround
also go to the server to find the correct extent to zoom to.</DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT size=2>-----Original Message----- <BR><B>From:</B> Andrew
DeMerchant [mailto:andrew.demerchant@gemtec.ca] <BR><B>Sent:</B> Tue
11/21/2006 10:39 PM <BR><B>To:</B> users@mapguide.osgeo.org <BR><B>Cc:</B>
<BR><B>Subject:</B> Re: [mapguide-users] DWF Viewer App<BR><BR></FONT></DIV>
<P><FONT size=2>I had thought there was an artifact for it (which is why I
didn't add it<BR>myself)...but I dont' see it.<BR><BR>Andrew<BR><BR><BR>Alain
Lebatard wrote:<BR>><BR>> The reason for the DWF search problem is that
the viewer surround uses<BR>> the DWF viewer API to select or zoom to a
feature, but the viewer only<BR>> knows about the features that are in the
visible extent of the map.<BR>> The AJAX viewer doesn’t have this problem
because since it virtually<BR>> doesn’t know anything about the features
displayed, it has to<BR>> systematically go to the server to perform
selection or zoom.<BR>><BR>> I remember that bug from before MapGuide
shipped. We probably didn’t<BR>> fix it then for lack of time, but I think
there is an artifact logged<BR>> for it.<BR>><BR>>
Alain<BR>><BR>>
------------------------------------------------------------------------<BR>><BR>>
*From:* Andrew DeMerchant [<A
href="mailto:andrew.demerchant@gemtec.ca">mailto:andrew.demerchant@gemtec.ca</A>]<BR>>
*Sent:* Tuesday, November 21, 2006 12:46 PM<BR>> *To:*
users@mapguide.osgeo.org<BR>> *Subject:* Re: [mapguide-users] DWF Viewer
App<BR>><BR>> I mainly use the DWF viewer (still not a fan of the AJAX
one...I miss<BR>> the quick panning and zooming with my mouse wheel too
much!), but my<BR>> app supports both (the user is sent to the right one
according to a<BR>> browser check)...I don't know about searching offline,
but I can<BR>> certainly tell you that you can search dwf features just the
same. I'm<BR>> using the search tool from MapGuide Studio.<BR>><BR>>
It works fine, except for 1 serious bug.....Say you're zoomed in so<BR>>
that not all features of your map are visible (some are outside your<BR>>
extents)...If you then search for features, you'll get a list. Click<BR>>
on the item you want, and you're supposed to be taken to that feature<BR>>
(the map is meant to center on that feature)......in dwf viewer, this<BR>>
wouldn't work. It ONLY works in the dwf viewer if the thing that you<BR>>
clicked on (from the list) is already on the screen somewhere.<BR>><BR>>
If you can live with this bug, then likely all you have to do is<BR>>
modify your URL. I've done almost all of my project with MapGuide<BR>>
Studio, and have set it up to work with either viewer....all I have to<BR>>
do to switch viewers is to change "mapviewerdwf" in my url to<BR>>
"mapviewerajax".<BR>><BR>> Hope that helps!<BR>><BR>><BR>>
Andrew<BR>><BR>><BR>><BR>> Chris Tallman wrote:<BR>><BR>> I
know the DWF Viewer app is not very popular right now because it<BR>>
requires an install. However, we are working on an app for EMS in<BR>>
vehicle mapping. I need to be able to search for an address in the DWF<BR>>
map while its disconnected from the internet or network. Has anyone<BR>>
messed with this? Is it even possible to search features in the DWF<BR>>
Map? I have a feature source that has the addresses, and I've written<BR>>
an app to search the map if I'm using the AJAX viewer, now I need that<BR>>
same functionality in the DWF viewer. If anyone has an idea on how to<BR>>
do this I am all ears.<BR>><BR>> Thanks,<BR>><BR>><BR>> **Chris
Tallman**<BR>> 260.356.9074<BR>><BR>> --<BR>><BR>>
<BR>><BR>> *Andrew DeMerchant*<BR>>
*Computer Technologist*<BR>> ph.1-877-2GEMTEC x.163<BR>> fax
506-453-9470<BR>><BR>> /GEMTEC Limited <<A
href="http://www.gemtec.ca">http://www.gemtec.ca</A>><BR>> /191 Doak
Road<BR>> Fredericton, NB, Canada<BR>> E3C
2E6<BR>><BR><BR>---------------------------------------------------------------------<BR>To
unsubscribe, e-mail: users-unsubscribe@mapguide.osgeo.org<BR>For additional
commands, e-mail:
users-help@mapguide.osgeo.org<BR><BR></FONT></P></BLOCKQUOTE></BODY></HTML>