Go Shopping Cart Site Map User Panel and Admin English Home

Home > Easypano Forum    Easypano Forum has been upgraded.

Easypano Forum


Welcome Guest Register Login Search The Forum Display List of Forum Members
 All Forums
  Tourweaver
       Forum Search Results
 
Subject Topic: Java / Google Maps Post Reply Post New Topic
Message posted by chapt0r on May-23-2008 at 1:26pm
View chapt0r's Profile Profile   Search for other posts by chapt0r Search   Visit chapt0r's Homepage www   Quote chapt0r Quote   Send Private Message Send Msg  
chapt0r
Standard Member
Standard Member
 
March-19-2007
44 Posts
Heya,

I have seen this on a few tours now, and I think it is on one of the featured tours on easypano. Where you click a link inside the tour and it brings up the google map with the location placed in there. Is there a tutorial on this, or any documentation that I could be pointed to?

I am thinking that you insert the address into a call to google and then it takes care of it, but I am sure I am a bit off.

Appreciate the time

W

Message posted by bruxist on May-25-2008 at 2:02am
View bruxist's Profile Profile   Search for other posts by bruxist Search   Quote bruxist Quote   Send Private Message Send Msg  
bruxist
Standard Member
Standard Member
New Zealand
February-12-2008
88 Posts

Hi chapt0r,
It is quite simple once you get the hang of it. So here we go:

  • You need to have a Google Maps login ID first, this is free to get from their web site: Google Maps (Top right is a "sign in" link, follow this and create a new account if you do not have one already). Keep this internet browser window open for now.
  • Go to TW and add your hotspot (or button, or text - which ever you prefer) to your tour. This can be placed on a cylindrical or still image, or outside the scene window, on your projects main content background.
  • In the bottom of your MainWindow (Properties and Actions) click the Actions tab.
  • With your hotspot active (highlighted, or selected - so that the dashed lines appear around it) click: Misc then Link URL.
  • A window appears (Link URL) with two boxes to fill in. Keep this open and we will come back to it.
  • From your internet browser, log in to Google Maps, and mark (pin of flag) the location on your map that you want to reference in your TW project.
  • Then at the top right of your map page is a link entitled "Link to this page" - click this.
    A window pops up, the first box says "Paste link in email or IM". You will need to copy the contents of this box (the complete http "string") and paste it into the TW Link to URL window "URL" box that we left open a minute ago.
  • The second box (Destination) allows you to link to your new Google Maps location using a method of you choice, I use "_blank" to launch the map in a new browser window, but you can use "_self" if you want the map to be in the same browser window that you are viewing your tour from. Try them and see which you prefer.
  • Save and test. Oh and don't forget some "hint text" to explain where you link is going to - it is the professional thing to do.

Hope this helps you get started. Come back if you get stuck...


Message posted by realtor jerry on May-25-2008 at 8:37am
View realtor jerry's Profile Profile   Search for other posts by realtor jerry Search   Visit realtor jerry's Homepage www   Quote realtor jerry Quote   Send Private Message Send Msg  
realtor jerry
Avatar
Platinum Member
Platinum Member
United States
April-22-2007
880 Posts
Great tutorial bruxist. I think I'll start using the map link on my real estate tours. I'm guessing the same can be done with Google earth?

-------------
Nikon D300, D3s, Nikon 10.5 lens, RingT105N+Footplate+MrotatorTCPs, Giottos MT9261 Tripod, Manfrotto 410 Jr geared head.

If you know the "secret" then everyday is a good day!

Message posted by bruxist on May-25-2008 at 10:30pm
View bruxist's Profile Profile   Search for other posts by bruxist Search   Quote bruxist Quote   Send Private Message Send Msg  
bruxist
Standard Member
Standard Member
New Zealand
February-12-2008
88 Posts

It appears you can. First you need to know the difference:

