Hi Jonatas,

Can you please let me know, after i install ol3-contextmenu, what do i 
import to access 'ContextMenu' in angular2?
import { ContextMenu } from ??

Actually i am getting compilation error on 'ContextMenu'..

Thanks

On Saturday, January 23, 2016 at 12:58:45 AM UTC+5:30, Jonatas Walker wrote:
>
> I wrote a plugin to this need. Take a look if you want.
> https://github.com/jonataswalker/ol3-contextmenu
>
> Best regards.
>
> Em terça-feira, 4 de novembro de 2014 11:16:40 UTC-2, Onox escreveu:
>>
>> Hi,
>>
>> Is it possible to listen to the 'contextmenu' event on a map object ? For 
>> me the following does nothing at all (with 'dblclick' instead, it works) :
>>
>> map.on('contextmenu', function(evt) {
>>   var feature = map.forEachFeatureAtPixel(evt.pixel,
>>     function(feature, layer) {
>>       return feature;
>>     });
>>     if (feature) {
>>       evt.preventDefault();
>>       // ...
>>     }
>> });
>>
>> I am using version 3.0.0.
>> Thanks
>>
>

-- 
You received this message because you are subscribed to the Google Groups "OL3 
Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/ol3-dev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ol3-dev/1cfe4c46-adfb-44e5-8fcb-38ed4e4e8e48%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to