Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Second Life Map Api

Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-14-2005 12:12
Hello,

We've posted a new map api, allow you to embed maps (and do many more things) on your webpages. The address for the documentation is:

http://secondlife.com/apps/services/
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-14-2005 12:13
Oooooh shiny. :D
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Csven Concord
*
Join date: 19 Mar 2005
Posts: 1,015
12-14-2005 12:17
Sweet.
_____________________
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-14-2005 12:19
eeep!
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-14-2005 12:23
From: someone

The coordinates used for the Webmap are based on our grid system for positioning regions. If you are curious what position corresponds to which XY coordinate, please use this application.


The last link in that paragraph is broken..

http://secondlife.com/apps/services/mapapi/x

Doesn't point to anything.

..
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-14-2005 13:10
Feature Request: Allow abitrary clicking at any position and getting the sl coordinate?
_____________________
Co-Founder / Lead Developer
GigasSecondServer
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-14-2005 13:13
there's the double click handler..
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-14-2005 13:24
From: blaze Spinnaker
there's the double click handler..


Edit: Ack, missed that.
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-14-2005 13:25
Hi adam, good news, this feature is already available:

http://secondlife.com/apps/services/mapapi/index.html#adv_double_click
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-14-2005 13:43
From: blaze Spinnaker
The last link in that paragraph is broken..

http://secondlife.com/apps/services/mapapi/x

Doesn't point to anything.

..


$newx = $x / 256;
$newy = ($y / 256);

Seems to work. :)
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-14-2005 13:50
From: blaze Spinnaker
The last link in that paragraph is broken..

http://secondlife.com/apps/services/mapapi/x

Doesn't point to anything.

..


Thanks for letting us know, the link now points to the coordinate locator application.
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-14-2005 13:56
It just seems to be returning the XY Coords.

http://secondlife.com/apps/services/mapapi/locator-app.html

Is it supposed to use Adam's formula above?
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Azreal Rubio
PrimHead
Join date: 29 Jan 2004
Posts: 194
12-14-2005 14:12
Thanks Bo and Co :D

Sweet!, I've been waiting for this for a long time (well wishing for it anyway)

See my implementation here!!

:D :D :D

Guess who's a happy bunny!!
Satchmo Prototype
eSheep
Join date: 26 Aug 2004
Posts: 1,323
12-14-2005 14:40
This rocks!
_____________________

----------------------------------------------------------------------------------------------------------------
The Electric Sheep Company
Satchmo Blogs: The Daily Graze
Satchmo del.icio.us
Adam Zaius
Deus
Join date: 9 Jan 2004
Posts: 1,483
12-14-2005 15:00
OK, next question -- can we get a method to set a specific style on the marker window? :)

-Adam
_____________________
Co-Founder / Lead Developer
GigasSecondServer
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
12-14-2005 15:06
From: someone
With this new api in hand, we encourage you to remix away. We've tried to develop with the idea that everything we can do, you should be able to do as well.

Hold that thought. :)
_____________________
---
blaze Spinnaker
1/2 Serious
Join date: 12 Aug 2004
Posts: 5,898
12-14-2005 15:12
From: someone

With this new api in hand, we encourage you to remix away. We've tried to develop with the idea that everything we can do, you should be able to do as well.


Ok, along those lines, can we get access to the events and land for sale like you have on the front page?
_____________________
Taken from The last paragraph on pg. 16 of Cory Ondrejka's paper "Changing Realities: User Creation, Communication, and Innovation in Digital Worlds :

"User-created content takes the idea of leveraging player opinions a step further by allowing them to effectively prototype new ideas and features. Developers can then measure which new concepts most improve the products and incorporate them into the game in future patches."
Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-14-2005 15:22
The marker window is definitely harder to customize, so this isn't trivial. If someone has a good idea of how to do this I'm all ears.
Hank Ramos
Lifetime Scripter
Join date: 15 Nov 2003
Posts: 2,328
12-14-2005 15:26
For those of us that do EVERYTHING inside of SL, can we have a way to get at the map textures inworld and have various LSL functions with it? Or is this only for outworld folks?
Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-14-2005 15:26
From: blaze Spinnaker
Ok, along those lines, can we get access to the events and land for sale like you have on the front page?


Hey blaze, you read our minds. You'll be able to do this with web services very soon
Smileyrepublic Sachertorte
Registered User
Join date: 13 Dec 2005
Posts: 6
12-14-2005 15:53
This is quicker than the real SL map!
Nicole David
Furniture Queen
Join date: 7 Sep 2005
Posts: 134
12-14-2005 17:56
Thank you Bo! Are we able to view land for sale on these maps?
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
12-14-2005 18:11
Very much niftiness... new toy to play with!
Dyne Talamasca
Noneuclidean Love Polygon
Join date: 9 Oct 2005
Posts: 436
12-14-2005 23:08
I'm not terribly familiar with Javascript, but I assume that if I wanted to cause a marker to open a secondlife:// address, then I would replace the alert() call here with something else:

CODE
 // creates a function that we will bind to the double click action
var doubleClickHandlerFunction = function(x,y) {
alert("you double clicked at (" + x + "," + y + ")");
};


Anyone want to tell me what the something else would be? (I can handle converting the coordinates myself)
_____________________
Dyne Talamasca - I hate the word "bling".

Miscellany on MySLShop.com, SLB, and SLEx

Plonk
Bo Linden
Administrator
Join date: 29 Jun 2005
Posts: 17
12-15-2005 00:13
Nicole, you cannot view land for sale on these maps. We will soon provide a service to get information about parcels for sale.

Dyne, if you want to link to a second life coordinate currently, you'll need find out the region name and the local coordinates (0-256), then form the link as:

<a href="secondlife://region_name/local_x/local_y>link name</a>

For example:

<a href="secondlife://Europa/114/44">Link to Europa</a>
1 2