(I'll call Google Earth GE in this post, and Google Maps, GM.)

The thing with GE is that you need to have the application software loaded on your PC before you can view a GE place marker. That is where GM and GE differ - you can view GM place markers in any internet browser. As most people have one, you reach 100% of your target audience with GM.

GE and GM use a file format called KML. If you are interested in knowing more, it is best to visit one of Googles web sites (like this one: Google Code).

Until today, I was not aware of a way to link a browser URL to a specific .kml location in GE. I did know that once you had the GE software loaded on your PC, that you get an icon appear in your GM user space and then you can view placemarkers in GE (you click the icon and it lauches GE on your PC). This way, if your client has GE software on thier PC, they can already view your GM place marker in GE.

But what about linking directly to GE? After your reading your question I went on the hunt again and found this information: Google Maps 2 Google Earth. So it can be done, although it still requires that you have the GE software on your PC.

I tried it. My test was to create a new map and place marker in my user space on GM. I then copied the URL link as before and pasted this into my TW hotspot with "Link URL" action. So far so good!
I then added the magic ingredients &output=kml to the end of the http string and published it.
The result: From my TW tour I click on my hotspot. Where as before it would launch an internet browser and show me a Google Map location, it now brings up a window (File Download) and enables me to open, save, or cancel the .kml file.
If I choose open, it lauches the associated software (in my case Google Earth - there are others on the market) and I see my place marker inside GE - Great!

So, yes it can be done. You just need to do some homework to see if there is any advantage for you to see place markers in GE rather than in GM.
Remember - not everyone has Google Earth loaded on their PC (it's around 12Mb in size). And of course be sure to check out any commercial licensing issues if you are using either of these products for commercial purposes.

Thanks for the question - I learnt something new today as well!


Message posted by bruxist on May-28-2008 at 1:29am
View bruxist's Profile Profile   Search for other posts by bruxist Search   Quote bruxist Quote   Send Private Message Send Msg  
bruxist
Standard Member
Standard Member
New Zealand
February-12-2008
88 Posts

I have a new option to display Google Maps which might interest any Flash savvy people out there.

I was thinking along the lines of using TW's image pop-up component with a swf that contains a Google Map extract. Then I could link this to a hotspot from within any pano in my tour.

How can I achieve this?

By using the free AFComponents Gmap component (a Flash plug-in).

Using Flash and this plug-in, I have successfully created my "Google Map swf" and I can insert this into the image holder in TW.
This means I can control the size of the map and I do not have to launch any more browser windows, or link to any html iframes; It is all contained within my TW tour - Neat!
I am not sure on the commercial usage of this product but for personal projects it looks useful.

Now that there is a Google Flash API released, maybe there will be more options like this one in the near future.


Message posted by bruxist on July-08-2008 at 12:45am
View bruxist's Profile Profile   Search for other posts by bruxist Search   Quote bruxist Quote   Send Private Message Send Msg  
bruxist
Standard Member
Standard Member
New Zealand
February-12-2008
88 Posts

Following on: I see that there is a new Google Earth Plugin which adds the ability to view Google Earth along with Google Maps that are embedded in web pages.

More information here: http://code.google.com/apis/maps/documentation/services.html#Earth

It adds an extra button "Earth" along side the normal Map, Satellite, Hybrid controls. Currently there are limitations but I am sure this will rapidly change.


Message posted by prb16 on July-08-2008 at 7:29am
View prb16's Profile Profile   Search for other posts by prb16 Search   Visit prb16's Homepage www   Quote prb16 Quote   Send Private Message Send Msg  
prb16
Avatar
Standard Member
Standard Member
Spain
May-29-2006
138 Posts
Another option is to embed the GM in to the web page the tour opens in like here

Paul

-------------
Regards,

Paul.

360Turismo

Message posted by martin360fun on September-24-2008 at 10:18pm
View martin360fun's Profile Profile   Search for other posts by martin360fun Search   Quote martin360fun Quote   Send Private Message Send Msg  
martin360fun
Avatar
Standard Member
Standard Member
Argentina
September-24-2008
4 Posts
Hi bruxist,

How do you build your googlemap.swf? Can you give us some tips, it sound really cool.

Regards,
Martin

-------------
MC

Message posted by bruxist on September-25-2008 at 9:13pm
View bruxist's Profile Profile   Search for other posts by bruxist Search   Quote bruxist Quote   Send Private Message Send Msg  
bruxist
Standard Member
Standard Member
New Zealand
February-12-2008
88 Posts

Hi Martin,

Background
I used AFComponent's free "GMap 2" tool and Adobe Flash. AFC also sell the UMap component that Smooth mentioned in an earlier post. I used GMap because (at that time) it was free (it was a test) and it utilized Google Maps rather than Microsoft Virtual Earth. It also runs on AS2 rather than AS3 (use UMap if AS3 is required). The way the GMap component retrieves the data can be an issue. GMap goes via an intermediate server to pull map tiles from Google. This can choke under large demand. Check to see if it fits your own requirements (and licence requirements). UMap is different so you would need to look into how it retrieves data.

Adobe Flash
Download the AFC GMap component and install it in Flash. It comes with a help document and example project. Create two layers: one for code the other for the GMap component.
In the GMap layer, drag the GMap component onto the stage.
On the code layer you need it create your window and positional requires. I followed the tutorials from their website (quite straight forward if you are familar with Flash). To get the Lat/Lng you'll need to truncate the Google Maps coordinates as they are too long. Get these from Google Maps as mentioned above in the step by step to getting URL.

Example actionscript code (AS2)

gMap.setMapType("satellite");
gMap.setCenter({lat:-41.258997, lng:174.865925},12);

var point =
gMap.addPoint({lat:-41.258997, lng:174.865925, name:"Matiu/Somes Island, Wellington", description:"Trig Point(56m)", radius:10, strokeRGB:0x000000, strokeThickness:1, fillRGB:0xFFFF00});
point.show();

var posControl =
gMap.addControl(gMap.GPositionControl({visibility:"off"}));
posControl.show();

var zoomControl =
gMap.addControl(gMap.GZoomControl({display:"expanded"}));
zoomControl.align = "top-left";

var typeControl =
gMap.addControl(gMap.GTypeControl({visibility:"off"}));
typeControl.show();

function eventResponder(evnt){
  evnt.target.openInfoWindow({title:evnt.target.name, content:evnt.target.description, contentAutoSize:true, titleRGB:0x000000, contentRGB:0x666666, radius:6, stroke:false, fillRGB:0xFFFF00, fillAlpha:90});
}

// add event listener
point.addEventListener("GEOMETRY_ON_RELEASE", eventResponder);

Publish the finished project (or test it) and you should have a swf file ready to use in a pop up window in your TW tour - that easy!

All this info can be found on the AFC website and Forum.

Hope this helps.


Message posted by martin360fun on October-31-2008 at 7:55pm
View martin360fun's Profile Profile   Search for other posts by martin360fun Search   Quote martin360fun Quote   Send Private Message Send Msg  
martin360fun
Avatar
Standard Member
Standard Member
Argentina
September-24-2008
4 Posts
Great! Thanks it was really helpfull, I am using them and it works perfect, really easy to use...

Regards, Martin

-------------
MC

If you wish to post a reply to this thread you must first Login
If you are not already registered you must first register

Forum Jump Page of 2 Post Reply Post New Topic
Printer Friendly Version Printable version

Powered by: - Web Wiz Guide Discussion Forums