TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
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
Forums
Monthly Leaders
Forum guidelines
P Narasimha
701
1.3k
248.3k
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