You are not logged in.

niconutsch

Intermediate

  • "niconutsch" started this thread

Posts: 128

Location: hall in tirol

Occupation: fotograph

  • Send private message

1

Sunday, April 1st 2012, 11:25am

VeMap

dear l. and g.


Im removeing all the google and bingmap flashstuff from my work.
so i started to implement VeMap.(no damned Key is necassery,and good dokumentation is available.http://msdn.microsoft.com/en-us/library/bb412424.aspx)




pleas have a look on the code. the black text is nearly original and works so far the green text is my useless try
to get it work for me.


Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  var map = null;  var pin1 = null; var pin2 = null;	 var pin3 = null;	 var pin4 = null;	 var pin5 = null;	 var center  = new VELatLong(47.283987,11.5046291);	 var portal  = new VELatLong(47.283374,11.503791);  var neubau  = new VELatLong(47.283681,11.504429);  var garten  = new VELatLong(47.28443,11.505266);  var internat= new VELatLong(47.284485,11.505467);
 function GetMap(){         map = new VEMap('myMap');         map.LoadMap(center, 1, VEMapStyle.Birdseye, false);         map.AttachEvent("onclick", todo);
var pincenter = new VEShape(VEShapeType.Pushpin,center);pincenter.SetCustomIcon("");map.AddShape(pincenter);
var pin1 = new VEShape(VEShapeType.Pushpin,portal);pin1.SetCustomIcon("");map.AddShape(pin1);		 var pin2 = new VEShape(VEShapeType.Pushpin,neubau);pin2.SetCustomIcon("");map.AddShape(pin2);	var pin3 = new VEShape(VEShapeType.Pushpin,garten);pin3.SetCustomIcon("");map.AddShape(pin3);	var pin4 = new VEShape(VEShapeType.Pushpin,internat);pin4.SetCustomIcon("");map.AddShape(pin4);
var points = new Array(portal,neubau,garten,internat);polyline = new VEShape(VEShapeType.Polyline, points);            polyline.HideIcon();polyline.SetLineColor(new VEColor(0,255,0,1));polyline.SetFillColor(new VEColor(0,0,255,0));polyline.SetLineWidth(15);map.AddShape(polyline);
timeOut();

function v1(){pin1.SetCustomIcon("");}function v2(){pin2.SetCustomIcon("");}function v3(){pin3.SetCustomIcon("");}function v4(){pin4.SetCustomIcon("");}

function todo(event)     {        if (event.elementID != null)        {       var shape = map.GetShapeByID(event.elementID);  var id = shape.GetID();  var id = event.elementID;        //alert (event.elementID);  if (event.elementID == 'msftve_1000_200001_10001')            {            v1();pano_01();timeOut();blur()        }  else if (event.elementID == 'msftve_1000_200002_10002')            {                v2();pano_02();timeOut();blur()            }  else if (event.elementID == 'msftve_1000_200003_10003')            {            v3();pano_03();timeOut();blur()                }  else if (event.elementID == 'msftve_1000_200004_10004')            {                v4();pano_04();timeOut();blur()                }
           else if (event.elementID == 'msftve_1000_200000_10000')            {               hideMap();blur()                }		        }     }} 

window.pano_01 =function(e)	{javascript:krpano().call('loadscene(scene_p01)')}window.pano_02 =function(e)	{javascript:krpano().call('loadscene(scene_p02)')}window.pano_03 =function(e)	{javascript:krpano().call('loadscene(scene_p04)')}window.pano_04 = function(e)     {javascript:krpano().call('loadscene(scene_p03)')}    

function hideMap() {$('#mapplane').hide('slow');}function timeOut(){setTimeout(hideMap, 2000);}$(document).ready(function() {$('#mapplane').show();$('#schalter').click(function () {$('#mapplane').toggle('slow');});
   

});
function krpano(){return document.getElementById('krpanoSWFObject'); }


  



Bug:ipad keyboard is opening when mapspots are clicked??????


here is the original code from bing (VeMap) get shape

thanks for looking with me
niconutschi

This post has been edited 4 times, last edit by "niconutsch" (Apr 9th 2012, 4:46pm)


niconutsch

Intermediate

  • "niconutsch" started this thread

Posts: 128

Location: hall in tirol

Occupation: fotograph

  • Send private message

2

Monday, April 9th 2012, 2:55pm

VEMAP working !!!!

VEMAP working !!!!

dear l,g, dear klaus

pleas have a look to my vemap implementation .

until now,only pano scenes can be called from virtualearth map.(no radar......).
but the solution work's good on ie,safari,chrome.... in the flash and js version.
no register key is necessary, and it's not very complicated to implement.

BUG: running on ipad: keyboard opens after clicking mapspot!!!!!!!!!(i would need help here)

LINK

next step will be to change mapspots after clicking the eq. panorama hotspot:there fore i have to call up an action, with is placed inside
the getMap()function: function v1();function v2();function v3();function v4()!!!!!!!see above code
is this possible or not????



mfg
niconutsch

Ps.: i have replaced the above code by the working one

This post has been edited 2 times, last edit by "niconutsch" (Apr 9th 2012, 4:35pm)


niconutsch

Intermediate

  • "niconutsch" started this thread

Posts: 128

Location: hall in tirol

Occupation: fotograph

  • Send private message

3

Thursday, April 12th 2012, 10:25am

vemap is working

dear com. dear klaus
wondering a bit, that not any one made a command to this idea.

it looks like the bing-VEmap solution is working now with no bugs. even on ipad

finaly:

4

Monday, April 16th 2012, 5:57pm

Hi,

yes, good work!
looks and works great!

but because it is html/js-based it has the same disadvantages that I explained here at 'Option 1':
Google Maps Flash-API Keys

but that doesn't means it is bad, it's a well solution of course!

best regards,
Klaus

niconutsch

Intermediate

  • "niconutsch" started this thread

Posts: 128

Location: hall in tirol

Occupation: fotograph

  • Send private message

5

Tuesday, April 17th 2012, 7:37am

api key

thanks for feedback klaus

because the s... wmode, ill use the vemap only to the html 5 version; and build in your bing map plugin.

but here my question.

Bing, and VEMAP code are nearly identical and the look is the same .but the vemap does not need a apikey

so why you used the Bing insted of Vemapcode for the new Bingmap plugin. is there any differenz between bing and vemap

mfg
klaus

6

Tuesday, April 17th 2012, 9:35am

Hi,
Bing, and VEMAP code are nearly identical and the look is the same .but the vemap does not need a apikey

so why you used the Bing insted of Vemapcode for the new Bingmap plugin. is there any differenz between bing and vemap
okay, it seems that 'VEMap' introduces even more confustion ;-)

but I will try to explain:

  1. VEMaps = Virtual Earth Maps

  2. VEMaps = A service from Microsoft

  3. 'Virtual Earth Maps' was renamed to 'Bing Maps' by Microsoft when they introduced the Bing Search Machine

  4. That means: VEMaps == Bing Maps (the same map)

  5. The API Key was introduced with Bing Maps and also in Version 6 of the VEMaps JS-API (see SetCredentials) but it seems for backward-compatibility that old API is still working without key.

  6. The 'VEMaps Class' that was used here is a JS-API (no a Flash-API and not a Tile-Access-API!) for the VEMaps service.

  7. The krpano Bing Maps Plugin uses the 'Direct Tile Access-API' from Bing Maps to be able to use the map tiles directly inside the Flash pano (by using the Openscales API for loading and display the tiles). And this API needs the Bing-Key. Using the JS-API isn't possible for that kind of usage as direct Google Maps Plugin replacement.
    Please see here at 'Option 1' for the details: Google Maps Flash-API Keys

See also here:
http://msdn.microsoft.com/en-us/library/ee692182.aspx
http://social.msdn.microsoft.com/Forums/…73-0d3ac75a2397

Best regards,
Klaus