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 6607171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T19:28:28+00:00 2026-05-25T19:28:28+00:00

We are now trying to build a map library like google/bing/yahoo,we will use it

  • 0

We are now trying to build a map library like google/bing/yahoo,we will use it offline.

However I found that I have no idea about how to arange the divs in the page,since there are some many different types of divs.

1) the map tiles (small image 256X256)

2)the overlayer(marker/informationwindow/polygon...)

3)the control.

I have to try to read the html source codes of google and bing and etc. But I found it is difficult to understand them.

For exmaple,this frangment is copyed from another online map site of China.

As you can see,it is just a exmaple for how to adding a marker to the map.

But take the code,there are so many nested divs,most of them have the property of “width:0;height:0”,I do not know why?

Since in my opinion,the marker is just an icon,just put it in the page.

Why use so many nested divs and even the “map” tag?

But I think they must have the advantages which I can not find.

Any one can give some suggestions?

  • 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-25T19:28:29+00:00Added an answer on May 25, 2026 at 7:28 pm

    Typically you insert a div in HTML when you want to create a block element but there is no more semantically-loaded element available with the correct meaning.

    I think the answer to your question is to use just as many div elements as you need for your purposes. Do not add more just because you can. Sometimes you don’t need any div elements at all – you can use other more meaningful elements such as img, ul, p, etc. You can sometimes avoid inserting a wrapping div by using CSS to change an inline element such as a into a block element.

    If you need more later then add them later. Don’t worry about what Google/Bing/Yahoo do. Their requirements are probably different to yours.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Now I am trying to build a store that associates with google books for
I'm new to Drupal 7. Right now I'm trying to use D7 to build
I am trying to build a smallish haskell app that will translate a few
I'm trying to build an interactive map using google's map api v3. The idea
I'm working now on google maps, I'm trying to build something not even half
I am trying to build a domain model that will allow me to manage
I am trying to build a theme right now for the Spree eCommerce platform
I am now trying to understand some code and I have found a pattern,
I am now trying to do forking in php. I would like to do
I'm trying to generate a python wrapper for a C++ library that I am

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.