ThinkGeo.com    |     Documentation    |     Premium Support

Port app from web version

Hi,


  I have a working web application using ThinkGeo Web version.  Now I need to build a destop version.  How different are the two code bases?  I use some Javascript in the web version so I know that will not port directly, but what about the APIs?


 


Best Regards,


  Steven



Steven, 
  
 Thanks for your interests in Map Suite products. I have to say that the Map Suite Web control is widely different with Destkop Vesrion. The basic reason is that the client side of Web control is utilizing Open Layers which making things much easier. While, one thing probably is same, the server side is similar to Desktop control for both of them are utilizing Service Edition. And one thing, I want to bring out is that some features in Web control such as pop up, Marker etc are not implemented in Desktop Edition. 
  
 Any more questions just feel free to let us know. 
  
 Thanks. 
  
 Yale 


How does one implement a marker ( or and icon at a geopoint) then?

I wish you could Steven, been waiting on something like that in the code community area for quite some time now.  I would love a web edition marker ability in desktop edition.

Jake & Steven, 
  
 Thanks for your post. 
  
 We have a very simple sample showing how to draw an icon on the map control.  
 How Do I Dynamic Shapes\Highlight a feature on the map 
 How Do I\Features Find the distance from one feature to another 
  
 I think if you want, you could implement the adding icon to the MapMouseDown event similar to the sample effects in the Web Edition. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale 


Jake,


 We have several projects in the Code Community that show how to plot an icon on the map for the Desktop edition, included animated gif. Below are some examples of projects using icons for the Desktop.
code.thinkgeo.com/projects/show/adjustedscalingimage
code.thinkgeo.com/projects/show/animatedgif
code.thinkgeo.com/projects/show/draggingicon
code.thinkgeo.com/projects/show/mapshapes
 
Can you describe us more specifically what you are expecting to see in the Code Community? Thank you.

Val, I have looked at all of those, and they do portions of what the marker in the web edition does.  WHat I am looking for is the marker functionality seen on the web sample [Use Draggable Markers].  Also would like the context menus and popup features. 
  
 I believe those other samples are all using the EditInteractiveOverlay, which I think can handle all of the necessary functions, but it isn’t build for this specific need like the MarkerOverlays are for the web edition. 
  
 websamples.thinkgeo.com/

Jake,


Thanks for your post.
 
In destkop edition,  it did not include the Marker, ContextMenu, Popup, Tooltip natively, while all these functionalities should can be implemented with Desktop Edition with some events related with Mouse or Key involved. Probablly some of them can be found in this discussion forum.
 
Any more testing result let me know.
 
Thanks.
 
Yale

Yale, 
  
     That is pretty much what I was saying.  There is no Marker in desktop, you can create your own version with some of the functionality, but you don’t have the option to port web edition logic to desktop edition. 
  
     Is there a particular reason that markers didn’t make it into desktop edition?  Was it because we should be able to recreate that functionality on our own by monitoring events and extending different overlays? 
  
 Jake

Jake,


Thanks for your reply.
 
The Desktop Eedition implementations is completely different with Web Edition up to now. As you know , the Web Edition is architeched upon the OpenLayer, which is an open-source JavaScrip mapping library. The Marker is supported natively in OpenLayer. So it is easily intergrated into Web Edition easily. 
 
While in Desktop Edition which is architeched completely on the ServiceEdition. So some functionalities exists in Web Edition may not be built into Desktop Edition. While , as you may already know, the Service Edition is targeted as an easy library to extend. So you now find some functionalities existing in Web Edition may not exists directly in Desktop Edition, while most of them may be implemented via extending.
 
As far as I understanding, the following samples shows you how to do the draggable marker as web edition do if you changed the icon to marker icon.
code.thinkgeo.com/projects/show/draggingicon
 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

Yale, 
   Thanks for all the examples!  Another question: unless I want to put the map data on each client, I would need to use the Services Edition and let that serve the map data to the clients, correct?  I am thinking along the lines of a client/server solution with the Desktop Edition on the clients and the Services Edition on the Server.  If there is a better architectural solution, please let me know. 
  
 Best Regards, 
   Steven

Steven, 
  
 Using the Service Edition as service and consume the service in Desktop Edition or Web Edition is a great idea.  We have the WorldMapKit online service is implemented in this way and it works great. 
  
 Besides, I know that the WMS, WCF, Web Service are typical examples showing this logic, we have included some examples in our service edition package, take a look if you are interested. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale 


Are there any code examples of the Services Edition being used as a server, and the Desktop Edition as a client, that you could point me to?  


 


Steven



Never mind, I read the previous post detailing where some examples are.



Steven, 
  
 Thanks for your posts and letting us know your status. 
  
 Please feel free to let me know if any questions or concerns. 
  
 Thanks. 
  
 Yale