ThinkGeo.com    |     Documentation    |     Premium Support

Can i use OpenLayers in Think GEO

hi ,

I use Think GEO components to load polygon , shape file and show maps

 Now my question is can i use Open Layers (openlayers.org/) with in think geo map??

if can , how do it?



thanks

Hi Alireza, 
  
 Our WebEdition client side is created by Openlayers, so all openlayers function can be used in our WebEdition. 
  
 Regards, 
  
 Don

Hi Don,



Do you have sample ??



for example : i load data (polygon, inmemoerylayer , …) in Think GEO , Now how can i use OpenLayers client side function  ??



Thanks

Hi Alireza, 
  
 Could you please describe that more detail, I want to know how do you want to load data here? 
  
 I think this link should be very helpful for you: thinkgeo.com/forums/MapSuite/tabid/143/aft/5616/Default.aspx 
  
 Regards, 
  
 Don 


Can you help me, please?



for example in this OpenLayers sample: openlayers.org/en/v3.11.2/examples/popup.html

how can i load map with Think GEO and show popup with openlayers funcation??



in the other words, how can i merge these capabilities??



thanks

Hi Alireza, 
  
 The code as below shows how to find the click point and get its coordinate, the sample from OpenLayers looks put the result in a DIV, you can also implement that follow the sample. 
  
   <script language=“javascript” type=“text/javascript”>
        var OnMapCreated = function (map) {            
            map.events.register(‘click’, map, showContent);
        }

        var showContent = function (evt) {
            var lonlat = this.getLonLatFromViewPortPx(evt.xy);            
            alert(lonlat);
            // Add your JS code here to show the content DIV
        }
    </script>
 
  
 And we have many related topic, view them should be helpful. 
  
 thinkgeo.com/forums/MapSuite/tabid/143/aft/7855/Default.aspx 
 thinkgeo.com/forums/MapSuite/tabid/143/aft/6348/Default.aspx 
 thinkgeo.com/forums/MapSuite/tabid/143/aft/11087/Default.aspx 
 thinkgeo.com/forums/MapSuite/tabid/143/aft/5616/Default.aspx#HowToUse 
  
 Regards, 
  
 Don