Comments (5)
The width
parameter is mandatory - if you use TypeScript or a smart code editor - it would point these issues to you before even running your code.
from rlayers.
For line and polygon it's not work just on Feature, but on GeoJSON layer it's work well, here response fetching for line
const {
data: lvOgConductorDataViewSet,
isLoading: isLoadingLvOgConductor,
isError: isErrorLvOgConductor,
isSuccess: isSuccessLvOgConductor,
} = useLvOg();
if (lvOgConductorDataViewSet === null) {
return <div>{isLoadingLvOgConductor}</div>;
} else if (isErrorLvOgConductor) {
return <div>{isErrorLvOgConductor}</div>;
} else if (isSuccessLvOgConductor) {
return { lvOgConductorDataViewSet };
}
const featuresLvOg = Object.keys(lvOgConductorDataViewSet ?? {}).map(
(key) =>
new Feature({
geometry: new LineString(
lvOgConductorDataViewSet[key].geometry.coordinates,
),
id: lvOgConductorDataViewSet[key].id,
status: lvOgConductorDataViewSet[key].status,
phasing: lvOgConductorDataViewSet[key].phasing,
usage: lvOgConductorDataViewSet[key].usage,
dat_qty_cl: lvOgConductorDataViewSet[key].dat_qty_cl,
db_oper: lvOgConductorDataViewSet[key].db_oper,
label: lvOgConductorDataViewSet[key].label,
remarks: lvOgConductorDataViewSet[key].remarks,
device_id: lvOgConductorDataViewSet[key].device_id,
lvdb_in_no: lvOgConductorDataViewSet[key].lvdb_in_no,
lvdb_ot_no: lvOgConductorDataViewSet[key].lvdb_ot_no,
in_lvdb_id: lvOgConductorDataViewSet[key].in_lvdb_id,
out_lvdb_id: lvOgConductorDataViewSet[key].out_lvdb_id,
length: lvOgConductorDataViewSet[key].length,
}),
);
// console.log(featuresLvOg.map((item) => item)); // work
I'm using React-Query for fetching to integrated with react-hook-form to query attribute table.
from rlayers.
A circle by itself doesn't do anything, you also have to specify a fill color or a stroke color:
<RStyle.RStyle>
<RStyle.RCircle radius={5}>
<RStyle.RFill color='red' />
</RStyle.RCircle>
</RStyle.RStyle>
This is a solid red circle with a radius of 5 pixels.
You can check the examples for how to use the styles.
Also , you are using lots of non existing properties - ROverlay
doesn't have element
, position
or offset
, RPopup
doesn't have onClose
, RCircle
doesn't have lineJoin
or color
.
from rlayers.
I was check it, and I was using you sample on Point it's work, thanks
here when I was create line
<RStyle.RStyle>
<RStyle.RStroke color="red" />
</RStyle.RStyle>
that's not work sir, what maybe my data when to provide that Linestring Feature has wrong?
from rlayers.
Thanks sir, my bad, I was not configured linestring exactly as openlayers want, and now I have issues to display multiLineString with object.key.
Thanks for your time sir, really appreciate π
from rlayers.
Related Issues (20)
- Snaping in interaction HOT 1
- How do I configure tileSize? HOT 1
- format problem in WMS WMTS HOT 4
- npm ERR! Could not resolve dependency: ol@"^8.0.0" and [email protected] HOT 1
- rlayers not supported for OpenLayers 8.0.0 HOT 4
- Is it possible to dinamically add/remove layer from RMAP? HOT 7
- Question on how to manage events on layers components HOT 2
- Adding a print control
- is it possible to do layer pixel manipulation? HOT 1
- Using non-default projection with OSM and Next.js HOT 3
- RLayerWMTS fetches the wmts file twice HOT 4
- Popup fΓΆr vector tile layers HOT 1
- RStadiaLayer is not being exported HOT 2
- Is it possible to load tiles using the setTileLoadFunction ? HOT 2
- Unable to use `RPopup` with `RLayerCluster` HOT 10
- Snap doesn't work when use Rmodify HOT 4
- Can't set default rotation in the RView HOT 1
- map is undefined HOT 2
- Improvements for RLayerTileWMSProps HOT 1
- onDrawStart and onDrawEnd not working for RModify interaction HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rlayers.