thientung / winforms-geplugin-control-library

Automatically exported from code.google.com/p/winforms-geplugin-control-library
GNU General Public License v3.0
0 stars 0 forks source link

Google Maps Road Support #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What should this feature enhancement do?
I have a need to use the Google Maps Road Layer but wish to use it via the 
winforms-geplugin, So I'm wondering is it possible to have both the GE Map in a 
div and the Google Maps V3 Api in another Div and then everything that gets 
loaded on the GEPlugin, also gets routed to the Google Maps Layer. i.e if i put 
a place mark in the GE Plugin the information also gets sent to the Google Maps 
Api. I thought this would be a good idea as then your code will work with both 
and people can then choose to display both maps or one.
I'm also happy to help out with this feature. I have tried putting both Maps on 
the test applicatgion and it seems to load both of them ok but that's as far as 
i got.

Are there any known workarounds that produce the similar results?
Not that I have seen.

Please provide any additional information below.

Original issue reported on code.google.com by ali....@gmail.com on 18 Nov 2011 at 10:20

GoogleCodeExporter commented 9 years ago
This is something I have toyed with...There is a simple workaround, however it 
breaks a few things! 

If you wanted to try it out - simply open the file Plugin.html and replace the 
method jsCreateInstance with the following.

var jsCreateInstance = function(name)
    {
      document.getElementById('map3d').innerHTML = '';
      map = new GMap2(document.getElementById('map3d'));
      map.setCenter(new GLatLng(0, 0), 2);   
      map.enableScrollWheelZoom();
      map.enableContinuousZoom();
      map.addMapType(G_SATELLITE_3D_MAP);
      map.setMapType(G_SATELLITE_3D_MAP);
      map.setUI(map.getDefaultUI());
      map.getEarthInstance(function(ge) {
        initCallback_(ge);
      });

      return name.toLowerCase();
     }

Original comment by fraser.c...@gmail.com on 13 Dec 2011 at 5:09

GoogleCodeExporter commented 9 years ago
Thinking of including Google Maps support as an option in the next commit - 
thanks!

Original comment by fraser.c...@gmail.com on 8 Feb 2012 at 6:23

GoogleCodeExporter commented 9 years ago
I have decided to keep this project 100% Earth Api.

Maps integration may be something in the future - once the Maps and Earth Apis 
are a bit more coherently tied to each other. At the moment there is a lot of 
work to make sure that objects in one api are present in the other. Coding for 
all this would totally dominate this project.

I may well however start and brand new project that is based on the V3 maps api 
for managed code.

Thanks for your input ali.

Fraser

Original comment by fraser.c...@gmail.com on 11 Feb 2012 at 12:16