0
A
回答
0
您可以通過改變Polyline的zIndex的財產,像所有MapObjects的,則折線從Object得出這是zIndex的定義哪裏做到這一點。
如果你有一個這樣的折線:像這樣
var points = [
new nokia.maps.geo.Coordinate(50.2, 8.57),
new nokia.maps.geo.Coordinate(50.1299, 8.5680),
new nokia.maps.geo.Coordinate(50.0969, 8.4829),
new nokia.maps.geo.Coordinate(50.0819, 8.4856),
new nokia.maps.geo.Coordinate(50.0555, 8.4479),
new nokia.maps.geo.Coordinate(50.02, 8.43)
];
// Purple polyline
poly = new nokia.maps.map.Polyline(
points,
{
pen: {
strokeColor: "#22CA",
lineWidth: 5
}
}
);
而且任何geoshape(如多邊形):
gon = new nokia.maps.map.Polygon(
[
new nokia.maps.geo.Coordinate(50.2001, 8.6381),
new nokia.maps.geo.Coordinate(50.2190, 8.5474),
new nokia.maps.geo.Coordinate(50.2001, 8.5337),
new nokia.maps.geo.Coordinate(50.1799, 8.4774),
new nokia.maps.geo.Coordinate(50.1693, 8.4664),
new nokia.maps.geo.Coordinate(50.1522, 8.4657),
new nokia.maps.geo.Coordinate(50.1205, 8.5310),
new nokia.maps.geo.Coordinate(50.1363, 8.5879),
new nokia.maps.geo.Coordinate(50.1882, 8.6168)
],
{
pen: { strokeColor: "#000", lineWidth: 1 },
brush: { color: "#C22A" }
}
);
,然後將其放置在地圖上的對象第一會在後面。默認情況下,兩個對象的zIndex爲零。如果增加zIndex的如圖所示:
poly.set("zIndex", 1)
然後,它會在所有對象的頂部移動使用默認zIndex的
相關問題
- 1. 是否可以在諾基亞地圖中放置網格?
- 2. 是否可以在我的Android應用程序中集成諾基亞地圖?
- 3. 我想知道的是,可以通過DB2唯一索引
- 4. 是否可以將諾基亞連接API與asp.net集成?
- 5. 諾基亞HERE地圖:在使用諾基亞HERE地圖
- 6. 諾基亞地圖瓷磚REST API
- 7. 地方搜索api諾基亞地圖在http格式?
- 8. 是否有可能知道對象屬性何時更改?
- 9. 諾基亞地圖幾歲?
- 10. 我可以知道AppleScript對象是否具有某個屬性?
- 11. 是否可以使用Facebook圖形API來搜索用戶的狀態更新?
- 12. 諾基亞HERE地圖:地圖
- 13. IE8是否可以通過jQuery識別狀態屬性更改?
- 14. 是否可以改變「UISlider」的形狀?
- 15. 是否可以更改FBSDK的圖形API版本?
- 16. 諾基亞這裏地圖-API地圖覆蓋
- 17. 我想知道ruby中的圖形中是否存在特定的子圖形
- 18. 檢查經緯度是否在諾基亞HERE地圖多邊形中
- 19. 諾基亞這裏地圖本地化
- 20. 可以在這裏使用諾基亞REST地圖API在openlayer中嗎?
- 21. 是否可以將界面語言添加到諾基亞2720?
- 22. 諾基亞地圖中的BoundingRectangle Windows Phone
- 23. 獲取有關我想知道屬性
- 24. 是否可以在igraph圖的圖例中更改「圖像」的形狀?
- 25. 如何知道CMIS屬性是否可修改?
- 26. 確定是否形狀是使用基於索引的參考
- 27. 是否可以搜索jdom的屬性?
- 28. 是否可以知道用戶是否更新了Facebook中的狀態
- 29. 是否可以知道某個屬性何時被刪除?
- 30. 訪問諾基亞系列中的谷歌地圖API 40
謝謝,這是非常有幫助=) – emilio
看來,Z-索引是相對於容器(也有z-索引)。所以如果你有不同容器中的對象,它可能會變得棘手。我最終改變了容器的z-索引。 –