Hi, I did refer myself to Mike Williams code on the Econym.org website.
The GLatLng figures that I entered are based on the tiles that I created. Using the mentionned script on the Mapki site, I was able to make my tiles with Photoshop. The code in the script is: var OrgX = 31551; // the Google Maps X value of the tile at the top left corner of your Photoshop document var OrgY = 50899; // the Google Maps Y value of the tile at the top left corner of your Photoshop document I figured this is latitude and longitude values. As for the tile names, you probably noticed that I commented the previous two lines, because as I was trying them the pictures for the tiles were not working. So I thought it was probably my URL throughput that was not working fine, and so decided to hardcode it as it is right now. I expected to see the same image repeated many times sinc I am hard coding it.. but didn't get what I was expecting... Any hint or guide will be appreciated. Thanks. hk On Thu, Aug 13, 2009 at 4:58 PM, mapperzUK <[email protected]> wrote: > > I suggest you go through Mike Williams original custom map code again. > > view source: > http://econym.org.uk/gmap/example_custommap1.htm > (credit to Mike Williams) > > var copyright = new GCopyright(1, > new GLatLngBounds(new GLatLng(31551,50899),new GLatLng > (31554,50903) ), > 3, "BICA floor plan"); > > what are these figures? 31551,50899?? > > GLatLng is expecting to be in Latitude and Longitude (Decimal Degrees) > Like Mike Williams Code is > // ====== Create a copyright entry ===== > var copyright = new GCopyright(1, > new GLatLngBounds(new GLatLng(53.8136257,-3.0981445),new > GLatLng(53.8654855,-2.9663944) ), > 14, "Ordnance Survey"); > > The other issue is > CustomGetTileUrl=function(a,b){ > return "tiles/"+a.x+"_"+a.y+"_"+(17-b)+".jpg" > } > gets adjacent tiles (jpg) > > your code blocks the function with // > > // == Write our own getTileUrl function ======== > // In this case the tiles are names like 8053_5274_3.jpg > CustomGetTileUrl=function(a,b){ > //return "aaa/"+(17-b) +"_" + a.x+"_"+a.y+".jpg" <<// out > //return "aaa/"+ b +"_" + a.x+"_"+a.y+".jpg"; > return "aaa/6_31551_50901.jpg"; > > > Mapperz > http://mapperz.blogspot.com/ > > On Aug 13, 9:45 pm, hassy33 <[email protected]> wrote: > > Hi everyone, > > > > I am hoping that someone could help with this as I have been searching > > forever for a solution without really finding it. > > > > I am trying to make a custom map for a floor plan. After reading > > several posts, tutorials and even a book about Google Maps, I figured > > out how to do some part of it. > > > > First, my floorplan image was designed and I create the tiles using > > the script available on the Mapki help page. (http://mapki.com/wiki/ > > Automatic_Tile_Cutter) > > > > I generated my tiles based on the zoom levels and latitudes and > > longitudes given to the script. > > > > I also got an API key for my server and it seems to work, since I am > > not getting any js alert message from Google saying that it is not > > working with the right host. > > > > The only thing is I do not get anything on my custom map. I am > > strongly suscipous that my getTileUrl function is not working > > properly... but I have no idea what to do or how to tweak it. > > > > Can anyone help me out with this??? > > > > My custom map can be found in the following location: > http://www.linkkings.com/hkbica/custommap.htm > > > > You can view the source of that html page to see my function code. > > > > My tile images can be found athttp://www.linkkings.com/hkbica/aaa/ > > > > I hope this helps. > > Let me know if tehre is anything else you need to help me. > > > > Thanks. > > hk > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
