Strict Standards: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/18/d163655616/htdocs/forum/viewtopic.php on line 943

Strict Standards: getdate(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EST/-5.0/no DST' instead in /homepages/18/d163655616/htdocs/forum/viewtopic.php on line 943
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3824: Cannot modify header information - headers already sent by (output started at /viewtopic.php:943)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3826: Cannot modify header information - headers already sent by (output started at /viewtopic.php:943)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3827: Cannot modify header information - headers already sent by (output started at /viewtopic.php:943)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /viewtopic.php:943)
SKY-MAP.ORG / WIKISKY • View topic - New (version 2) SkyWindow API

New (version 2) SkyWindow API

In this section we will inform you about latest changes made on our site.

New (version 2) SkyWindow API

Postby admin » Sat Oct 03, 2009 12:03 am

If you want to put mini sky-map on your page, I just posted blog entry on new (version 2) SkyWindow API - http://blog.wikisky.org/2009/10/02/version-2-window-api
admin
Site Admin
 
Posts: 150
Joined: Tue May 16, 2006 5:21 pm

Re: New (version 2) SkyWindow API

Postby giulia » Sun Nov 21, 2010 12:51 pm

I'm trying to use the new SkyWindow API, but I still have problems in visualizing object labels. You can have a look to a test page here:
http://wwwas.oats.inaf.it/aidawp5/sky-map2.html
And this is the code, can someone tell me where I'm wrong?
Thanks
Best regards
Giulia
----------------------------

<html>
<head></head>
<body>
<script type='text/javascript'
src='http://wikisky.org/js/skywindow2'></script>
<div style='position:relative;left:0px;top:0px;width:450px;height:450px'>
<DIV id='mySkyWnd'
style='position:absolute;left:0;top:0;width:450px;height:450px;overflow:hidden;border:1px solid gray'
onmouseout='hideddrivetip();'></DIV></div>
<script type="text/javascript">
var options = {ra:12.4283, de:12.81, initZoom:6, zoom:6,
survey:"", imgSource:"DSS2", allowTopPanel:true, showTopPanel:true, showRightPanel:false,
allowMove:true, allowZoom:true,
showPanZoomControl:true, panZoomControlLeft:6, panZoomControlTop:10,
showScale:true, showStatus:false, showPosition:true, showStickers:true, showLabels:true,
jpegQuality:0.8,
showGrid:true, showOverlayGrid:false,
showConstLines:true, showOverlayConstLines:false,
showConstBoundaries:true, showOverlayConstBoundaries:false,
showConstNames:false, showOverlayConstNames:false,
showGalaxies:true, showOverlayGalaxies:false,
showStars:true, showOverlayStars:false,
buffer:1, moveTime:2000, smoothMoveAccelerationTime:500,
posColor:"lightgray",posFontSize:"8pt",posFontWeight:"normal",posFontFamily:"verdana",
scaleMaxLen:90, scaleHeight:6, scaleColor:"lightgray", scaleLineWidth:1
};
new SkyWindow2(options).attach($('mySkyWnd'));
</script>

<pre>
<code>
<?php
include("HttpClient.class.php");
$u=$_SERVER["REQUEST_URI"];
$client = new HttpClient("server1.sky-map.org");
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$client->post('/'.$u, file_get_contents("php://input"));
} else {
$client->get('/'.$u);
}
$contentType = $client->getHeader("Content-Type");
$pageContents = $client->getContent();
header('Content-type: '.$contentType);
echo $pageContents;
?>
</code>
</pre>

</body>
</html>
giulia
 
Posts: 4
Joined: Wed Nov 10, 2010 10:18 am

Re: New (version 2) SkyWindow API

Postby admin » Thu Nov 25, 2010 5:41 pm

We're experiencing higher than ususal traffic in last few days. Our servers are quite busy and not all services functioning properly. Please let me know if you still having problems and need help.
Regards
admin
Site Admin
 
Posts: 150
Joined: Tue May 16, 2006 5:21 pm

Re: New (version 2) SkyWindow API

Postby giulia » Fri Nov 26, 2010 7:09 pm

Yes, I still have problems. You can have a look to my test page: http://wwwas.oats.inaf.it/aidawp5/sky-map2.html
Labels do not appear.
Thanks
Giulia
giulia
 
Posts: 4
Joined: Wed Nov 10, 2010 10:18 am

Re: New (version 2) SkyWindow API

Postby admin » Fri Nov 26, 2010 11:07 pm

giulia wrote:Yes, I still have problems. You can have a look to my test page: http://wwwas.oats.inaf.it/aidawp5/sky-map2.html
Labels do not appear.
Thanks
Giulia

You need to put php proxy script you listed above to be accessible at http://wwwas.oats.inaf.it/dwr
One of the way is to save script as "dwr" and add in .htaccess following code to make it to be recognized as php:
Code: Select all
<Files dwr>
SetHandler application/x-httpd-php5
</Files>
admin
Site Admin
 
Posts: 150
Joined: Tue May 16, 2006 5:21 pm

Re: New (version 2) SkyWindow API

Postby admin » Sat Nov 27, 2010 2:07 am

giulia wrote:Yes, I still have problems. You can have a look to my test page: http://wwwas.oats.inaf.it/aidawp5/sky-map2.html
Labels do not appear.
Thanks
Giulia


The issue with labels should be fixed now. I modified the code so it doesn't require proxy anymore.
admin
Site Admin
 
Posts: 150
Joined: Tue May 16, 2006 5:21 pm

Re: New (version 2) SkyWindow API

Postby giulia » Sat Nov 27, 2010 4:05 am

Many thanks, now it works fine.
Best regards
Giulia
giulia
 
Posts: 4
Joined: Wed Nov 10, 2010 10:18 am

Re: New (version 2) SkyWindow API

Postby DMJY510 » Wed May 11, 2011 6:52 am

hello,everyone ,I am damjy,it is my first post in this forum,I think it is necessary to make a short introduction,Don't you think so?I am a new member and I join in you just now,I am so glad to be here.Have a good time .
DMJY510
 
Posts: 21
Joined: Mon Mar 28, 2011 8:04 pm


Return to News & Updates

Who is online

Users browsing this forum: No registered users and 0 guests

cron