GIS (i)--add marker tag to JS search map

Source: Internet
Author: User

Because we do have a project on tourism, so it involves the map function. One of the tasks I received was to show a few designated sights on the map and add markers to the map.

Our project is using Sogou map. The JS version number is used. If you are interested, you can refer to the Search Map API and Demo sample code.

Adding markers to a map is a basic function of the map. This mark is called marker. Can be crossing from here on the Internet for marker class introduction.

The basic steps to implement, first create a map on the page. Then add a marker to the map. You can specify the location, the display content, the marker on the map, and so on.

See the code for details:



isn't it very easy? In fact, with these, it's just one of the simplest styles. In the next blog post, we add luster to him. Please look forward to it.

GIS (i)--add marker tag to JS search map

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.