[OpenLayers-Users] Markers disappear at High Zoom Levels
coderage
code.rage at yahoo.com
Thu Sep 20 17:40:23 EDT 2007
Obe, Regina DND\MIS wrote:
>
> I'm using version 2.3 stable of OpenLayers and am experiencing the same
> problem as described here
>
> Hi,
> This helped me
>
> var markers = new OpenLayers.Layer.Markers( "Markers",{'calculateInRange':
> function() { return true; }});
>
> regards
> Code
>
>
>
> http://openlayers.org/pipermail/users/2007-January/000514.html
>
> It seems that no matter what I try, my markers disappear around Zoom 15.
> Is there a solution for this.
>
>
> My map code looks something like
> var lon = -71.0891380310059
> var lat = 42.3123226165771
>
> var options = {
> maxZoomLevel: 20,
> maxResolution: "auto",
> numZoomLevels: 20,
> controls: [new OpenLayers.Control.MouseDefaults(), new
> OpenLayers.Control.PanZoomBar(), new OpenLayers.Control.MouseToolbar()]
> };
> var map = new OpenLayers.Map(document.getElementById("map"), options);
>
> var boston = new OpenLayers.LonLat(lon,lat);
> map.setCenter(boston, 14);
>
> var gmaerial = new OpenLayers.Layer.Google("Google Hybrid", { 'type':
> G_HYBRID_MAP });
> map.addLayer(gmaerial);
>
> var markers = new OpenLayers.Layer.Markers("Markers", {numZoomLevels:17,
> maxZoomLevel:17, minZoomLevel: 10});
> map.addLayer(markers);
>
> var size = new OpenLayers.Size(10,17);
> var offset = new OpenLayers.Pixel(-(size.w/2), -size.h);
> var icon = new OpenLayers.Icon(OpenLayers.Util.getImagesLocation() +
> 'marker-blue.png',size,offset);
> var marker0 = new OpenLayers.Marker(new OpenLayers.LonLat(lon,
> lat),icon);
> markers.addMarker(marker0);
>
>
> Thanks,
> Regina
>
>
>
>
>
>
>
> -----------------------------------------
> The substance of this message, including any attachments, may be
> confidential, legally privileged and/or exempt from disclosure
> pursuant to Massachusetts law. It is intended
> solely for the addressee. If you received this in error, please
> contact the sender and delete the material from any computer.
>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>
>
--
View this message in context: http://www.nabble.com/Markers-disappear-at-High-Zoom-Levels-tf3503018.html#a12806447
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list