Closed (fixed)
Project:
Openlayers
Version:
6.x-2.0-alpha7
Component:
Layers
Priority:
Minor
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2010 at 00:34 UTC
Updated:
12 Jul 2010 at 07:20 UTC
I have followed the tutorial http://drupal.org/node/627816 and created a view using the steps mentioned in the tutorial .
After the steps the tutorial says "Go to that path, and you will have a map with your new point on it!" I went to the path and there was no map :(
On the page the JS code for open layers has been loaded
<script src="http://openlayers.org/dev/OpenLayers.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAflVWobc5YexdA0f0L0CZkBQQLLsFQZyY34vT29Vi2zwTyLG0XhRHLjl0dEcaOK2KFCmF1_yh8nuX0A" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=ABQIAAAAflVWobc5YexdA0f0L0CZkBQQLLsFQZyY34vT29Vi2zwTyLG0XhRHLjl0dEcaOK2KFCmF1_yh8nuX0A" type="text/javascript"></script>and
script type="text/javascript" src="/drup/modules/openlayers/js/openlayers.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/layer_types/google.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/layer_types/xyz.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/behaviors/js/openlayers_behavior_attribution.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/behaviors/js/openlayers_behavior_keyboarddefaults.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/behaviors/js/openlayers_behavior_layerswitcher.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/behaviors/js/openlayers_behavior_navigation.js?G"></script>
<script type="text/javascript" src="/drup/modules/openlayers/includes/behaviors/js/openlayers_behavior_panzoombar.js?G"></script>
<script type="text/javascript"> and
<script type="text/javascript" defer="defer">
<!--//--><![CDATA[//><!--
Drupal.settings.openlayers.maps["openlayers-map-auto-id-0"] = {"width":"auto","height":"400px","image_path":"","css_path":"","proxy_host":"","center":{"initial":{"centerpoint":"0,0","zoom":"2"},"restrict":{"restrictextent":0,"restrictedExtent":""}},"behaviors":{"openlayers_behavior_attribution":{"attribution":""},"openlayers_behavior_keyboarddefaults":{"keyboarddefaults":""},"openlayers_behavior_layerswitcher":{"layerswitcher":""},"openlayers_behavior_navigation":{"zoomWheelEnabled":1,"navigation":""},"openlayers_behavior_panzoombar":{"panzoombar":""}},"default_layer":"osm_mapnik","layers":{"google_satellite":{"baselayer":true,"type":"satellite","projection":["900913"],"layer_type":"openlayers_layer_type_google","serverResolutions":[156543.0339,78271.51695,39135.758475,19567.8792375,9783.93961875,4891.96980938,2445.98490469,1222.99245234,611.496226172,305.748113086,152.874056543,76.4370282715,38.2185141357,19.1092570679,9.55462853394,4.77731426697,2.38865713348,1.19432856674,0.597164283371],"maxExtent":[-20037508,-20037508,20037508,20037508],"layer_handler":"google","title":"Google Maps Satellite"},"google_normal":{"baselayer":true,"type":"normal","projection":["900913"],"layer_type":"openlayers_layer_type_google","serverResolutions":[156543.0339,78271.51695,39135.758475,19567.8792375,9783.93961875,4891.96980938,2445.98490469,1222.99245234,611.496226172,305.748113086,152.874056543,76.4370282715,38.2185141357,19.1092570679,9.55462853394,4.77731426697,2.38865713348,1.19432856674,0.597164283371],"maxExtent":[-20037508,-20037508,20037508,20037508],"layer_handler":"google","title":"Google Maps Normal"},"osm_mapnik":{"baselayer":true,"attribution":"©<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/2.0\/\">CCBYSA<\/a> 2010\n <a href=\"http:\/\/www.openstreetmap.org\/\">OpenStreetMap.org<\/a> contributors","projection":["900913"],"layer_type":"openlayers_layer_type_xyz","url":"http:\/\/tile.openstreetmap.org\/${z}\/${x}\/${y}.png","serverResolutions":[156543.0339,78271.51695,39135.758475,19567.8792375,9783.93961875,4891.96980938,2445.98490469,1222.99245234,611.496226172,305.748113086,152.874056543,76.4370282715,38.2185141357,19.1092570679,9.55462853394,4.77731426697,2.38865713348,1.19432856674,0.597164283371],"maxExtent":[-20037508,-20037508,20037508,20037508],"layer_handler":"xyz","title":"OSM Mapnik"}},"layer_styles":[],"layer_activated":[],"layer_switcher":[],"projection":"900913","displayProjection":"4326","styles":{"default":{"pointRadius":"5","fillColor":"#FFCC66","strokeColor":"#FF9933","strokeWidth":"4","fillOpacity":"0.5"},"select":{"pointRadius":"5","fillColor":"#FFCC66","strokeColor":"#FF9933","strokeWidth":"4","fillOpacity":"0.5"},"temporary":{"pointRadius":"5","fillColor":"#FFCC66","strokeColor":"#FF9933","strokeWidth":"4","fillOpacity":"0.5"}},"options":null,"id":"openlayers-map-auto-id-0","errors":false};
//--><!]]>
</script> Finally here is the div for content with which there is no map ( debian : epiphany browser and google chrome)
!--CONTENT-->
<div class="view view-openl view-id-openl view-display-id-page_2 view-dom-id-1">
<div class="views-admin-links views-hide">
<ul class="links"><li class="0 first"><a href="/drup/admin/build/views/edit/openl?destination=worldmap#views-tab-page_2">Edit</a></li>
<li class="1"><a href="/drup/admin/build/views/export/openl">Export</a></li>
<li class="2 last"><a href="/drup/admin/build/views/clone/openl">Clone</a></li>
</ul> </div>
<div class="view-content">
<div class='openlayers-views-map'>
<div style="width: auto; height: 400px;" id="openlayers-container-openlayers-map-auto-id-0" class="openlayers-container openlayers-container-preset-mera">
<div style="width: auto; height: 400px;" id="openlayers-map-auto-id-0" class="openlayers-map openlayers-preset-mera"></div>
</div>
</div>
</div>
</div> </div><!--END CONTENT-->
I am not sure if this would qualify as a bug .
Anyways version of browser: 2.30.2 ephiphany browser running on Debian squeeze
Comments
Comment #1
tmcw commentedIt looks like you haven't added the OpenLayers Data view to your map preset - I don't see mention of 'opendata_openlayers_1' anywhere here.
Comment #2
pavithran commentedI could only see the issue occuring with a preset having google layers . I rechecked the google api key but no use.
Comment #3
pavithran commented@tmcw : opendata_openlayers_1 was the error copied from log . Anyways I have changed the name of the bug to something more appropriate .
It is only the issue with google map layer .
Comment #4
tmcw commentedCan you provide a live example of this happening? And please don't change the category unless there is a specific bug uncovered.
Comment #5
tmcw commentedAlso, try setting your openlayers path to
http://openlayers.org/api/OpenLayers.jsinstead ofhttp://openlayers.org/dev/OpenLayers.js- there have been some recent problems with the development version's support of Google Maps.Comment #6
pavithran commentedThe issue is not happening with 6.x-2.0-alpha8 . Hence changed the status to fixed .