[OpenLayers-Users] Cluster strategy and Google layer
Christopher Schmidt
crschmidt at metacarta.com
Thu Nov 6 18:25:01 EST 2008
On Thu, Nov 06, 2008 at 09:07:13AM -0800, mippon wrote:
>
> I am trying to get cluster strategy to work with google layers but it just
> shows up in the middle of the map at wrong coordinates. Only one point shows
> up. I cannot seem to figure out what I am doing wrong.
> My script is as follows.
You haven't told OpenLayers to reproject your data. At this time, the
way to do that is to set internal/external projection properties on the
Format.GML construction.
protocol: new OpenLayers.Protocol.HTTP({
url: "gml/owls.xml",
format: new
OpenLayers.Format.GML({
internalProjection: map.getProjectionObject(),
externalProjection: map.displayProjection
})
}),
Regards,
--
Christopher Schmidt
MetaCarta
More information about the Users
mailing list