removing or coloring equator and international date-line in google maps api

前端 未结 2 1444
青春惊慌失措
青春惊慌失措 2021-01-04 21:00

I\'m unable to find any information as to how to remove or change the colors of the equator and international date-line in Google Maps JS API v3. I\'ve been searching the do

2条回答
  •  温柔的废话
    2021-01-04 21:29

    A few years late for this answer, but I was trying to figure this out and worked out how to properly remove the equator and dateline. It seems that for the administrative layer country borders are considered strokes but the equator and dateline are fills, so you can set your style to this to get rid of those lines:

    {
        "featureType": "administrative",
    "elementType": "geometry.fill",
    "stylers": [{ "visibility": "off" }]
    }
    

提交回复
热议问题