 |
Please vote on fixing the Postcard map bug here :)posted by Koz Farina on Nooribeom 90 weeks, 6 days, 2 hours, 20 minutes, 19 seconds ago [984 views]Hop over to this web page and look for the vote button to get this bug fixed. Since LL changed the Mapping API to use Google Pams API, the ability to pinpoint the location of a postcard sent via BlogHud is impossible..
http://jira.secondlife.com/browse/MISC-729
If LL were to add Global Coordinates to the information sent with a postcard (they do provide the SimName and Region X and Y coordinates), then we can then get the maps working correctly here at http://bloghud.com
Your vote counts!! Thanks! :)
http://jira.secondlife.com/browse/MISC-729
at: Nooribeom (206, 227, 59) [permalink] 2 comments...Thraxis Epsilonposted at 20:15:08 - Fri 12th o October, 2007 GMTThis code will work for adding markers. I also have a PHP function to do the same if you prefer.
function addRegionMarker (regionName, rx,ry, storeImage, popupCode)
{
var SLMap = this;
// Add a dynamic script to get this region position, and then add a market and popup there
var varName = “slRegionPos_result”;
var scriptURL = “https://cap.secondlife.com/cap/0/d661249b-2b5a-4436-966a-3d3b8d7a574f?var=” + varName + “&sim_name=” + encodeURIComponent(regionName);
// Once the script has loaded, we use the result to center the map on the position
var onLoadHandler = function ()
{
if (slRegionPos_result.error)
{
//alert(”The region name ‘” + regionName + “‘ was not recognised.”);
}
else
{
var x = slRegionPos_result.x + (rx/256.0);
var y = slRegionPos_result.y + (ry/256.0);
var pos = new XYPoint(x, y);
yellow_dot_image = new Img(storeImage,60,45);
yellow_icon = new Icon(yellow_dot_image);
all_images = [yellow_icon, yellow_icon, yellow_icon, yellow_icon, yellow_icon, yellow_icon, yellow_icon, yellow_icon, yellow_icon];
marker = new Marker(all_images, pos);
mapWindow = new MapWindow(popupCode);
mapInstance.addMarker(marker,mapWindow);
}
};
slAddDynamicScript(scriptURL, onLoadHandler);
}
Koz Farinaposted at 14:17:06 - Sat 13th o October, 2007 GMTthanks for the input ;) might be an idea to drop me a notecard on this ;) cheers!! ps: LL are working on fixing this ;) add a comment
advertise your Second Life products and services here soon
|
SL TIME: 12:21 PM SUN 05 JUL

1243 usersblog system stats
401 Wordpress26 Blogger (old)111 Blogger (new )24 TypePad2 Friendster45 LiveJournal
your voices - your machinima
check out Tao Takashi's World of SL
|
|
|