首页 / 浏览问题 / 其他 / 问题详情
TiledVectorLayer出现异常
1EXP 2017年08月07日
  1. Resource interpreted as Image but transferred with MIME type text/html: "http://127.0.0.1:8020/map/supermap/theme/images/cursors/Pan.cur". VM455:1
  1. Resource interpreted as Script but transferred with MIME type application/jsonp: "http://192.168.60.36:8090/iserver/services/map-china400/rest/maps/China.jso…502092782990760%5D&sectionCount=1&sectionIndex=0&jsonpUserID=1502092782981". VM454:1
  1. Resource interpreted as Script but transferred with MIME type application/jsonp: "http://192.168.60.36:8090/iserver/services/map-china400/rest/maps/China/lay…502092783003652%5D&sectionCount=1&sectionIndex=0&jsonpUserID=1502092783002". VM454:1
  1. Resource interpreted as Image but transferred with MIME type text/html: "http://127.0.0.1:8020/map/supermap/theme/images/cursors/PanDown.cur". VM455:1

1个回答

你好  这有由于HTTP Response Header中指定的MIME 类型 与文件类型不匹配

检查你的页面是否缺少<!DOCTYPE html>声明,未指定HTML页面文档类型
7EXP 2017年08月07日
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>火车监控模拟</title>

写了,估计是跨域问题。我是拿HBulider开发的,端口是8020;但是请求服务的端口是8090。知道怎么解决不?
您好,您可以在%SuperMap iServer_HOME%/conf/server.xml 中,将iserver端口号改成8020。
...