我正在使用HERE Maps Javascript API在我的Angular网站上显示地图。大多数时候,它工作得很好,但有时我会得到一个错误,贴图不会渲染。 这是错误: mapsjs-core.js:369 Tangram [error]: Error for style group 'non-collision' for tile 15/9/263/170/9 Cannot read property 'retain' of undefined: TypeError: Cannot read property 'retain' of und
我在CoffeeScript中得到了一个奇怪的行为:从加载的脚本(&callback=initMap)正确地调用了initMap函数,但是在initMap()的最后一行触发了一个错误
# Declare a global function
@initMap = ->
restaurantLocation =
lat: $('#restaurant-map').data("lat")
lng: $('#restaurant-map').data("lng")
map = new (google.
我有一个项目使用的地图与标记在这里的API。我从旧项目中复制代码并粘贴到新项目上,但它开始显示以下错误:
Failed to execute ‘postMessage’ on ‘DOMWindow’: The target origin provided (‘https://developer.here.com’) does not match the recipient window’s origin (‘http://127.0.0.1:5500’).
代码如下:
!DOCTYPE html>
<html lang="en">
<head>
我在我的rails应用程序中设置了一个很好的地图。一切都很好,但我不能用SnazzyMaps设置地图样式。
这是我的map.js文件:
import GMaps from 'gmaps/gmaps.js';
const mapElement = document.getElementById('map');
if (mapElement) { // don't try to build a map if there's no div#map to inject in
const map = new GMaps({ el: '#map
我使用GeoJSON作为Google Maps的数据源。我使用接口的v3来创建数据层,如下所示:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp"></script>
<script>
var map;
function initialize() {
//Initialise the map
var myLatLng = new google.maps.LatLng(53.231472,-0.539783);
map = new google.maps.M
我正在跟踪在我的站点上实现一个地图。当使用本指南中的确切代码时,我在浏览器(Chrome)中得到以下错误:
message: "H.Map (Argument #0 null)"stack: "Error↵ at new C (https://js.api.here.com/v3/3.1/mapsjs-core.js:35:1007)↵ at new Q (https://js.api.here.com/v3/3.1/mapsjs-core.js:340:639)↵
(仅限关键部件)
<head>
<meta name=
我正在尝试实现一个Maps、V3和Local,但我似乎遇到了问题。不知何故,OnLocalSearch()函数中的结果是空的。
以下是我的完整代码:
<script type="text/javascript">
//<![CDATA[
$(document).ready(function() {
// do stuff when DOM is ready
var geocoder = new google.maps.Geocoder();
var address = '{{string_location}}';