Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

02 Jun 2012, 06:26

tschortsch wrote:I'm quite curious how to set up the link to use colorbox for this purpose!
This is a bit ahead of time, but I think it should be a fairly simple hack, so let me help you out. First of all, you need to edit the file index.gallery.phtml, and locate the following code:
Code
function launchColorBox(url){
	$.colorbox({href:"imagevue.php?a=map&path="+url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
Add a new function myColorBox:
Code
function launchColorBox(url){
	$.colorbox({href:"imagevue.php?a=map&path="+url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
function myColorBox(url){
	$.colorbox({href:url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
Then, for your textpage link, you should be able to use the following:
Code
<a href="javascript:myColorBox('http://maps.google.at/maps?saddr=shanghai&daddr=beijing+to:qingdao+to:Xi'an,+Shaanxi,+China+to:shanghai&hl=de&ll=35.550105,115.202637&spn=10.307114,20.01709&sll=35.56798,115.202637&sspn=10.304827,20.01709&geocode=FbmJ3AEdqIo9BykzPPWxQHCyNTGhZMMjlBKVAg%3BFdbjYAIddTzwBim5LBTnllLwNTGKqQ-vIFZiuQ%3BFZRXJgIdKOQsBylr8PiC1Q-WNTHz8kxh-oJNYQ%3BFZvXCgIdjVt-Bim5F6wi6XljNjEuWJSn_WbUhQ%3BFbmJ3AEdqIo9BykzPPWxQHCyNTGhZMMjlBKVAg&mra=ls&t=m&z=6')">Rom</a></p>
Keep in mind, it will simply embed the link as you see it, into the colorbox.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

02 Jun 2012, 06:27

alexhenes wrote:I am fairly certain I have the latest flash... should have 2.8 beta 6
Let me check this weekend if it could be a bug if other EXIF data is missing ... I will get back to you.
 
tschortsch
Experienced
Posts: 150
Joined: 01 Apr 2010, 17:23

Re: View on the Map

02 Jun 2012, 07:51

mjau-mjau wrote:This is a bit ahead of time, but I think it should be a fairly simple hack, so let me help you out.
Thanks a lot for your help! It works like a charm! :D

May I add for other interested users that you have to copy the iframe url (src="...") from google maps as the normal link does not work (blank page in colorbox)! I guess it is because of the missing "output=embed" code at the end of the normal link.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

04 Jun 2012, 04:33

alexhenes wrote:I am fairly certain I have the latest flash... should have 2.8 beta 6
I have tested this specific image on our server, and it works fine ... See the map link:
https://www.photo.gallery/demo/x2/#/Vari ... nd-012.JPG

I also tested this after disabling EXIF in settings, so that only GPS data displays in output, and it still works.

I am a bit clueless as to why its not working for you right now, so it turns into elimination methods (it has to be something).
# Your SWF is not updated, or for some reason it is cached on some proxy.
# You have some unknown settings combo or something preventing map link from displaying. I cant see anything.

Optionally, you could try this:
A) Go to settings, disableImageMeta ... change it to false (you currently have it set to true). Check if anything changes.
B) If the above fails, try to upload the default release in a test folder, and add your GPS image ... Does it work? Yes -> something with your settings. No -> Something with your server.
C) Try to download a few of the images from the link at the top, and add them to your folder. Do they work?
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: View on the Map

05 Jun 2012, 21:38

ok... looks like there is something wrong with my settings... I can get the map link to display in my test environment... test.merelyafleshwound.com
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
User avatar
alexhenes
Experienced
Topic Author
Posts: 568
Joined: 28 Sep 2006, 16:13

Re: View on the Map

05 Jun 2012, 23:58

alright... I found where the bug is...

in order for the view on map link to show up... exif must be selected in either text1 or text2 of the image. text1 or text2 does not need to be enabled... but exif must be selected in one of these sections. exif select in text3 has no bearing on whether the view on map link displays or not.

would be nice to fix this as I moved some text around so I could display view on map but not exif info.

is it possible to enable the mouse wheel to zoom in and out on the map?
Alex
https://www.merelyafleshwound.com
https://www.goldenbikeshop.com
 
localhost
Experienced
Posts: 158
Joined: 20 Sep 2011, 07:09

Re: View on the Map

08 Jun 2012, 11:44

mjau-mjau wrote: It would be cool to add map in a nice overlay window, but this might need to wait for Imagevue X2.8.1 in May.
This! It will be awesome....

If it is overlay, can the map be resize to the size of the image (eg... image size 900px on the long end... map will be 900px as well)
Is it possible to resize the current pop-up MAP?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

09 Jun 2012, 06:15

alexhenes wrote:alright... I found where the bug is...

in order for the view on map link to show up... exif must be selected in either text1 or text2 of the image. text1 or text2 does not need to be enabled... but exif must be selected in one of these sections. exif select in text3 has no bearing on whether the view on map link displays or not.

would be nice to fix this as I moved some text around so I could display view on map but not exif info.
Thanks, I will look into this asap.
alexhenes wrote:is it possible to enable the mouse wheel to zoom in and out on the map?
This is fixed already in the latest release.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

09 Jun 2012, 06:20

localhost wrote:This! It will be awesome....
This is already working of course. See example:
https://www.photo.gallery/demo/x2/#/Vari ... /wheel.jpg
localhost wrote:If it is overlay, can the map be resize to the size of the image (eg... image size 900px on the long end... map will be 900px as well)
Is it possible to resize the current pop-up MAP?
I am not quite sure what you mean ... The map opens separately from the image, and at 90% of the available stage size. This so that the visitor can have a maximized map experience. Resize it to the size of the image? I dont get the point of this ... It means that small screens will cut of the map, and big screens will not be optimized. Resize the current pop-up map? What do you want it resized to?
 
tschortsch
Experienced
Posts: 150
Joined: 01 Apr 2010, 17:23

Re: View on the Map

09 Jun 2012, 16:09

mjau-mjau wrote:First of all, you need to edit the file index.gallery.phtml, and locate the following code:
Code
function launchColorBox(url){
	$.colorbox({href:"imagevue.php?a=map&path="+url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
Add a new function myColorBox:
Code
function launchColorBox(url){
	$.colorbox({href:"imagevue.php?a=map&path="+url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
function myColorBox(url){
	$.colorbox({href:url,width:"80%", height:"80%",iframe:true, transition: "none", open: true});
}
This is not possible in 2.8 beta 7, right? Can't find anything of the above code in the index.gallery.phtml!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

11 Jun 2012, 12:46

tschortsch wrote:This is not possible in 2.8 beta 7, right? Can't find anything of the above code in the index.gallery.phtml!
We keep changing things around, and for the latest release, you can just use
Code
javascript:lightbox(URL, {width:"90%", height:"90%",iframe:true});
Sorry about that, but we cleaned up the index document because it doesnt need to contain these functions. Instead you can call it with the above ... Final version arriving shortly.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

12 Jun 2012, 06:41

alexhenes wrote:alright... I found where the bug is...

in order for the view on map link to show up... exif must be selected in either text1 or text2 of the image. text1 or text2 does not need to be enabled... but exif must be selected in one of these sections. exif select in text3 has no bearing on whether the view on map link displays or not.

would be nice to fix this as I moved some text around so I could display view on map but not exif info.
Fixed, so this will also work for text3. Thanks for tracing this!
 
tschortsch
Experienced
Posts: 150
Joined: 01 Apr 2010, 17:23

Re: View on the Map

12 Jun 2012, 13:39

mjau-mjau wrote:We keep changing things around, and for the latest release, you can just use
Code
javascript:lightbox(URL, {width:"90%", height:"90%",iframe:true});
Sorry about that, but we cleaned up the index document because it doesnt need to contain these functions. Instead you can call it with the above ... Final version arriving shortly.
Your code did work in 2.8 beta 7 but only without the parameters in the curly brackets. Now with 2.8 beta 8 it does not work anymore, I get the "This content failed to load" message.. Do you have any ideas how to change the code?
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14452
Joined: 30 Sep 2006, 03:37

Re: View on the Map

12 Jun 2012, 14:07

tschortsch wrote:Your code did work in 2.8 beta 7 but only without the parameters in the curly brackets. Now with 2.8 beta 8 it does not work anymore, I get the "This content failed to load" message.. Do you have any ideas how to change the code?
Did you empty cache? May I see a link to this in example?
 
tschortsch
Experienced
Posts: 150
Joined: 01 Apr 2010, 17:23

Re: View on the Map

12 Jun 2012, 17:03

mjau-mjau wrote:Did you empty cache? May I see a link to this in example?
It's working now! Pasting or typing the code into the source editor led to following result after saving:
Code
, {width:" 90="" height:="" iframe:true="">
So I used " for quotation marks and it works:
Code
, {width:"90%", height:"90%",iframe:true});">
If you want to show google maps you have to choose the iframe source code with ;output=embed at the end otherwise lightbox will only show a blank page.