I think I probably have a solution to it. Using the FeatureCollection in the 
geojson file (instead of MultiPoint) seems to have solved the problem.

Anyway, thanks for your prompt reply.

John

-----Original Message-----
From: Eric Lemoine [mailto:[email protected]] 
Sent: Tuesday, 16 February 2010 3:11 AM
To: Christopher Schmidt
Cc: John Phan; [email protected]
Subject: Re: [OpenLayers-Users] GeoJSON MultiPoint Features [SEC=UNCLASSIFIED]

On Mon, Feb 15, 2010 at 4:50 PM, Christopher Schmidt <[email protected]> 
wrote:
> On Mon, Feb 15, 2010 at 07:44:13AM +0100, Eric Lemoine wrote:
>> On Monday, February 15, 2010, John Phan <[email protected]> wrote:
>> >
>> > Hi,
>> >
>> > I'm kind of new to OpenLayers. But I want to use GeoJSON to request 
>> > geometric features using the geometric type: MultiPoint.
>> >
>> > The browser has no problems rendering the vector layer.
>> >
>> > Now how do I associate an onclick event with each of these points (rather 
>> > than a collection of points).
>>
>> Hi. Have you looked at Control.SelectFeature? When clicking on a 
>> point the control will select and highlight the whole collection of 
>> points the feature comprises though.
>
> Eric,
>
> It sounds like this is exactly the problem he is having, since his 
> query specifically mentioned "only one, and not a collection".
>
> To the OP: AFAIK, you can't.

Indeed.

--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to