10 TIPs - To Become a Good Developer/Programmer
Why Join
Become a member
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
C# Corner Home
Technologies
Monthly Leaders
ASK A QUESTION
Forum guidelines
P Narasimha
1.2k
889
235k
Change Text of Individual labels on map ( OpenLayers )
Aug 28 2020 8:01 AM
I want to change the text of a place on OpenLayers map, it needs to be changed from Persian Gulf to Arabian Gulf
I tried to see if there is any way I can make this change using the OpenLayers API documentation and found no luck.
https://openlayers.org/en/latest/apidoc/
Following is code :
import TileLayer from
'ol/layer/Tile'
;
import VectorLayer from
'ol/layer/Vector'
;
vectorSource =
new
VectorSource({
// url: '/assets/data/countries.geojson',
url:
'/assets/data/countries.json'
,
format:
new
GeoJSON()
});
mapLayer =
new
VectorLayer({
source:
this
.vectorSource,
declutter:
true
});
markerLayer =
new
VectorLayer({
source:
new
VectorSource({}),
style:
this
.mapStyle
});
linesLayer =
new
VectorLayer({
source:
new
VectorSource({}),
style:
this
.lineStyle
});
Is there any way to change this? I am still going through the OpenLayers API to find if there is anyway.
Following is the map location
Reply
Answers (
1
)
how to store ngx-chips values in database using API
navigate not working