nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

How to send WMS feature request #1451

Open shrikantkunte opened 5 years ago

shrikantkunte commented 5 years ago

In my app I want to send a feature request to WMS server. In openlayer I found a solution

MyLayer.getSource()
                .getGetFeatureInfoUrl(
                    evt.coordinate,
             map.getView().getResolution(),
             map.getView().getProjection(), 
            {
             'INFO_FORMAT': 'application/json',
            'propertyName': 'OBJECTID,HOUSE_NUM'
            }
        );

This creates an URL of feature request. Is there any alternative method for "getGetFeatureInfoUrl" in mapbox-gl. Example will be very helpful.