Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7072163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:46:31+00:00 2026-05-28T05:46:31+00:00

Scenario : I’m currently trying to build a poor man’s Google Maps using scripts

  • 0

Scenario :

  • I’m currently trying to build a poor man’s Google Maps using scripts and things to simulate all the functions.
  • I have a massive image that I sliced up into tiles and display in a
    table on the web page.
  • I found a script that enables a user to click
    and drag to navigate around the map.

Todo :

  • Now I just need to implement
    zoom.
  • I found scripts to zoom single images but I want to be able to zoom the entire page out as a single element.
    Since I have 100 images tiled to create the map, it’s not practical to do it for each individual slice.

    Is there a way to do this?

    The page I have so far can be found at http://minecraft.firedrakecreative.com,
    and then click on the thumbnail.
    Any help is much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:46:31+00:00Added an answer on May 28, 2026 at 5:46 am

    Take a look at this example, it might help you out.

    Basically you’re gonna have to bind the scroll event and change the behavior. The example uses CSS3 transformations, if that doesn’t work for you because it needs to work on old browsers you might need to change the images sizes. But still some browsers don’t render the changed size of an image.

    Just to give you a path to go, this is an example of what you can do, considering your page HTML:

    window.addEventListener('scroll',function(){
        var scrolled = window.scrollY / ( document.getElementById("Table_01").offsetHeight );
        console.log("window.scrollY: " + window.scrollY);
        console.log("scrolled: " + scrolled );
        var zoomLevels = 1; //change to have a different behavior
        var scale = Math.pow( 3, scrolled * zoomLevels);
        var images = document.getElementById("Table_01").getElementsByTagName("img");
        console.log("scale:" + scale);
        for(i=0;i<images.length;i++){
            images[i].width = Math.round(500/scale); //change 500 to your image size
            images[i].height = Math.round(500/scale); //change 500 to your image size
        }
    },true);
    

    You can see this DEMO in action here: http://jsfiddle.net/qG6qm/3/

    IMPORTANT: for this code to work you have to change your table tag from:

    <table id="Table_01" width="5000" height="5000" boder="0" cellspacing="0" cellpadding="0">
    

    to:

    <table id="Table_01" boder="0" cellspacing="0" cellpadding="0">
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Scenario: I'm currently writing a layer to abstract 3 similar webservices into one useable
Scenario You've got several bug reports all showing the same problem. They're all cryptic
Scenario : Trying to call the .AttachAll method on a table in my LinqToSql
Scenario Imagine a REST service that returns a list of things (e.g. notifications) Usage
Scenario I'm using a Custom IPrincipal and IIdentity to do asp.net authorization. I set
Scenario Downloading an xlsx file to my local drive from a http location using
Scenario I'm parsing emails and inserting them a database using an ORM (NHibernate to
Scenario: I want to have an enum containing all the playing cards in a
Scenario: I am using a listview with custom Adapter. I am fetching data every
Scenario: Ruby on Rails app that returns JSON to an iOS application using json-framework

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.