rouchon, http://econym.googlepages.com/custommap.htm http://econym.googlepages.com/example_custommap3.htm [view source]
Mapperz http://mapperz.blogspot.com/ On Nov 5, 10:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I am lookimng at this code for > photoshophttp://mapki.com/wiki/Automatic_Tile_Cutter > but I do not understand how to set > 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 > var OrgZoomLevel = 17; > > My photoshop file is 13056 by 13056 and I can t figure out how to set > that CS3 script to cut tiles so that they are named 1_000_000.jpg to > 17_000_000.jpg. > > I also grabbed that code from another site for the javascript part: > > // Basic Map Control > map = new GMap2(document.getElementById("wiki_map"), > {backgroundColor:"#000000"}); > map.addControl(new GLargeMapControl()); > > // Copyright > var copyright = new GCopyright(1, new GLatLngBounds(new > GLatLng(-90,-180),new GLatLng(90,180)), 1, "(c) 2008 Blizzard > Entertainment"); > var copyrightCollection = new GCopyrightCollection('Map Data:'); > copyrightCollection.addCopyright(copyright); > > // Custom Map Tiles > wiki_CustomGetTileUrl=function(a,b){ > var f = "/site/path to tiles goes > here/"+b+"_"+a.x+"_"+a.y+".jpg"; > return f; > } > > // Layers > var tilelayers = [new GTileLayer(copyrightCollection,4,6)]; > tilelayers[0].getTileUrl = wiki_CustomGetTileUrl; > > // Custom Map > var wiki_map = new GMapType(tilelayers, new > GMercatorProjection(18), > "Old OS"); > map.setCenter(new GLatLng(98.12246884621463,-137.8203125, true), > 4, wiki_map); > map.addMapType(wiki_map); > > I don t understand what GLatLng(-90,-180),new GLatLng(90,180) means > and also what the following coordinates mean > > map.setCenter(new GLatLng(98.12246884621463,-137.8203125, true), 4, > wiki_map); > > Please point me in the right direction by helping me first to slice my > large pict and setting the number of zooms correcly and then centering > the map at the highest zoom level. > > Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
