Ender Client map.html zooming problem

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

Moderator: Phades

Ender Client map.html zooming problem

Postby Hayaku » Wed Jun 12, 2013 8:47 pm

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?
Hayaku
 
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Re: Ender Client map.html zooming problem

Postby sabinati » Wed Jun 12, 2013 8:48 pm

you need to have images for different zoom levels.
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Ender Client map.html zooming problem

Postby Hayaku » Wed Jun 12, 2013 8:57 pm

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?
Hayaku
 
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Re: Ender Client map.html zooming problem

Postby borka » Wed Jun 12, 2013 8:59 pm

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
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Ender Client map.html zooming problem

Postby Hayaku » Thu Jun 13, 2013 8:44 am

borka wrote:http://www.havenandhearth.com/forum/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?
Hayaku
 
Posts: 3
Joined: Sat Mar 26, 2011 1:55 pm

Re: Ender Client map.html zooming problem

Postby Grable » Thu Jun 13, 2013 9:12 am

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
Grable
 
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Re: Ender Client map.html zooming problem

Postby borka » Thu Jun 13, 2013 9:41 am

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

Re: Ender Client map.html zooming problem

Postby Grable » Thu Jun 13, 2013 10:04 am

borka wrote:change mapsize to 360 in tav's .py ?!?


Thanks, will try.
User avatar
Grable
 
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Re: Ender Client map.html zooming problem

Postby borka » Thu Jun 13, 2013 10:07 am

tell if it works pls
User avatar
borka
 
Posts: 9965
Joined: Thu Feb 03, 2011 7:47 pm
Location: World of Sprucecap

Re: Ender Client map.html zooming problem

Postby Grable » Thu Jun 13, 2013 5:48 pm

borka wrote:tell if it works pls


It worked. Thanks borka.
User avatar
Grable
 
Posts: 885
Joined: Mon Feb 14, 2011 8:03 am

Next

Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 3 guests