Aha!
That was very helpful Chad. Thanx! It turned out that my tiles were
all named improperly. They were all there but their naming started in
the hundreds. "2_304_304.jpg for example. As soon as I re-cut them
with the proper naming/numbering it all loaded perfectly. I'm most
pleased!
I'm having trouble getting an overlay to work with it though. At the
moment I have a custom base maptype set up but now I'd like to add
another custom map of mine onto the custom base map. As an overlay I
guess is what is needed...
Here's what I have for now:
http://www.darkmatters.org/forums/bradstuff/Map/TestMap.html
Here's the map I'd like to Overlay:
http://www.darkmatters.org/forums/bradstuff/Map/Sacred%202%20Dungeon%20Map.html
And here's my feeble attempt at doing it as well as the code below the
link, haha:
http://www.darkmatters.org/forums/bradstuff/Map/Sacred%202%20Overlay%20Map.html
I'll be working on this non stop until I get it but any tips would be
very much appreciated. :)
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Sacred 2 Ice & Blood Interactive Map of Ancaria</title>
<script type="text/javascript" src="
http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(75, -115);
var myOptions = {
zoom: 2,
center: myLatlng,
mapTypeControl: true,
mapTypeControlOptions: {
style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
mapTypeIds: ['S2map, dungeons']
}
}
var map = new google.maps.Map(document.getElementById("map"),
myOptions, {backgroundColor: '#f0e0be'});
var S2mapOptions = {
getTileUrl: function(coord, zoom) {
return "
http://www.darkmatters.org/forums/bradstuff/Map/
MainMap/"+zoom+"_"+coord.x+"_"+coord.y+".jpg";
},
tileSize: new google.maps.Size(256, 256),
isPng: false
};
var S2map = new google.maps.ImageMapType(S2mapOptions);
S2map.name = "Main Map";
S2map.maxZoom = 7;
S2map.minZoom = 2;
map.mapTypes.set('S2map', S2map);
map.setMapTypeId('S2map');
var dungeonOptions = {
getTileUrl: function(coord, zoom) {
return "
http://www.darkmatters.org/forums/bradstuff/Map/
Dungeons/"+zoom+"_"+coord.x+"_"+coord.y+".jpg";
},
tileSize: new google.maps.Size(256, 256),
isPng: false
};
var dungeons = new google.maps.ImageMapType(dungeonOptions);
dungeons.name = "dungeons";
dungeons.mapTypes.set('dungeon', dungeons);
dungeons.setMapTypeId('dungeon');
dungeons.overlayMapTypes.push(dungeons);
}
</script>
</head>
<body style="background-color: #f0e0be;margin:0px; padding:0px;"
onload="initialize()">
<div id="map" style="background-color: #f0e0be; width: 100%; height:
100%; position: relative; overflow: hidden; z-index: 0;"></div>
</body>
</html>
On Jul 2, 9:28 am, Chad Killingsworth
> > aboutCustomMaps. What I'm wanting to do is to host a gaming map
> > I've made in Photoshop for a fansite I run,
darkmatters.org. For the
> > past two years I've been using Maplib but I'd like to have more
> > control.
> > I've cutmymap using the (
http://mapki.com/wiki/
> > And this is one ofmymaps on Maplib. Similar map graphically.