Ender Client map.html zooming problem

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

Hayaku
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Ender Client map.html zooming problem

Post by Hayaku »

Hi,

I have made a private map for my friends and now, as it's getting bigger, I would like to be able to zoom in and out. Sadly I can't. Of course I have changed default zoom, minzoom and maxzoom but it didn't help. As I was looking at the code I figured out that it's probably written in the way that makes zoom impossible. Does anyone know what to add/remove to make zoom possible?
User avatar
sabinati
Posts: 15527
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Ender Client map.html zooming problem

Post by sabinati »

you need to have images for different zoom levels.
Hayaku
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Re: Ender Client map.html zooming problem

Post by Hayaku »

Ok, I get it but I have an idea.

This piece of code:

tileSize: new google.maps.Size(100, 100),

When I change 100 to 200 I get tiles 2x bigger. Is that possible to make zoom just change the tile size or add 2 buttons that will change tile size?
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Ender Client map.html zooming problem

Post by borka »

viewtopic.php?f=27&t=20255
viewtopic.php?f=27&t=31310

if you use soos mapmerger3.1 and Tav's tilecreator you'll get good zoomable local maps - only flaw is that you still need to share the whole folder unless you make screenshots of zoomed in maps
Hayaku
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Re: Ender Client map.html zooming problem

Post by Hayaku »

borka wrote:viewtopic.php?f=27&t=20255
viewtopic.php?f=27&t=31310

if you use soos mapmerger3.1 and Tav's tilecreator you'll get good zoomable local maps - only flaw is that you still need to share the whole folder unless you make screenshots of zoomed in maps
Big thanks, it worked but I didn't mention that I also would like to zoom in (Tav's program connected 4 tiles into one and I want also an original tile to be splitted to 4 etc.). Now I also have a big map made by salem map tool and I thought that I could just make it zoomable but it's suprisingly hard (at least for me) to find some way to make it zoomable similar to windows style (I can zoom in and count pixels). Probably it will be easier to find some script that will make this possible than to write a program that will split tiles. Any ideas?
User avatar
Grable
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Re: Ender Client map.html zooming problem

Post by Grable »

I'm using Tav's python script to make a zoomable map, but it only displays a part of the map - a supergrid and a third of the other one - should be 4 supergrids to be exact. Anyone have any idea what could be causing this?

I used the Salem map merger and the map is merged fine.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Ender Client map.html zooming problem

Post by borka »

change mapsize to 360 in tav's .py ?!?
User avatar
Grable
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Re: Ender Client map.html zooming problem

Post by Grable »

borka wrote:change mapsize to 360 in tav's .py ?!?
Thanks, will try.
User avatar
borka
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Ender Client map.html zooming problem

Post by borka »

tell if it works pls
User avatar
Grable
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Re: Ender Client map.html zooming problem

Post by Grable »

borka wrote:tell if it works pls
It worked. Thanks borka.

Return to “The Wizards' Tower”