{"id":2,"date":"2021-01-21T17:23:52","date_gmt":"2021-01-21T09:23:52","guid":{"rendered":"http:\/\/www.thinfo.net\/?page_id=2"},"modified":"2021-01-25T11:39:42","modified_gmt":"2021-01-25T03:39:42","slug":"sample-page","status":"publish","type":"page","link":"http:\/\/www.thinfo.net\/index.php\/sample-page\/","title":{"rendered":"\u8054\u7cfb\u6211\u4eec"},"content":{"rendered":"\n<p><strong>\u70df\u53f0\u62d3\u6d77\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8<\/strong><\/p>\n\n\n\n<p><strong>\u8054\u7edc\u7535\u8bdd\uff1a15253597717<\/strong><\/p>\n\n\n\n<p><strong>\u90ae\u7bb1\uff1aMing@thinfo.net<\/strong><\/p>\n\n\n\n<p><strong>\u5730\u5740\uff1a\u70df\u53f0\u5e02\u829d\u7f58\u533a\u901a\u4e16\u8def54\u53f7\u6da6\u9f0e\u5546\u52a1601\u5ba4<\/strong><\/p>\n\n\n\n<!DOCTYPE html>\n<html>\n<head>\n\t<meta charset=\"utf-8\">\n\t<meta name=\"keywords\" content=\"\u9ad8\u5fb7\u5730\u56fe,DIY\u5730\u56fe,\u9ad8\u5fb7\u5730\u56fe\u751f\u6210\u5668\">\n\t<meta name=\"description\" content=\"\u9ad8\u5fb7\u5730\u56fe\uff0cDIY\u5730\u56fe\uff0c\u81ea\u5df1\u5236\u4f5c\u5730\u56fe\uff0c\u751f\u6210\u81ea\u5df1\u7684\u9ad8\u5fb7\u5730\u56fe\">\n\t<title>\u9ad8\u5fb7\u5730\u56fe &#8211; DIY\u6211\u7684\u5730\u56fe<\/title>\n\t<style>\n\t\tbody { margin: 0; font: 13px\/1.5 \"Microsoft YaHei\", \"Helvetica Neue\", \"Sans-Serif\"; min-height: 960px; min-width: 600px; }\n\t\t.my-map { margin: 0 auto; width: 600px; height: 300px; }\n\t\t.my-map .icon { background: url(http:\/\/lbs.amap.com\/console\/public\/show\/marker.png) no-repeat; }\n\t\t.my-map .icon-cir { height: 31px; width: 28px; }\n\t\t.my-map .icon-cir-red { background-position: -11px -5px; }\n\t\t.amap-container{height: 100%;}\n\t<\/style>\n<\/head>\n<body>\n\t<div id=\"wrap\" class=\"my-map\">\n\t\t<div id=\"mapContainer\"><\/div>\n\t<\/div>\n\t<script src=\"\/\/webapi.amap.com\/maps?v=1.3&#038;key=\u60a8\u7533\u8bf7\u7684key\u503c\"><\/script>\n\t<script>\n\t!function(){\n\t\tvar infoWindow, map, level = 18,\n\t\t\tcenter = {lng: 121.370088, lat: 37.510831},\n\t\t\tfeatures = [{type: \"Marker\", name: \"\u70df\u53f0\u62d3\u6d77\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8\", desc: \"\u70df\u53f0\u5e02\u829d\u7f58\u533a\u901a\u4e16\u8def54\u53f7\u6da6\u9f0e\u5546\u52a1601\u5ba4\", color: \"red\", icon: \"cir\", offset: {x: -9, y: -31}, lnglat: {lng: 121.370233, lat: 37.510809}}];\n\n\t\tfunction loadFeatures(){\n\t\t\tfor(var feature, data, i = 0, len = features.length, j, jl, path; i < len; i++){\n\t\t\t\tdata = features[i];\n\t\t\t\tswitch(data.type){\n\t\t\t\t\tcase \"Marker\":\n\t\t\t\t\t\tfeature = new AMap.Marker({ map: map, position: new AMap.LngLat(data.lnglat.lng, data.lnglat.lat),\n\t\t\t\t\t\t\tzIndex: 3, extData: data, offset: new AMap.Pixel(data.offset.x, data.offset.y), title: data.name,\n\t\t\t\t\t\t\tcontent: '<div class=\"icon icon-' + data.icon + ' icon-'+ data.icon +'-' + data.color +'\"><\/div>' });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Polyline\":\n\t\t\t\t\t\tfor(j = 0, jl = data.lnglat.length, path = []; j < jl; j++){\n\t\t\t\t\t\t\tpath.push(new AMap.LngLat(data.lnglat[j].lng, data.lnglat[j].lat));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfeature = new AMap.Polyline({ map: map, path: path, extData: data, zIndex: 2,\n\t\t\t\t\t\t\tstrokeWeight: data.strokeWeight, strokeColor: data.strokeColor, strokeOpacity: data.strokeOpacity });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase \"Polygon\":\n\t\t\t\t\t\tfor(j = 0, jl = data.lnglat.length, path = []; j < jl; j++){\n\t\t\t\t\t\t\tpath.push(new AMap.LngLat(data.lnglat[j].lng, data.lnglat[j].lat));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfeature = new AMap.Polygon({ map: map, path: path, extData: data, zIndex: 1,\n\t\t\t\t\t\t\tstrokeWeight: data.strokeWeight, strokeColor: data.strokeColor, strokeOpacity: data.strokeOpacity,\n\t\t\t\t\t\t\tfillColor: data.fillColor, fillOpacity: data.fillOpacity });\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: feature = null;\n\t\t\t\t}\n\t\t\t\tif(feature){ AMap.event.addListener(feature, \"click\", mapFeatureClick); }\n\t\t\t}\n\t\t}\n\n\t\tfunction mapFeatureClick(e){\n\t\t\tif(!infoWindow){ infoWindow = new AMap.InfoWindow({autoMove: true}); }\n\t\t\tvar extData = e.target.getExtData();\n\t\t\tinfoWindow.setContent(\"<h5>\" + extData.name + \"<\/h5><div>\" + extData.desc + \"<\/div>\");\n\t\t\tinfoWindow.open(map, e.lnglat);\n\t\t}\n\n\t\tmap = new AMap.Map(\"mapContainer\", {center: new AMap.LngLat(center.lng, center.lat), level: level});\n\t\t\n\t\tloadFeatures();\n\n\t\tmap.on('complete', function(){\n\t\t\tmap.plugin([\"AMap.ToolBar\", \"AMap.OverView\", \"AMap.Scale\"], function(){\n\t\t\t\tmap.addControl(new AMap.ToolBar);\n\t\t\tmap.addControl(new AMap.OverView({isOpen: true}));\n\t\t\tmap.addControl(new AMap.Scale);\n\t\t\t});\t\n\t\t})\n\t\t\n\t}();\n\t<\/script>\n<\/body>\n<\/html>\n","protected":false},"excerpt":{"rendered":"<p>\u70df\u53f0\u62d3\u6d77\u4fe1\u606f\u6280\u672f\u6709\u9650\u516c\u53f8 \u8054\u7edc\u7535\u8bdd\uff1a15253597717 \u90ae\u7bb1\uff1aMing@thinfo.net \u5730\u5740\uff1a\u70df\u53f0\u5e02 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"footnotes":""},"class_list":["post-2","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/pages\/2","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":3,"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":96,"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/pages\/2\/revisions\/96"}],"wp:attachment":[{"href":"http:\/\/www.thinfo.net\/index.php\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}